From owner-freebsd-questions Sun Mar 7 10:30:23 1999 Delivered-To: freebsd-questions@freebsd.org Received: from inet.chip-web.com (c1003518-a.plstn1.sfba.home.com [24.1.82.47]) by hub.freebsd.org (Postfix) with SMTP id 0E98715368 for ; Sun, 7 Mar 1999 10:30:12 -0800 (PST) (envelope-from ludwigp@bigfoot.com) Received: (qmail 16045 invoked from network); 7 Mar 1999 18:29:54 -0000 Received: from speedy.chip-web.com (HELO speedy) (172.16.1.1) by inet.chip-web.com with SMTP; 7 Mar 1999 18:29:54 -0000 Message-Id: <4.1.19990307101720.00c13100@mail-r> X-Sender: ludwigp2@mail-r X-Mailer: QUALCOMM Windows Eudora Pro Version 4.1 Date: Sun, 07 Mar 1999 10:29:50 -0800 To: tim@scratch.demon.co.uk, freebsd-questions@FreeBSD.ORG From: Ludwig Pummer Subject: Re: vinum (how to use after creation) In-Reply-To: <199903071254.MAA02531@franklin.matlink> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG At 04:54 AM 3/7/99 , tim@scratch.demon.co.uk wrote: >I have managed to create some vinum drives as follows > >V usrvol State: up Plexes: 1 Size: 4076 MB >P usrvol.p0 C State: up Subdisks: 7 Size: 4076 MB >S usrvol.p0.s0 State: up PO: 0 B Size: 400 MB >S usrvol.p0.s1 State: up PO: 400 MB Size: 600 MB >S usrvol.p0.s2 State: up PO: 1000 MB Size: 426 MB >S usrvol.p0.s3 State: up PO: 1426 MB Size: 1000 MB >S usrvol.p0.s4 State: up PO: 2426 MB Size: 1000 MB >S usrvol.p0.s5 State: up PO: 3426 MB Size: 350 MB >S usrvol.p0.s6 State: up PO: 3776 MB Size: 300 MB It appears your subdisks are all from the same physical drive. Why would you do this? Why not just use one usr.p0.s0 with size of 4076? Also, you don't state which version of FreeBSD you're using. I'm using 3.1-STABLE Mar 4 1999. This may matter (but probably won't for what we're discussing) because Greg makes changes to vinum in the -STABLE source tree. >now I am stuck, I do not know how to mount this volume, if thats what I >need to do, so that I can transfer my files to their respective >locations. I just did this with my /var and /usr. Make sure that /dev/vinum/usrvol exists. Then: newfs -b 8192 -f 1024 /dev/vinum/usrvol mkdir /usr2 mount /dev/vinum/usrvol /usr2 tar -c -C /usr -f - . | tar -xvp -C /usr2 -f - To see if it works: 1. make sure that your vinum drive is listed in your rc.conf under vinum_drives 2. edit your /etc/fstab and add the line for vinum ("/dev/vinum/usrvol /usr2 ufs rw 2 2") 3. reboot. 4. If usr2 came up OK, and you want your vinum usrvol volume to replace your /usr, change your fstab by commenting out your existing /usr line and changing the usrvol mountpoint to /usr. >I have read the man pages vinum(4) and vinum(8) as well as >http://www.lemis.com/vinum.html , but cannot find how to use once >created - I must have missed it somwhere else I am just a thicky. I asked Greg about this a little over a month ago, and he told me I needed to newfs and mount and copy files over... I figured out exactly how to do this on my own. I'm mirroring /usr and /var (seperate /var for mail queue) across 2 IDE drives. The only thing vinum isn't handling is my / partition, which I dd between drives (I originally dd'ed the first drive onto the second drive, so the / partition is exactly the same size on both). --Ludwig Pummer ( ludwigp@bigfoot.com ) ICQ UIN: 692441 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message