Wrong warnings about rawoffset not 0 (geom_bsd or geom_journal related?)

Sticky Bit stickybit at gmx.net
Thu Oct 2 22:16:08 UTC 2008


Hello,

after I recently setup and successful use gjournal I got following messages on
every boot:

WARNING: Expected rawoffset 0, found 63
WARNING: Expected rawoffset 0, found 120824865

I think the expectation is wrong here. Looks like geom_bsd (or another geom
part) is not aware of the fact that there is more than one slice on disk?

Slice 1 offset is 63. This of course should never be 0 because space before has
to be reserved for boot managers etc. according to the specifications. So fdisk
is right here to set offset at 63 for slice 1.

Slice 2 offset is 120824865. This is also right because it is a new slice.

So those warnings are not plausible and certainly wrong. Did I miss something?
Can someone explain it?

Slices 1 and 2 were created by sysinstall long time ago. BTW why starts the
first partition within these slices at offset 0 and not at offset 16 which it
should according to bsdlabel manual page? It works without problems but seems
wrong.

Slices 3 and 4 were recently created by hand using fdisk and then partitioned
using bsdlabel. They hold the journal providers. BTW first partition within
these slices starts at offset 16 which seems right.

Looks like sysinstall created first partitions within a slice have a wrong
offset beginning at 0 and not at 16. But that is probably not the cause of the
warning messages at boot.

This is my FreeBSD RELENG_7 amd64 setup (fdisk, bsdlabel, gjournal status):

# fdisk /dev/ad6

******* Working on device /dev/ad6 *******
parameters extracted from in-core disklabel are:
cylinders=620181 heads=16 sectors/track=63 (1008 blks/cyl)

Figures below won't work with BIOS for partitions not in cyl 1
parameters to be used for BIOS calculations are:
cylinders=620181 heads=16 sectors/track=63 (1008 blks/cyl)

Media sector size is 512
Warning: BIOS sector numbering starts with sector 1
Information from DOS bootblock is:
The data for partition 1 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 63, size 120824802 (58996 Meg), flag 80 (active)
	beg: cyl 0/ head 1/ sector 1;
	end: cyl 1023/ head 254/ sector 63
The data for partition 2 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 120824865, size 335533590 (163834 Meg), flag 80 (active)
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 254/ sector 63
The data for partition 3 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 456358455, size 83875365 (40954 Meg), flag 80 (active)
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 254/ sector 63
The data for partition 4 is:
sysid 165 (0xa5),(FreeBSD/NetBSD/386BSD)
    start 540233820, size 84903525 (41456 Meg), flag 80 (active)
	beg: cyl 1023/ head 255/ sector 63;
	end: cyl 1023/ head 254/ sector 63


# bsdlabel /dev/ad6s1:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  2097152        0    4.2BSD     2048 16384 28528 
  b: 22257664  2097152      swap                    
  c: 120824802       0    unused        0     0     # "raw" part, don't edit
  d:  2097152 24354816    4.2BSD     2048 16384 28528 
  e: 31457280 26451968    4.2BSD     2048 16384 28528 
  f: 20971520 57909248    4.2BSD     2048 16384 28528 
  g: 20971520 78880768    4.2BSD     2048 16384 28528 
  h: 20972514 99852288    4.2BSD     2048 16384 28528 


# bsdlabel /dev/ad6s2:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 335533590       0    unused        0     0     # "raw" part, don't edit
  d: 41943040        0    4.2BSD     2048 16384 28528 
  e: 20971520 41943040    4.2BSD     2048 16384 28528 
  f: 62914560 62914560    4.2BSD     2048 16384 28528 
  g: 209704470 125829120  4.2BSD     2048 16384 28528 


# bsdlabel /dev/ad6s3:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 83875365        0    unused        0     0     # "raw" part, don't edit
  d: 16777216       16    4.2BSD        0     0     0 
  e: 16777216 16777232    4.2BSD        0     0     0 
  f: 16777216 33554448    4.2BSD        0     0     0 
  g: 16777216 50331664    4.2BSD        0     0     0 
  h: 16766485 67108880    4.2BSD        0     0     0 


# bsdlabel /dev/ad6s4:
8 partitions:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 84903525        0    unused        0     0     # "raw" part, don't edit
  d: 16777216       16    4.2BSD        0     0     0 
  e: 16777216 16777232    4.2BSD        0     0     0 
  f: 16777216 33554448    4.2BSD        0     0     0 
  g: 16777216 50331664    4.2BSD        0     0     0 
  h: 17794645 67108880    4.2BSD        0     0     0 


# gjournal status

          Name  Status  Components
ad6s1a.journal     N/A  ad6s1a
                        ad6s3d
ad6s1d.journal     N/A  ad6s1d
                        ad6s3e
ad6s1e.journal     N/A  ad6s1e
                        ad6s3f
ad6s1f.journal     N/A  ad6s1f
                        ad6s3g
ad6s1g.journal     N/A  ad6s1g
                        ad6s3h
ad6s1h.journal     N/A  ad6s1h
                        ad6s4d
ad6s2d.journal     N/A  ad6s2d
                        ad6s4e
ad6s2e.journal     N/A  ad6s2e
                        ad6s4f
ad6s2f.journal     N/A  ad6s2f
                        ad6s4g
ad6s2g.journal     N/A  ad6s2g
                        ad6s4h

Thanks!

Regards


More information about the freebsd-geom mailing list