From owner-freebsd-questions@FreeBSD.ORG Sat Dec 20 13:40:24 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 50F9216A4CE for ; Sat, 20 Dec 2003 13:40:24 -0800 (PST) Received: from asteroids.scarlet-internet.nl (asteroids.scarlet-internet.nl [213.204.195.163]) by mx1.FreeBSD.org (Postfix) with ESMTP id 18BF643D60 for ; Sat, 20 Dec 2003 13:40:19 -0800 (PST) (envelope-from msmits@dds.nl) Received: (qmail 19759 invoked from network); 20 Dec 2003 12:32:12 -0000 Received: from unknown (HELO localhost) ([213.204.228.14]) (envelope-sender ) by asteroids.scarlet-internet.nl (qmail-ldap-1.03) with SMTP for ; 20 Dec 2003 12:32:12 -0000 Received: from kneh.xs4all.nl (kneh.xs4all.nl [194.109.162.43]) by webmail.dds.nl (IMP) with HTTP for ; Sat, 20 Dec 2003 13:32:11 +0100 Message-ID: <1071923531.3fe4414ba11fd@webmail.dds.nl> Date: Sat, 20 Dec 2003 13:32:11 +0100 From: Marc Smits To: Greg 'groggy' Lehey References: <1071851660.3fe3288c7e0b7@webmail.dds.nl> <20031220012716.GS6130@wantadilla.lemis.com> In-Reply-To: <20031220012716.GS6130@wantadilla.lemis.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit User-Agent: Internet Messaging Program (IMP) 3.2.1 cc: freebsd-questions@freebsd.org Subject: Re: Vinum error "Can't initialize drive a: Invalid argument" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 20 Dec 2003 21:40:24 -0000 Citeren Greg 'groggy' Lehey : > [Format recovered--see http://www.lemis.com/email/email-format.html] > > Computer output wrapped. > > On Friday, 19 December 2003 at 17:34:20 +0100, Marc Smits wrote: > > Hello, > > > > I am running FreeBSD-4.7-realease and want to create a striped plex > > from 2 new 80Gb disks. > > > > Here's my vinum-description: > > drive a device /dev/ad2s1e > > drive b device /dev/ad3s1e > > volume stripe0 > > plex org striped 256k > > sd length 78159m drive a > > sd length 78159m drive b > > > > When I run 'vinum create vinum.conf' The message I get is: > > 1: drive a device /dev/ad2s1e > > ** 1 Can't initialize drive a: Invalid argument > > 2: drive b device /dev/ad3s1e > > ** 2 Can't initialize drive b: Invalid argument > > 0 drives: > > 1 volumes: > > V stripe0 State: down Plexes: 1 Size: 152GB > > > > 1 plexes: > > P stripe0.p0 S State: faulty Subdisks: 2 Size: 152GB > > > > 2 subdisks: > > S stripe0.p0.s0 State: crashed PO: 0 B Size: 76GB > > S stripe0.p0.s1 State: crashed PO: 256 kB Size: 76GB > > > > I used sysinstall to fdisk and label the partitions. > > How? IIRC sysinstall won't create a Vinum partition for you. You > need to use disklabel, as described in the man page. > > > What do need to do diffrent to get vinum to use the partitions? > > That depends on exactly what you've done, but I think it's what I said > above. > > Greg > -- Dear Greg, Thanks a lot for the suggestion. It took me a while to dig through the man page, but I finally got around it. For anyone who's interested (I can imagine more people run in to this), here's the solution: *1* Create a partition using sysinstall's fdisk and disklabel utilities. *2* Use 'disklabel -r ad1' to print that info to a file eg: ttyp5 13:30 #blah# [/root>disklabel -r ad1 >disklabel.ad1 # /dev/ad1c: type: ESDI disk: ad1s1 label: flags: bytes/sector: 512 sectors/track: 63 tracks/cylinder: 255 sectors/cylinder: 16065 cylinders: 1244 sectors/unit: 20000862 rpm: 3600 interleave: 1 trackskew: 0 cylinderskew: 0 headswitch: 0 # milliseconds track-to-track seek: 0 # milliseconds drivedata: 0 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 20000862 0 unused 0 0 # (Cyl. 0 - 1244*) e: 20000862 0 4.2BSD 2048 16384 89 # (Cyl. 0 - 1244*) *3* Edit the textfile with above info. change line with the 'e' partition: h: 20000862 0 vinum # (Cyl. 0 - 1244*) *4* Use 'disklabel -R ad1 /root/disklabel.ad1' to write the new disklabel