Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 02 Apr 2001 22:11:30 -0700
From:      Wency Arzadon <wency@juniper.net>
To:        freebsd-questions@FreeBSD.ORG
Cc:        wency@juniper.net, grog@lemis.com
Subject:   newbie - vinum
Message-ID:  <3AC95B82.AAFE52A2@juniper.net>

next in thread | raw e-mail | index | archive | help
Hi All,

I'm new to Freebsd; I'm trying to use
vinum to mirror a bsd box, running 4.2REL
with 2 internal IDE drives that are both identical.

My goal is to have a mirrored root drive which contain
the following partitions, and I'm not sure if its possible
to do this. I'm familiar with Veritas, but unsure how vinum
tries to do this. How it tries to do encapsulation of the root drive 
etc..

I've compiled vinum in the kernel..

I'm getting some weird errors along with different
scenarios.

Below are my two drives:
host# fdisk -s /dev/ad1
/dev/ad1: 3737 cyl 255 hd 63 sec
Part        Start        Size Type Flags
   1:          63     8177022 0xa5 0x80
   2:     8177085     1012095 0xa5 0x80
   3:     9189180     1012095 0xa5 0x80
   4:    10201275    49833630 0xa5 0x80

host# fdisk -s /dev/ad0
/dev/ad0: 38118 cyl 25 hd 63 sec
Part        Start        Size Type Flags
   1:          63     8191512 0xa5 0x80
   2:     8191575     2047500 0xa5 0x00
   3:    10239075     1023750 0xa5 0x00
   4:    11262825    48773025 0xa5 0x00

------
/dev/ad0 is my current OS partition.
Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
/dev/ad0s1a   3969738   358984  3293175    10%    /
/dev/ad0s4e  23635524        1 21744682     0%    /export/home
/dev/ad0s3e    495986     4287   452021     1%    /var
------
I've tried configuring different ways, below is where
i'm using config file.

My config file:/etc/vinum/config
gnosis# cat /etc/vinum/config
# Vinum configuration of gnosis.englab.juniper.net, saved at Thu Mar 29
18:16:11 2001

drive vinumdrive0 device /dev/ad1a
drive vinumdrive1 device /dev/ad1b
drive vinumdrive2 device /dev/ad1d
drive vinumdrive3 device /dev/ad1e

volume rootmirror
 plex org concat 
  sd length 2g drive vinumdrive0

volume swapmirror
 plex org concat
  sd length 1000M drive vinumdrive1

volume varmirror
 plex org concat
  sd length 500m drive vinumdrive2

volume dbmirror
 plex org concat
  sd length 23g drive vinumdrive3

-----
vinum -> create -f /etc/vinum/config
   3: drive vinumdrive0 device /dev/ad1a
** 3 : Invalid argument
   4: drive vinumdrive1 device /dev/ad1b
** 4 : Invalid argument
   5: drive vinumdrive2 device /dev/ad1d
** 5 : Invalid argument
   6: drive vinumdrive3 device /dev/ad1e
** 6 : Invalid argument
0 drives:
4 volumes:
V rootmirror            State: down     Plexes:       1 Size:       2048
MB
V swapmirror            State: down     Plexes:       1 Size:       1000
MB
V varmirror             State: down     Plexes:       1 Size:        500
MB
V dbmirror              State: down     Plexes:       1 Size:         23
GB

4 plexes:
P rootmirror.p0       C State: faulty   Subdisks:     1 Size:       2048
MB
P swapmirror.p0       C State: faulty   Subdisks:     1 Size:       1000
MB
P varmirror.p0        C State: faulty   Subdisks:     1 Size:        500
MB
P dbmirror.p0         C State: faulty   Subdisks:     1 Size:         23
GB

4 subdisks:
S rootmirror.p0.s0      State: crashed  PO:        0  B Size:       2048
MB
S swapmirror.p0.s0      State: crashed  PO:        0  B Size:       1000
MB
S varmirror.p0.s0       State: crashed  PO:        0  B Size:        500
MB
S dbmirror.p0.s0        State: crashed  PO:        0  B Size:         23
GB
vinum -> 
----
vinum -> init rootmirror.p0.s0 
vinum -> vinum[266]: initializing subdisk /dev/vinum/sd/rootmirror.p0.s0
Can't initialize /dev/vinum/sd/rootmirror.p0.s0: Device busy (16)

vinum -> init swapmirror.p0.s0 
vinum -> vinum[267]: initializing subdisk /dev/vinum/sd/swapmirror.p0.s0
Can't initialize /dev/vinum/sd/swapmirror.p0.s0: Device busy (16)

vinum -> varmirror.p0.s0 
Unknown command: varmirror.p0.s0
vinum -> init varmirror.p0.s0 
vinum -> vinum[268]: initializing subdisk /dev/vinum/sd/varmirror.p0.s0
Can't initialize /dev/vinum/sd/varmirror.p0.s0: Device busy (16)

vinum -> init dbmirror.p0.s0  
vinum -> vinum[269]: initializing subdisk /dev/vinum/sd/dbmirror.p0.s0
Can't initialize /dev/vinum/sd/dbmirror.p0.s0: Device busy (16)

vinum -> ls
S rootmirror.p0.s0      State: down     PO:        0  B Size:       2048
MB
S swapmirror.p0.s0      State: down     PO:        0  B Size:       1000
MB
S varmirror.p0.s0       State: down     PO:        0  B Size:        500
MB
S dbmirror.p0.s0        State: down     PO:        0  B Size:         23
GB
---------

Why does it complained  with invalid agument?
How do I initialize my drives, subdisk?
It eventually all become in the State: up
after mucking around. Anyways the man pages for vinum
is not too intuitive.
Once i try newfs/or mounting my machine crashes.


Can someone point to some good doc, or tell me I cannot
do this with IDE drives.

----
SomeApr  2 21:51:10 gnosis ntpd[88]: using kernel phase-lock loop 2041
Apr  2 21:54:22 gnosis su: wency to root on /dev/ttyp0
Apr  2 22:02:31 gnosis /kernel: vinum: rootmirror.p0.s0 is crashed
Apr  2 22:02:31 gnosis /kernel: vinum: rootmirror.p0 is faulty
Apr  2 22:02:31 gnosis /kernel: vinum: swapmirror.p0.s0 is crashed
Apr  2 22:02:31 gnosis /kernel: vinum: swapmirror.p0 is faulty
Apr  2 22:02:31 gnosis /kernel: vinum: varmirror.p0.s0 is crashed
Apr  2 22:02:31 gnosis /kernel: vinum: varmirror.p0 is faulty
Apr  2 22:02:31 gnosis /kernel: vinum: dbmirror.p0.s0 is crashed
Apr  2 22:02:31 gnosis /kernel: vinum: dbmirror.p0 is faulty
Apr  2 22:03:04 gnosis /kernel: vinum: no drives found
Apr  2 22:07:56 gnosis /kernel: vinum: no drives found
 errror messages in /var/log/messages
----
THANKS IN ADVANCE.

Wency-

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?3AC95B82.AAFE52A2>