Skip site navigation (1)Skip section navigation (2)
Date:      09 Mar 2001 10:40:36 +0000
From:      Wayne Pascoe <wayne.pascoe@realtime.co.uk>
To:        freebsd-questions@freebsd.org
Subject:   Starting out with vinum - Going nowhere
Message-ID:  <m1elw7w7h7.fsf@zaphod.realtime.co.uk>

next in thread | raw e-mail | index | archive | help
Ok, I'm thick. I'm getting used to this. But I'm not getting anywhere
with vinum.

I am trying to setup 2 disks in a mirrored raid 1 array. I partitioned
both disks at install time. I said NO to 

Do you want to do this with a true partition entry
so as to remain cooperative with any future possible
operating systems on the drive(s)?


I then created disklabels for the vinum partitions that I wanted as
follows:

ad0:
#        size   offset    fstype   [fsize bsize bps/cpg]
  a:  8192000        0    4.2BSD        0     0     0   # (Cyl.    0 - 509*)
  b:  1048576  8192000      swap                        # (Cyl.  509*- 575*)
  c: 26507187        0    unused        0     0         # (Cyl.    0 - 1649*)
  e:  8192000  9240576     vinum                        # (Cyl.  575*- 1085*)
  f:  2097152 17432576     vinum                        # (Cyl. 1085*- 1215*)
  g:  6977459 19529728     vinum                        # (Cyl. 1215*- 1649*)

ad2:
#        size   offset    fstype   [fsize bsize bps/cpg]
  c: 26688576        0    unused        0     0         # (Cyl.    0 - 1661*)
  e:  8192000        0    4.2BSD        0     0     0   # (Cyl.    0 - 509*)
  f:  8192000  8192000     vinum                        # (Cyl.  509*- 1019*)
  g:  2097152 16384000     vinum                        # (Cyl. 1019*- 1150*)
  h:  6977459 18481152     vinum                        # (Cyl. 1150*- 1584*)


Next, I do a vinum dumpconfig and I get the following:

Drive /dev/ad0s1e: 4000 MB (4194304000 bytes)
Drive /dev/ad0s1f: 1024 MB (1073741824 bytes)
Drive /dev/ad0s1g: 3406 MB (3572459008 bytes)
Drive /dev/ad2f: 4000 MB (4194304000 bytes)
Drive /dev/ad2g: 1024 MB (1073741824 bytes)
Drive /dev/ad2h: 3406 MB (3572459008 bytes)
Can't get label from /dev/ad3c: Invalid argument (22)

I don't have partitions on ad3 yet, but should I be worried about this
last argument ?

Next, I created a config file in /etc/vinum-usr.conf as follows:

drive a device /dev/ad0s1e
volume test 
plex org concat
sd length 4000m drive a
 
drive b device /dev/ad2f  
volume mirror
plex org concat
sd length 4000m drive a
plex org concat
sd length 4000m drive b

Now I do vinum create /etc/vinum-usr.conf

The output I get is as follows:
# vinum create -f /etc/vinum-usr.conf 
   4: sd length 4000m drive a
** 4 No space for  on a: No space left on device
   9: sd length 4000m drive a
** 9 No space for  on a: No space left on device
  10: plex org concat
** 10 Unnamed plex is not associated with a volume: Invalid argument
  11: sd length 4000m drive b
** 11 Unnamed sd is not associated with a plex: Invalid argument
2 drives:
D a                     State: up       Device /dev/ad0s1e      Avail: 11999/4000 MB (300%)
D b                     State: up       Device /dev/ad2f        Avail: 3999/4000 MB (100%)

2 volumes:
V test                  State: up       Plexes:       1 Size:          0  B
V mirror                State: up       Plexes:       1 Size:          0  B

2 plexes:
P test.p0             C State: up       Subdisks:     0 Size:          0  B
P mirror.p0           C State: up       Subdisks:     0 Size:          0  B

-2 subdisks:

/var/log/messages reports
Mar  9 10:33:01 dozer /kernel: vinum: drive a is up
Mar  9 10:33:01 dozer /kernel: vinum: test.p0 is up
Mar  9 10:33:01 dozer /kernel: vinum: test is up
Mar  9 10:33:01 dozer /kernel: vinum: drive b is up
Mar  9 10:33:01 dozer /kernel: vinum: mirror.p0 is up
Mar  9 10:33:01 dozer /kernel: vinum: mirror is up
at this time.

I thought I must be doing something wrong in the config, so I did a 
vinum resetconfig and changed my vinum-usr.conf to look as follows:

drive a device /dev/ad0s1e
volume test
plex org concat
sd length 4000m drive a

Now I get the following output from a create :
   4: sd length 4000m drive a
** 4 No space for  on a: No space left on device
1 drives:
D a                     State: up       Device /dev/ad0s1e      Avail: 7999/4000 MB (200%)

1 volumes:
V test                  State: up       Plexes:       1 Size:          0  B

1 plexes:
P test.p0             C State: up       Subdisks:     0 Size:          0  B

-1 subdisks:

Obliterating the setup again and changing the config to only use ad2
as follows:
drive b device /dev/ad2f
volume mirror
plex org concat
sd length 4000m drive b

I get the following output:
# vinum create -f /etc/vinum-test.conf 
   4: sd length 4000m drive b
** 4 No space for  on b: No space left on device
1 drives:
D b                     State: up       Device /dev/ad2f        Avail: 7999/4000 MB (200%)

1 volumes:
V mirror                State: up       Plexes:       1 Size:          0  B

1 plexes:
P mirror.p0           C State: up       Subdisks:     0 Size:          0  B

-1 subdisks:

/var/log/messages reports the following at this time.
Mar  9 10:36:31 dozer /kernel: vinum: CONFIGURATION OBLITERATED
Mar  9 10:36:31 dozer /kernel: vinum: drive b is up
Mar  9 10:36:31 dozer /kernel: vinum: mirror.p0 is up
Mar  9 10:36:31 dozer /kernel: vinum: mirror is up

I'm sorry to be such a pain, but I have read the sample configs at
www.vinumvm.org and I am currently going through a howto at
http://www.freebsddiary.org/vinum.html and I still don't have the faintest 
idea where I am going wrong. I can only think that I setup either the
partitions or the disklabel wrong.

Any help would be much appreciated!

-- 
- Wayne Pascoe 
E-mail: wayne.pascoe@realtime.co.uk
Phone : +44 (0) 20 7544 4668
Mobile: +44 (0) 788 431 1675

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?m1elw7w7h7.fsf>