I've successfully installed and converted a FreeBSD 4.8 install into a bootable Vinum volume many times; however mirroring that volume onto a second identical drive is proving difficult. Per Greg Lehey's instructions in chapter 12 of "The Complete FreeBSD 4th Edition", I've setup a bootable Vinum volume and then attempted to mirror it by creating a second Vinum config file, detailing the second drive and how the new volumes should be setup.

This works fine, and Vinum will successfully complete mirroring the all the volumes, however fsck will fail everytime. Hence when rebooting, everything goes to hell and a hand basket. I can fsck the volumes before mirroring without a problem, it's only after Vinum completes mirroring the volumes that fsck complains.

Both drives are identical Seagate Cheetah X15's, with swap taking 1000M, root 125M, var taking 4000M, and usr taking the rest. I tried installing FreeBSD, and creating both Vinum volumes at the same time with the same effect.

/boot/loader.conf:

vinum_load="YES"
vinum.drives="/dev/da0 /dev/da1"
vinum.root="root"

disklabel da0s1:

# size offset fstype [fsize bsize bps/cpg]
a: 256000 2048000 4.2BSD 2048 16384 94 # (Cyl. 127*- 143*)
b: 2047719 281 swap # (Cyl. 0*- 127*)
c: 71681967 0 unused 0 0 # (Cyl. 0 - 9728*)
e: 8192000 2304000 4.2BSD 2048 16384 89 # (Cyl. 143*- 653*)
f: 61185967 10496000 4.2BSD 2048 16384 89 # (Cyl. 653*- 9728*)
h: 71681967 16 vinum # (Cyl. 0*- 9728*)


disklabel da1s1:

# size offset fstype [fsize bsize bps/cpg]
a: 256000 2048000 4.2BSD 2048 16384 94 # (Cyl. 127*- 143*)
b: 2047719 281 swap # (Cyl. 0*- 127*)
c: 71681967 0 unused 0 0 # (Cyl. 0 - 9728*)
e: 8192000 2304000 4.2BSD 2048 16384 89 # (Cyl. 143*- 653*)
f: 61185967 10496000 4.2BSD 2048 16384 89 # (Cyl. 653*- 9728*)
h: 71681967 16 vinum # (Cyl. 0*- 9728*)


/vinum.config:

drive alpha device /dev/da0s1h
drive beta device /dev/da1s1h
volume root
  plex org concat
        sd len 256000s          driveoffset 2047984s drive alpha
  plex org concat
        sd len 256000s          driveoffset 2047984s drive beta
volume swap
  plex org concat
        sd len 2047719s driveoffset 265s drive alpha
  plex org concat
        sd len 2047719s driveoffset 265s drive beta
volume var
  plex org concat
        sd len 8192000s driveoffset 2303984s drive alpha
  plex org concat
        sd len 8192000s driveoffset 2303984s drive beta
volume usr
  plex org concat
        sd len 145800322s       driveoffset 10495984s drive alpha
  plex org concat
        sd len 145800322s       driveoffset 10495984s drive beta

vinum create /vinum.config
vinum start root.p1
vinum start var.p1
vinum start swap.p1
vinum start usr.p1

Obviously I'm missing a vital step here but I'm completely at a loss as to what it may be. The Handbook clearly outlines how to mirror volumes and as far as I can tell, the above should work flawlessly. I run into the same issues with 5.1-RELEASE. Comments, criticism, and answers are all appreciated. Please CC me as I am not subscribed to this list.

-aarong

_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to