I can no longer bring up my vinum volume with the vinum read
command:
vinum read /dev/wd0s1e /dev/wd2s1f
vinum read /dev/wd0s1e
vinum read /dev/wd2s1f
all come back with
vinum: no drives
I understand that all slices belonging to a volume must
now be passed to read, but that doesn't make any difference.
I've modified /etc/rc to do a vinum create /etc/vinum.conf instead
and that works, but I thought read was the correct commmand.
4.0-current as of yesterday, previously running 3.0-current as of the 19th.
/etc/vinum.conf:
drive drive1 device /dev/wd0s1e
drive drive2 device /dev/wd2s1f
volume usrc
plex org striped 512b
sd length 1g drive drive1
sd length 1g drive drive2
h24-64-221-247# vinum list
Configuration summary
Drives: 2 (4 configured)
Volumes: 1 (4 configured)
Plexes: 1 (8 configured)
Subdisks: 2 (16 configured)
D drive1 State: up Device /dev/wd0s1e
D drive2 State: up Device /dev/wd2s1f
V usrc State: up Plexes: 1 Size: 2048 MB
P usrc.p0 S State: up Subdisks: 2 Size: 2048 MB
S usrc.p0.s0 State: up PO: 0 B Size: 1024 MB
S usrc.p0.s1 State: up PO: 256 kB Size: 1024 MB
relevant changes to /etc/rc:
if [ -f /etc/vinum.conf ]; then
if [ -r /modules/vinum.ko ]; then # jkh paranoia
kldload vinum
vinum create /etc/vinum.conf 2>&1 > /dev/null
else
echo "Can't find /modules/vinum.ko"
fi
fi
also, I suggest that something like the following patch be applied to /etc/rc
once the read command works again, it allows the "vinum on startup" knob
to function. rc.conf must be read in before vinum is started, or
$vinum_slices is not initialized.
--- rc.orig Wed Jan 20 04:30:13 1999
+++ rc Fri Jan 22 09:10:18 1999
@@ -22,11 +22,23 @@
PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/local/sbin
export PATH
+# If there is a global system configuration file, suck it in.
+if [ -f /etc/rc.conf ]; then
+ . /etc/rc.conf
+fi
+
+# If old file exists, whine until they fix it.
+if [ -f /etc/sysconfig ]; then
+ echo "Warning: /etc/sysconfig has been replaced by /etc/rc.conf."
+ echo "You should switch to /etc/rc.conf ASAP to eliminate this warning."
+fi
+
# Configure ccd devices.
if [ -f /etc/ccd.conf ]; then
ccdconfig -C
fi
+# Configure vinum volumes.
if [ -n "$vinum_slices" ]; then
if [ -r /modules/vinum.ko ]; then # jkh paranoia
kldload vinum
@@ -88,17 +100,6 @@
if [ $? != 0 ]; then
echo "Filesystem mount failed, startup aborted"
exit 1
-fi
-
-# If there is a global system configuration file, suck it in.
-if [ -f /etc/rc.conf ]; then
- . /etc/rc.conf
-fi
-
-# If old file exists, whine until they fix it.
-if [ -f /etc/sysconfig ]; then
- echo "Warning: /etc/sysconfig has been replaced by /etc/rc.conf."
- echo "You should switch to /etc/rc.conf ASAP to eliminate this warning."
fi
adjkerntz -i
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message
-- end of forwarded message --
-- С тем, что не помешает никогда, Kittle