From owner-freebsd-current Sun Jan 17 22:21:20 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id WAA24897 for freebsd-current-outgoing; Sun, 17 Jan 1999 22:21:20 -0800 (PST) (envelope-from owner-freebsd-current@FreeBSD.ORG) Received: from h24-64-221-247.gv.wave.shaw.ca (h24-64-221-247.gv.wave.shaw.ca [24.64.221.247]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id WAA24886 for ; Sun, 17 Jan 1999 22:21:17 -0800 (PST) (envelope-from jake@h24-64-221-247.gv.wave.shaw.ca) Received: from h24-64-221-247.gv.wave.shaw.ca (localhost [127.0.0.1]) by h24-64-221-247.gv.wave.shaw.ca (8.9.2/8.9.2) with ESMTP id WAA01907; Sun, 17 Jan 1999 22:17:21 -0800 (PST) (envelope-from jake@h24-64-221-247.gv.wave.shaw.ca) Message-Id: <199901180617.WAA01907@h24-64-221-247.gv.wave.shaw.ca> X-Mailer: exmh version 2.0.2 2/24/98 To: Greg Lehey Cc: current@FreeBSD.ORG Subject: Re: vinum is always started at boot-time... In-reply-to: Your message of "Mon, 18 Jan 1999 15:38:05 +1030." <19990118153804.D55525@freebie.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Sun, 17 Jan 1999 22:17:21 -0800 From: Jake Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Oops. This was a thoroughly successful commit, wasn't it? At least > it didn't break `make world'. :) > > I'll think out another way and test more thoroughly. How does this > look? > > if [ -f /etc/vinumslices ]; then > read /etc/vinumslices > if [ -r /modules/vinum.ko ]; then # jkh paranoia > kldload vinum > vinum read $vinum_slices > else > echo "Can't find /modules/vinum.ko" > fi > fi > Why not just suck in rc.conf before starting vinum? I've modified my /etc/rc to do this, and it works fine. I submitted a PR with a patch. also, I tried 'pseudo-device vinum' and it does work, but I think I ran into trouble somewhere. Oh yeah, it worked once, but each subsequent reboot seemed to replicate my subdisks, until I had about 16, only two of which were real. Finally I found my config file, recreated and switched back to the kld. FWIW I think its good to load the module from /etc/rc rather than loader.rc, keeps all the vinum stuff in one place. Maybe we could even have the module loaded on demand; ie if you try to run vinum before the module is loaded, load it automatically. Cheers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-current" in the body of the message