From owner-freebsd-questions Fri Mar 9 14:32:49 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id F36D237B71A for ; Fri, 9 Mar 2001 14:32:40 -0800 (PST) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id B454E6A90D; Sat, 10 Mar 2001 09:02:39 +1030 (CST) Date: Sat, 10 Mar 2001 09:02:39 +1030 From: Greg Lehey To: Wayne Pascoe Cc: freebsd-questions@freebsd.org Subject: Re: Starting out with vinum - Going nowhere Message-ID: <20010310090239.R69598@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from wayne.pascoe@realtime.co.uk on Fri, Mar 09, 2001 at 10:40:36AM +0000 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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