vinum create drive problem, can't add second disk to config
Gary Mulder
gmulder at infotechfl.com
Tue Jul 27 14:21:43 PDT 2004
All,
I have two 160GB disks I want to mirror (ad0 and ad2). I loaded a fresh
install FreeBSD 4.10-RELEASE on the boot disk, and are following the
mirroring instructions at:
http://devel.reinikainen.net/docs/how-to/Vinum/
I have successfully added one half of the mirror and now are booting off
the vinum devices (the vinum devices fsck and boot fine). However I
persistently get the following error when adding the second disk.
Here's my environment:
# uname -a
FreeBSD testbox 4.10-RELEASE FreeBSD 4.10-RELEASE #0: Tue May 25 22:47:12
GMT 2004 root at perseus.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC i386
# disklabel -r ad2s1
<snip>
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
c: 320159322 0 unused 0 0 # (Cyl. 0 - 19928*)
h: 320159306 16 vinum # (Cyl. 0*- 19928*)
Note that the fstype of /dev/ad2s1h is correctly set to vinum, a common
cause of the following vinum error, but apparently not the cause of my problem.
# ls -l /dev/ad2s1h
crw-r----- 2 root operator 116, 0x00020017 Jul 26 21:23 /dev/ad2s1h
And here is how I am trying to add the second disk:
# cat /etc/vinum1_onlydrive.conf
drive mirror1 device /dev/ad2s1h
# vinum create /etc/vinum1_onlydrive.conf
1: drive mirror1 device /dev/ad2s1h
** 1 : Invalid argument
1 drives:
D mirror0 State: up Device /dev/ad0s1h Avail:
0/156327 MB (0%)
5 volumes:
V swap State: up Plexes: 1 Size: 511 MB
V root State: up Plexes: 1 Size: 4096 MB
V usr State: up Plexes: 1 Size: 4096 MB
V var State: up Plexes: 1 Size: 4096 MB
V home State: up Plexes: 1 Size: 140 GB
5 plexes:
P swap.p0 C State: up Subdisks: 1 Size: 511 MB
P root.p0 C State: up Subdisks: 1 Size: 4096 MB
P usr.p0 C State: up Subdisks: 1 Size: 4096 MB
P var.p0 C State: up Subdisks: 1 Size: 4096 MB
P home.p0 C State: up Subdisks: 1 Size: 140 GB
5 subdisks:
S swap.p0.s0 State: up PO: 0 B Size: 511 MB
S root.p0.s0 State: up PO: 0 B Size: 4096 MB
S usr.p0.s0 State: up PO: 0 B Size: 4096 MB
S var.p0.s0 State: up PO: 0 B Size: 4096 MB
S home.p0.s0 State: up PO: 0 B Size: 140 GB
# tail -4 /var/log/vinum_history
27 Jul 2004 20:54:33.452226 *** vinum started ***
27 Jul 2004 20:54:33.452846 create /etc/vinum1_onlydrive.conf
drive mirror1 device /dev/ad2s1h
27 Jul 2004 20:54:33.471889 *** Created devices ***
# tail -1 /var/log/messages
Jul 27 20:54:33 testbox /kernel: vinum: drive mirror1 is up
I am either missing something obvious or something strange is occurring.
The above vinum how-to suggests using the "-f" option to create for the
second disk. However when I do this the drive count in "vinum list" goes up
but mirror1 is never created.
Any help would be appreciated!
Thanks,
Gary
More information about the freebsd-questions
mailing list