On Tue, May 22, 2012 at 09:43:52AM +0100, Rodolfo Gouveia wrote:

> Hi all,
> I was running 4.9 on this server and finally got it
> updated to 5.0 and right after to 5.1.
> But security(8) now gives me this:
>       disklabel: partition a: partition extends past end of unit
> sd1 is a softraid crypto volume and running disklabel I can see the problem:
>     # disklabel sd1
>     # /dev/rsd1c:
>     type: SCSI
>     disk: SCSI disk
>     label: SR CRYPTO
>     duid: 0000000000000000
>     flags:
>     bytes/sector: 512
>     sectors/track: 63
>     tracks/cylinder: 255
>     sectors/cylinder: 16065
>     cylinders: 24136
>     total sectors: 387758000
>     boundstart: 0
>     boundend: 387758000
>     drivedata: 0
> 
>     16 partitions:
>     #                size           offset  fstype [fsize bsize  cpg]
>       a:        387758001                0  4.2BSD   2048 16384    1
>       c:        387758000                0  unused
>     disklabel: partition a: partition extends past end of unit
> 
> So in fact it goes beyond the "disk". This sd1a comes from sd0h:
>     h:        387758080         98568192    RAID
> 
> I can mount the partition and have been using it without any problems.
> So is this something to be worried about?

Not directly. Likely the filesystem will not use the last sector due
to rounding to fs block sizes. You can check that with 

dumpfs /dev/rsd1a | head

This reports the fs size using fragments as unit. Multiply by
fsize/sector size (4) and you get the actual fs size in sectors.

Still, best thing is to get rid of the error message.

unmount, fsck -f, edit disklabel (likely rewriting it will be
enough to get the bound fixed), fsck -f, mount. 

A backup/recreate partition/restore cycle might be neeed if any of the
steps fails. So making a backup before you start playing is a good idea.

        -Otto

> 
> cheers,
> rodolfo

Reply via email to