bsdlabel blues again
Michel Talon
talon at lpthe.jussieu.fr
Sat Mar 24 22:20:53 UTC 2007
Volker said:
> As I've done this procedure twice yesterday and once more today,
> I've double and triple checked everything but I'm running into one
> single problem:
>
> partition c extends past end of unit and doesn't start at 0.
I think you should run bsdlabel on the mirror, not on the
raw partitions or disks. Then you will have no more problem
of the above type, only the innocuous following one:
gms1 is a mirror of ad0s1 and ad4s1:
asmodee% bsdlabel mirror/gms1
# /dev/mirror/gms1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 524272 16 4.2BSD 2048 16384 32768
b: 2097152 524288 swap
c: 32766992 0 unused 0 0 # "raw" part,
d: 524288 2621440 4.2BSD 2048 16384 32776
e: 524288 3145728 4.2BSD 2048 16384 32776
f: 29096970 3670016 4.2BSD 2048 16384 28552
asmodee% bsdlabel ad0s1
# /dev/ad0s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 524272 16 4.2BSD 2048 16384 32768
b: 2097152 524288 swap
c: 32766992 0 unused 0 0 # "raw" part,
d: 524288 2621440 4.2BSD 2048 16384 32776
e: 524288 3145728 4.2BSD 2048 16384 32776
f: 29096970 3670016 4.2BSD 2048 16384 28552
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities
asmodee% bsdlabel ad4s1
# /dev/ad4s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 524272 16 4.2BSD 2048 16384 32768
b: 2097152 524288 swap
c: 32766992 0 unused 0 0 # "raw" part,
d: 524288 2621440 4.2BSD 2048 16384 32776
e: 524288 3145728 4.2BSD 2048 16384 32776
f: 29096970 3670016 4.2BSD 2048 16384 28552
bsdlabel: partition c doesn't cover the whole unit!
bsdlabel: An incorrect partition c may cause problems for standard
system utilities
I think the difference is the last sector of the partition on which
geom writes its configuration.
--
Michel TALON
More information about the freebsd-stable
mailing list