From owner-freebsd-questions Fri Mar 24 9:10:40 2000 Delivered-To: freebsd-questions@freebsd.org Received: from yana.lemis.com (yana.lemis.com [192.109.197.140]) by hub.freebsd.org (Postfix) with ESMTP id 104D937B747 for ; Fri, 24 Mar 2000 09:10:35 -0800 (PST) (envelope-from grog@mojave.worldwide.lemis.com) Received: from mojave.worldwide.lemis.com ([216.88.157.130]) by yana.lemis.com (8.8.8/8.8.8) with ESMTP id DAA05443; Sat, 25 Mar 2000 03:40:12 +1030 (CST) (envelope-from grog@mojave.worldwide.lemis.com) Received: (from grog@localhost) by mojave.worldwide.lemis.com (8.9.3/8.9.3) id JAA01272; Fri, 24 Mar 2000 09:09:54 -0800 (PST) (envelope-from grog) Date: Fri, 24 Mar 2000 09:09:54 -0800 From: Greg Lehey To: Matt Heckaman Cc: FreeBSD-QUESTIONS Subject: Re: vinum help requested Message-ID: <20000324090954.C418@mojave.worldwide.lemis.com> Reply-To: Greg Lehey References: <20000323172331.A465@mojave.worldwide.lemis.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: ; from matt@ARPA.MAIL.NET on Fri, Mar 24, 2000 at 01:37:21AM -0500 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 Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 24 March 2000 at 1:37:21 -0500, Matt Heckaman wrote: > On Thu, 23 Mar 2000, Greg Lehey wrote: > [...] >> Hmm. This is probably trying to tell you the partitions are not of >> type vinum. But above you showed partitions of type vinum. I'd guess >> that the problem here is the difference between /dev/wd0h and >> /dev/wd0s1h. Your disklabel example uses wd0 and wd1, which implies >> /dev/wd0h and /dev/wd1e. Try that in your config file and see what >> that does. > > I've now tried both variants (wd0s1h, wd0h, wd1s1e, wd1e) and the same > result is produced. Below is my *complete* disklabel, maybe there is > something that I'm missing: > > # /dev/rwd0c: > > [ next ] > > # /dev/rwd1c: > > Now, since I played with the disk sizing a tad bit, my configuration file > looks like this: > > # tried wd0h - didn't work. > drive d1 device /dev/wd0s1h > # tried wd1e - didn't work. > drive d2 device /dev/wd1s1e Somehow here we're missing an exact correspondence. What you show won't work. Did you write wd0h or /dev/wd0h? What were the error messages? What appeared in /var/log/messages? What do 'fdisk wd0' and 'fdisk wd1' say? I'm commenting on the rest, since you wrote it, but it's not really nrelevant to the problem. > Also, from further reading of the manual page after some sleep, I tried > something like this while in interactive mode: > > vinum -> concat -v /dev/wd0h /dev/wd1e > volume vinum0 > plex name vinum0.p0 org concat > drive vinumdrive0 device /dev/wd0h > Can't create drive vinumdrive0, device /dev/wd0h: Invalid argument (22) > > [ we reset the configuration then try this: ] > > vinum -> concat -v /dev/wd0s1h /dev/wd1s1e Repeat after me: *use the same devices that you labeled*. > volume vinum0 > plex name vinum0.p0 org concat > drive vinumdrive0 device /dev/wd0s1h > Can't create drive vinumdrive0, device /dev/wd0s1h: Invalid argument (22) > > So moving back to the configuration file, I clear the current config and > recreate with /etc/vinum.conf, getting the same errors as I did before, > but this time I try 'vinum start' and here's what I get: > > root[epsilon]:~# vinum start > ** no drives found: No such file or directory > Warning: defective objects > > V storage State: down Plexes: 1 Size: 5045 MB > P storage.p0 C State: faulty Subdisks: 2 Size: 5045 MB > S storage.p0.s0 State: crashed PO: 0 B Size: 3500 MB > S storage.p0.s1 State: crashed PO: 3500 MB Size: 1545 MB > > and this goes into syslog: > > Mar 24 01:15:34 epsilon /kernel: vinum: no drives found > > That makes me really think that the /dev files do not exist, however: > > crw-r----- 1 root operator 3, 0x00020007 Mar 23 23:28 /dev/wd0s1h > crw-r----- 1 root operator 3, 0x0002000c Mar 23 17:08 /dev/wd1s1e > > and also; > > crw-r----- 1 root operator 3, 7 Mar 23 23:22 /dev/wd0h > crw-r----- 1 root operator 3, 12 Mar 23 23:23 /dev/wd1e No, I've explained the problem. You're off on a tangent. > There has to be something I'm doing wrong, it *does* however create > /dev/vinum/storage, attempting to run newfs -v on it didn't work, nor > did I think it would, I'm at the point of giving everything a chance. Of course not. The volume is down, because it doesn't have any drives. > root[epsilon]:~# newfs -v /dev/vinum/storage > newfs: /dev/vinum/storage: Input/output error This is a feature, not a bug. Greg -- 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