Date: Wed, 27 Sep 2000 12:23:39 EST From: "Alistair M" <tlli@hotmail.com> To: freebsd-questions@FreeBSD.ORG Subject: Re: raid1 on vinum Message-ID: <LAW2-F239usqu6dQpqp00004739@hotmail.com>
next in thread | raw e-mail | index | archive | help
Hi again,
this is what my partitions look like:
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 37748736 0 vinum # (Cyl. 0 - 2349*)
b: 2283960 37748736 swap # (Cyl. 2349*- 2491*)
c: 40032696 0 unused 0 0 # (Cyl. 0 - 2491*)
/dev/ad3
8 partitions:
# size offset fstype [fsize bsize bps/cpg]
a: 40032696 0 vinum # (Cyl. 0 - 2491*)
c: 40032696 0 unused 0 0 # (Cyl. 0 - 2491*)
This is my vinum.cfg:
drive d1 device /dev/ad2a
drive d2 device /dev/ad3a
# Set up volumes and mirrored plexes
volume root setupstate
plex org concat
sd length 12574720s drive d1
plex org concat
sd length 12593152s drive d2
volume root_home setupstate
plex org concat
sd length 6283264s drive d1
plex org concat
sd length 6301696s drive d2
volume var setupstate
plex org concat
sd length 6283264s drive d1
plex org concat
sd length 6301696s drive d2
volume usr setupstate
plex org concat
sd length 12574720s drive d1
plex org concat
sd length 12593152s drive d2
Here is some output from /var/log/messages after doing a vinum create:
Sep 26 19:14:10 filter /kernel: vinum: loaded
Sep 26 19:14:11 filter /kernel: vinum: drive d1 is up
Sep 26 19:14:11 filter /kernel: vinum: drive d2 is up
Sep 26 19:14:11 filter /kernel: vinum: root.p0.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: root.p1.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: root.p0 is up
Sep 26 19:14:11 filter /kernel: vinum: root is up
Sep 26 19:14:11 filter /kernel: vinum: root_home.p0.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: root_home.p1.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: root_home.p0 is up
Sep 26 19:14:11 filter /kernel: vinum: root_home is up
Sep 26 19:14:11 filter /kernel: vinum: var.p0.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: var.p1.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: var.p0 is up
Sep 26 19:14:11 filter /kernel: vinum: var is up
Sep 26 19:14:11 filter /kernel: vinum: usr.p0.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: usr.p1.s0 is up
Sep 26 19:14:11 filter /kernel: vinum: usr.p0 is up
Sep 26 19:14:11 filter /kernel: vinum: usr is up
Everything seems fine so far.
When I do a vinum start -w, I get an error saying it can't find any vinum
drives. With the -w switch it is supposed to wait for the operation to
complete. It doesn't so I am assuming that it isn't copying the data over
from ad2 to ad3.
My problem is I don't know where to go from here. How do I get the data from
ad2 to ad3 once I have configured vinum (or have I?!?!). If I reboot my
machine at this stage, I just get a whole lot of garbage on the screen and
it justs hangs. At that stage I have been reinstalling FreeBSD4.1.
Thanks again.
Alistair.
On Wednesday, 27 September 2000 at 11:19:49 -0500, Alistair M wrote:
> From: Greg Lehey <grog@lemis.com>
>> On Monday, 25 September 2000 at 15:33:46 -0500, Alistair M wrote:
>>> Hi there,
>>> I am trying to mirror the whole OS onto a second disk I have on my
>>> machine. The two disks are exactly the same. I am currently
>>> running with FreeBSD 4.1.
>>> ...
>>> I am not sure where to go from here.
>>
>> Start again with the parameters I show above.
>
> I did as you said, and created the volumes with "setupstate".
> I was unable to move /dev/ad2 and /dev/ad3 to /dev/ad1 and /dev/ad2
I don't understand what you mean here.
> I placed everything in /dev/ad2a and want to mirror to /dev/ad3a.
>
> All the volumes were set up properly, and plexes were in the 'up' state
> after doing a: vinum create -f /etc/vinum.cfg.
>
> I edited /etc/rc.conf and added start_vinum="YES".
>
> I then executed:
> vinum start
> and I got some error saying:
> /kernel: vinum: no drives found
That sounds reasonable if Vinum is already running. 'vinum start'
just goes looking for new drives.
> ** mp drives found: No such file or directory
> /kernel: vinum: no drives found
>
> I executed it again and I got this message:
> /kernel: vinum: updating configuration from /dev/ad3s1a
> /kernel: vinum: updating configuration from /dev/ad2s1a
>
> What is going on?
I don't know. You should have got the same message again. You also
haven't described anything that is obviously a problem. But you
haven't really given me enough information to tell. Take a look at
vinum(4) or http://www.vinumvm.org/vinum/how-to-debug.html and give me
the information I ask for there.
Greg
--
When replying to this message, please copy the original recipients.
If you don't, I may ignore the reply.
For more information, see http://www.lemis.com/questions.html
Finger grog@lemis.com for PGP public key
See complete headers for address and phone numbers
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
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?LAW2-F239usqu6dQpqp00004739>
