Date: Sun, 24 Jan 1999 11:38:45 +1030 From: Greg Lehey <grog@lemis.com> To: John Saunders <john.saunders@nlc.net.au> Cc: freebsd-isp@FreeBSD.ORG Subject: Re: ccd and vinum Message-ID: <19990124113845.L36690@freebie.lemis.com> In-Reply-To: <Pine.LNX.3.95.990124112515.23777A-100000@nhj.nlc.net.au>; from John Saunders on Sun, Jan 24, 1999 at 11:56:39AM %2B1100 References: <19990124104915.H36690@freebie.lemis.com> <Pine.LNX.3.95.990124112515.23777A-100000@nhj.nlc.net.au>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sunday, 24 January 1999 at 11:56:39 +1100, John Saunders wrote: > On Sun, 24 Jan 1999, Greg Lehey wrote: > >> On Saturday, 23 January 1999 at 22:57:29 +1100, John Saunders wrote: >>> As long as it hangs around long enough for me to figure out how to >>> configure vinum (and to compile a RELENG_3 kernel without errors >>> when vinum is included) I will be happy. >> >> vinum is included in 3.0. All you need is a ``make world''. If >> you're having problems with the configuration, let me know what they >> are. > > Just trying to get my head around the concepts of what a plex is and the > way the documentation calls what I know as a partition, a subdisk. Also I > think the documentation has the slice and partition concepts swapped from > the way everything else on FreeBSD seems to work. For example "Unlike > standard disk partitions, a Vinum volume is not subdivided into slices," > But I thought is was the slices subdivided into partitions. i.e. wd0s1 > (i.e. slice 1) is disklabeled into partitions a b e f g. Where does this come from? It's not in the current documentation. >>> Currently I have to remember to manually sync up the root >>> filesystems if I change them. >> >> How do you do that? > > echo "Copying the root filesystem (wd0s1a) to the mirror root filesystem (wd2s1a)." > echo "This could take 30 seconds or more, please wait..." > dd if=/dev/rwd0s1a of=/dev/wd2s1a bs=65536 > sync ; sync ; sync > fsck -y /dev/rwd2s1a > sync ; sync ; sync Ah. I thought you were binding them into a ccd. >>> I looked into it some time back. It is probably possible to have a >>> ccd root filesystem if you hack a kernel to do the equivalent of >>> ccdconfig and then get it to mount the ccd device as root. Although >>> it would require substantial code hacking. >> >> It's not as simple as that. The bootstrap takes a device name, and >> you can only mount the root file system on that device. > > It's possible to mount CD filesystems, MFS, NFS as root (check out > /sys/i386/i386/autoconf.c). I don't see why it wouldn't be possible to > hack this code around to doing something with ccd. Although you would have > to load the kernel image from something like a floppy or CD because the > boot strap probably couldn't access /kernel on the mirrored root device. That's on of the problems. In fact, if one of the plexes of the root file system is concatenated, you could initially mount it as a file system, and that's currently what I'm planning to do. >> You must be doing something wrong. Which version (FreeBSD and vinum) >> are you using? > > It was cvsupped about 5 or 6 days ago. I've been trying to get the lastest > for a while but all of the cvsup*.freebsd.org servers are completely full > at the moment. So I can't check if any commits have been made. > > Script started on Sun Jan 24 11:23:36 1999 > sh-2.02# config -r PACER > Removing old directory ../../compile/PACER: Done. > Don't forget to do a ``make depend'' > Kernel build directory is ../../compile/PACER > sh-2.02# cd ../../compile/PACER > sh-2.02# make depend > [snip] > ../../dev/vinum/vinumio.c:44: vinumhdr.h: No such file or directory > ../../dev/vinum/vinumio.c:45: request.h: No such file or directory > mkdep: compile failed > *** Error code 1 Ah. You're configuring it into the kernel. Don't do that. Use the kld. In fact, all you need to do, with a 3.0-STABLE kernel, is to start vinum(8), and it'll do the rest for you. Static configuration is untested and deprecated, but I'm told it now works. I've never used it myself. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-isp" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19990124113845.L36690>