Re: Accessing disks via their serial numbers.
- From: Dmitry Pryanishnikov <dmitry@xxxxxxxxxxxxxx>
- Date: Mon, 26 Jun 2006 15:50:46 +0300 (EEST)
Hello!
On Mon, 26 Jun 2006, Pawel Jakub Dawidek wrote:
When is it not acceptable ?
When last sector is already occupied.
And what is last sector occupied by ?
This is simlar situation to the most common problem with gmirror(8).
When people decide to put their file system onto a mirror, it will eat
partition's last sector, which isn't always safe.
When disk is already partitioned and file systems are there, you cannot
just take the last sector.
I'm repeating my recent post to -current, just for the record... Actually,
there IS the way to tell whether the last sector is in use on UFS, and
reserve it from futher use by FS. It's badsect(8). Just declare the last sector as bad, and then (if badsect has succeeded == sector isn't in FS's critical area) fsck will tell you whether this sector is free or is it used by another file. In the last case, fsck will tell you what file uses this sector (== multiple allocation in this file and in the just created BAD/xxx file) so you can just copy it's contents to another place and then remove it while keeping BAD/xxx.
Sincerely, Dmitry
--
Atlantis ISP, System Administrator
e-mail: dmitry@xxxxxxxxxxxxxx
nic-hdl: LYNX-RIPE
_______________________________________________
freebsd-arch@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-arch
To unsubscribe, send any mail to "freebsd-arch-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: Accessing disks via their serial numbers.
- From: Poul-Henning Kamp
- Re: Accessing disks via their serial numbers.
- References:
- Re: Accessing disks via their serial numbers.
- From: Pawel Jakub Dawidek
- Re: Accessing disks via their serial numbers.
- From: Poul-Henning Kamp
- Re: Accessing disks via their serial numbers.
- From: Pawel Jakub Dawidek
- Re: Accessing disks via their serial numbers.
- Prev by Date: Re: Accessing disks via their serial numbers.
- Next by Date: Re: Accessing disks via their serial numbers.
- Previous by thread: Re: Accessing disks via their serial numbers.
- Next by thread: Re: Accessing disks via their serial numbers.
- Index(es):
Relevant Pages
|