Date: Sat, 10 Mar 2001 09:02:39 +1030 From: Greg Lehey <grog@lemis.com> To: Wayne Pascoe <wayne.pascoe@realtime.co.uk> Cc: freebsd-questions@freebsd.org Subject: Re: Starting out with vinum - Going nowhere Message-ID: <20010310090239.R69598@wantadilla.lemis.com> In-Reply-To: <m1elw7w7h7.fsf@zaphod.realtime.co.uk>; from wayne.pascoe@realtime.co.uk on Fri, Mar 09, 2001 at 10:40:36AM %2B0000 References: <m1elw7w7h7.fsf@zaphod.realtime.co.uk>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, 9 March 2001 at 10:40:36 +0000, Wayne Pascoe wrote: > 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*) This is wrong. Coalesce partitions e, f and g into a single partition. > 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*) Same here. > 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 ? No. > 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 You need 265 sectors for housekeeping. You can't use 100% of the drive. > 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: Hmm. This is sloppy. I'll take a look at it. > 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. If you want to use the entire drive, "len 0" is the answer. But to judge by your partitioning, this isn't your real intention. 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 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?20010310090239.R69598>