Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 18 Jan 1999 15:19:34 +0900
From:      Makoto MATSUSHITA <matusita@jp.FreeBSD.ORG>
To:        current@FreeBSD.ORG
Subject:   Re: vinum is always started at boot-time...
Message-ID:  <19990118151934P.matusita@jp.FreeBSD.ORG>
In-Reply-To: <19990118153804.D55525@freebie.lemis.com>
References:  <19990118153804.D55525@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help

grog> I'll think out another way and test more thoroughly.  How does this
grog> look?

gnb@itga.com.au already pointed out that "vinum read" command in such
an early stage of /etc/rc causes much much warnings about /dev/ is
read-only filesystem. And, a typo around reading from /etc/vinumslices
(I don't want to type every time :-).

Anyway, I do try with this:

if [ -f /etc/vinumslices ]; then
	read vinum_slices < /etc/vinumslices
	if [ -r /modules/vinum.ko ]; then	# jkh paranoia
		kldload vinum
		vinum read $vinum_slices >/dev/null 2>&1
	else
		echo "Can't find /modules/vinum.ko"
	fi
fi

It works fine, however, sorry I have only ONE volume so how it goes if
two or more volumes are defined (note that 'vinum read' takes only one
argument). If more 'vinum read' commands should be done, the commands
should be within for-loop.

-- -
Makoto `MAR' MATSUSHITA

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990118151934P.matusita>