Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 07 Mar 1999 10:29:50 -0800
From:      Ludwig Pummer <ludwigp@bigfoot.com>
To:        tim@scratch.demon.co.uk, freebsd-questions@FreeBSD.ORG
Subject:   Re: vinum (how to use after creation)
Message-ID:  <4.1.19990307101720.00c13100@mail-r>
In-Reply-To: <199903071254.MAA02531@franklin.matlink>

next in thread | previous in thread | raw e-mail | index | archive | help
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




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