Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Mar 2007 23:00:45 +0100
From:      Michel Talon <talon@lpthe.jussieu.fr>
To:        freebsd-stable@freebsd.org
Subject:   Re: bsdlabel blues again
Message-ID:  <20070324220045.GA15059@lpthe.jussieu.fr>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070324220045.GA15059>