Vinum Offset for Swap: 265 or 281?
rtjohan at syspres.com
rtjohan at syspres.com
Sun Oct 19 00:44:47 PDT 2003
Hi,
Sanity check whether the mirrored vinum root drive is setup correctly. Going to setup two more machines the same way, so wanted to make sure the reference machine was setup correctly.
Was surprised to see that the vinum dumpconfig shows the offset for the swap partition to be 265. Remember vaguely that it was supposed to be 281. Do I have a misconfigured machine? The bsdlabel reports the offset to be 281. The vinum.conf used driveoffset of 265s for swap - would think it should have been 281s.
The machine works, but have had a couple of unexplained reboots. The mirrored drives are ad4s1 and ad8s1.
Thanks for any advice,
Richard
-------------------------------------------------------
Details:
-------------------------------------------------------
------------------------
vinum.conf:
------------------------
drive rootdev device /dev/ad4s1h
drive rootmirrordev device /dev/ad8s1h
volume root
plex org concat
sd len 2097152s driveoffset 4194288s drive rootdev
sd len 2097152s driveoffset 4194288s drive rootmirrordev
# a: 2097152 4194304 4.2BSD 2048 16384 28552
volume swap
plex org concat
sd len 4194023s driveoffset 265s drive rootdev
sd len 4194023s driveoffset 265s drive rootmirrordev
# b: 4194023 281 swap
volume usr
plex org concat
sd len 10485760s driveoffset 6291440s drive rootdev
sd len 10485760s driveoffset 6291440s drive rootmirrordev
# d: 10485760 6291456 4.2BSD 2048 16384 28552
volume var
plex org concat
sd len 1g drive rootdev
sd len 1g drive rootmirrordev
volume tmp
plex org concat
sd len 512m drive rootdev
sd len 512m drive rootmirrordev
volume home
plex org concat
sd len 10g drive rootdev
sd len 10g drive rootmirrordev
volume ports
plex org concat
sd len 5g drive rootdev
sd len 5g drive rootmirrordev
volume backup
plex org concat
sd len 40g drive rootdev
sd len 40g drive rootmirrordev
volume local
plex org concat
sd len 10g drive rootdev
sd len 10g drive rootmirrordev
volume archive
plex org concat
sd len 30g drive rootdev
sd len 30g drive rootmirrordev
volume unused
plex org concat
sd len 0 drive rootdev
sd len 0 drive rootmirrordev
------------------------
/etc/fstab:
------------------------
# Device Mountpoint FStype Options Dump Pass#
/dev/vinum/swap none swap sw 0 0
/dev/vinum/root / ufs rw 1 1
/dev/vinum/usr /usr ufs rw 2 2
/dev/vinum/local /usr/local ufs rw 2 2
/dev/vinum/var /var ufs rw 2 2
/dev/vinum/tmp /tmp ufs rw 2 2
/dev/vinum/home /usr/home ufs rw 2 2
/dev/vinum/ports /usr/ports ufs rw 2 2
/dev/vinum/backup /usr/local/backup ufs rw 2 2
/dev/vinum/archive /usr/local/archive ufs rw 2 2
/dev/vinum/unused /unused ufs rw 2 2
/dev/ad0s1c /usr/local/backup2 ufs rw 2 2
/dev/acd0 /cdrom cd9660 ro,auto 0 0
------------------------
bsdlabel ad4s1:
------------------------
# /dev/ad4s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 2097152 4194304 4.2BSD 2048 16384 28552
b: 4194023 281 swap
c: 398283417 0 unused 0 0 # "raw" part, don't edit
d: 10485760 6291456 4.2BSD 2048 16384 28552
e: 2097152 16777216 4.2BSD 2048 16384 28552
h: 398283401 16 vinum
------------------------
bsdlabel ad8s1:
------------------------
# /dev/ad8s1:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
b: 4194023 281 swap
c: 398283417 0 unused 0 0 # "raw" part, don't edit
d: 2097152 4194304 4.2BSD 0 0 0
e: 10485760 6291456 4.2BSD 0 0 0
f: 2097152 16777216 4.2BSD 2048 16384 28552
h: 398283401 16 vinum
------------------------
vinum dumpconfig:
------------------------
Drive rootdev: Device /dev/ad4s1h
Created on at Tue Jul 29 15:05:34 2003
Config last updated Sun Oct 19 00:13:10 2003
Size: 203921101312 bytes (194474 MB)
volume root state up
volume swap state up
volume usr state up
volume var state up
volume tmp state up
volume home state up
volume ports state up
volume backup state up
volume local state up
volume archive state up
volume unused state up
plex name root.p0 state up org concat vol root
plex name swap.p0 state up org concat vol swap
plex name usr.p0 state up org concat vol usr
plex name var.p0 state up org concat vol var
plex name tmp.p0 state up org concat vol tmp
plex name home.p0 state up org concat vol home
plex name ports.p0 state up org concat vol ports
plex name backup.p0 state up org concat vol backup
plex name local.p0 state up org concat vol local
plex name archive.p0 state up org concat vol archive
plex name unused.p0 state up org concat vol unused
sd name root.p0.s0 drive rootdev len 2097152s driveoffset 4194288s state up plex root.p0 plexoffset 0s
sd name root.p0.s1 drive rootmirrordev len 2097152s driveoffset 4194288s state up plex root.p0 plexoffset 2097152s
sd name swap.p0.s0 drive rootdev len 4194023s driveoffset 265s state up plex swap.p0 plexoffset 0s
sd name swap.p0.s1 drive rootmirrordev len 4194023s driveoffset 265s state up plex swap.p0 plexoffset 4194023s
sd name usr.p0.s0 drive rootdev len 10485760s driveoffset 6291440s state up plex usr.p0 plexoffset 0s
sd name usr.p0.s1 drive rootmirrordev len 10485760s driveoffset 6291440s state up plex usr.p0 plexoffset 10485760s
sd name var.p0.s0 drive rootdev len 2097152s driveoffset 16777200s state up plex var.p0 plexoffset 0s
sd name var.p0.s1 drive rootmirrordev len 2097152s driveoffset 16777200s state up plex var.p0 plexoffset 2097152s
sd name tmp.p0.s0 drive rootdev len 1048576s driveoffset 18874352s state up plex tmp.p0 plexoffset 0s
sd name tmp.p0.s1 drive rootmirrordev len 1048576s driveoffset 18874352s state up plex tmp.p0 plexoffset 1048576s
sd name home.p0.s0 drive rootdev len 20971520s driveoffset 19922928s state up plex home.p0 plexoffset 0s
sd name home.p0.s1 drive rootmirrordev len 20971520s driveoffset 19922928s state up plex home.p0 plexoffset 20971520s
sd name ports.p0.s0 drive rootdev len 10485760s driveoffset 40894448s state up plex ports.p0 plexoffset 0s
sd name ports.p0.s1 drive rootmirrordev len 10485760s driveoffset 40894448s state up plex ports.p0 plexoffset 10485760s
sd name backup.p0.s0 drive rootdev len 83886080s driveoffset 51380208s state up plex backup.p0 plexoffset 0s
sd name backup.p0.s1 drive rootmirrordev len 83886080s driveoffset 51380208s state up plex backup.p0 plexoffset 83886080s
sd name local.p0.s0 drive rootdev len 20971520s driveoffset 135266288s state up plex local.p0 plexoffset 0s
sd name local.p0.s1 drive rootmirrordev len 20971520s driveoffset 135266288s state up plex local.p0 plexoffset 20971520s
sd name archive.p0.s0 drive rootdev len 62914560s driveoffset 156237808s state up plex archive.p0 plexoffset 0s
sd name archive.p0.s1 drive rootmirrordev len 62914560s driveoffset 156237808s state up plex archive.p0 plexoffset 62914560s
sd name unused.p0.s0 drive rootdev len 179131033s driveoffset 219152368s state up plex unused.p0 plexoffset 0s
sd name unused.p0.s1 drive rootmirrordev len 179131033s driveoffset 219152368s state up plex unused.p0 plexoffset 179131033s
Drive /dev/ad4s1h: 189 GB (203921101312 bytes)
Drive rootmirrordev: Device /dev/ad8s1h
Created on at Wed Jul 30 06:31:38 2003
Config last updated Sun Oct 19 00:13:10 2003
Size: 203921101312 bytes (194474 MB)
volume root state up
volume swap state up
volume usr state up
volume var state up
volume tmp state up
volume home state up
volume ports state up
volume backup state up
volume local state up
volume archive state up
volume unused state up
plex name root.p0 state up org concat vol root
plex name swap.p0 state up org concat vol swap
plex name usr.p0 state up org concat vol usr
plex name var.p0 state up org concat vol var
plex name tmp.p0 state up org concat vol tmp
plex name home.p0 state up org concat vol home
plex name ports.p0 state up org concat vol ports
plex name backup.p0 state up org concat vol backup
plex name local.p0 state up org concat vol local
plex name archive.p0 state up org concat vol archive
plex name unused.p0 state up org concat vol unused
sd name root.p0.s0 drive rootdev len 2097152s driveoffset 4194288s state up plex root.p0 plexoffset 0s
sd name root.p0.s1 drive rootmirrordev len 2097152s driveoffset 4194288s state up plex root.p0 plexoffset 2097152s
sd name swap.p0.s0 drive rootdev len 4194023s driveoffset 265s state up plex swap.p0 plexoffset 0s
sd name swap.p0.s1 drive rootmirrordev len 4194023s driveoffset 265s state up plex swap.p0 plexoffset 4194023s
sd name usr.p0.s0 drive rootdev len 10485760s driveoffset 6291440s state up plex usr.p0 plexoffset 0s
sd name usr.p0.s1 drive rootmirrordev len 10485760s driveoffset 6291440s state up plex usr.p0 plexoffset 10485760s
sd name var.p0.s0 drive rootdev len 2097152s driveoffset 16777200s state up plex var.p0 plexoffset 0s
sd name var.p0.s1 drive rootmirrordev len 2097152s driveoffset 16777200s state up plex var.p0 plexoffset 2097152s
sd name tmp.p0.s0 drive rootdev len 1048576s driveoffset 18874352s state up plex tmp.p0 plexoffset 0s
sd name tmp.p0.s1 drive rootmirrordev len 1048576s driveoffset 18874352s state up plex tmp.p0 plexoffset 1048576s
sd name home.p0.s0 drive rootdev len 20971520s driveoffset 19922928s state up plex home.p0 plexoffset 0s
sd name home.p0.s1 drive rootmirrordev len 20971520s driveoffset 19922928s state up plex home.p0 plexoffset 20971520s
sd name ports.p0.s0 drive rootdev len 10485760s driveoffset 40894448s state up plex ports.p0 plexoffset 0s
sd name ports.p0.s1 drive rootmirrordev len 10485760s driveoffset 40894448s state up plex ports.p0 plexoffset 10485760s
sd name backup.p0.s0 drive rootdev len 83886080s driveoffset 51380208s state up plex backup.p0 plexoffset 0s
sd name backup.p0.s1 drive rootmirrordev len 83886080s driveoffset 51380208s state up plex backup.p0 plexoffset 83886080s
sd name local.p0.s0 drive rootdev len 20971520s driveoffset 135266288s state up plex local.p0 plexoffset 0s
sd name local.p0.s1 drive rootmirrordev len 20971520s driveoffset 135266288s state up plex local.p0 plexoffset 20971520s
sd name archive.p0.s0 drive rootdev len 62914560s driveoffset 156237808s state up plex archive.p0 plexoffset 0s
sd name archive.p0.s1 drive rootmirrordev len 62914560s driveoffset 156237808s state up plex archive.p0 plexoffset 62914560s
sd name unused.p0.s0 drive rootdev len 179131033s driveoffset 219152368s state up plex unused.p0 plexoffset 0s
sd name unused.p0.s1 drive rootmirrordev len 179131033s driveoffset 219152368s state up plex unused.p0 plexoffset 179131033s
Drive /dev/ad8s1h: 189 GB (203921101312 bytes)
More information about the freebsd-questions
mailing list