From owner-freebsd-questions Fri Feb 12 16:45:47 1999 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id QAA03245 for freebsd-questions-outgoing; Fri, 12 Feb 1999 16:45:47 -0800 (PST) (envelope-from owner-freebsd-questions@FreeBSD.ORG) Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id QAA03219 for ; Fri, 12 Feb 1999 16:45:42 -0800 (PST) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id LAA24589; Sat, 13 Feb 1999 11:15:40 +1030 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA40499; Sat, 13 Feb 1999 11:15:39 +1030 (CST) Message-ID: <19990213111538.V54333@lemis.com> Date: Sat, 13 Feb 1999 11:15:38 +1030 From: Greg Lehey To: Jaye Mathisen , questions@FreeBSD.ORG Subject: Re: Fundamental vinum question I'm missing. References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.93.2i In-Reply-To: ; from Jaye Mathisen on Fri, Feb 12, 1999 at 03:39:37PM -0800 WWW-Home-Page: http://www.lemis.com/~grog 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, 12 February 1999 at 15:39:37 -0800, Jaye Mathisen wrote: > > I'm using a very recent (last couple of days) 3.1-beta box, testing > out vinum. > > It's working fine, except the vinum read config option doesn't seem to > work. > > Here was my config file: > > drive drive1 device /dev/da2c > drive drive2 device /dev/da3c > drive drive3 device /dev/da4c > volume vol0 > plex org striped 32b > sd length 4000m drive drive1 > sd length 4000m drive drive2 > sd length 4000m drive drive3 > > I can mount, it, and it works fine. > > I put /dev/da2 /dev/da3 /dev/da4 in rc.conf, in the vinum_disks section, > but it never finds it in bootup, I have to manually read in the config > each time, and then mount it. > > vinum read /dev/da2 /dev/da3 /dev/da4 > Feb 12 15:43:14 manipulation /kernel: vinum: no drives found > Feb 12 15:43:14 manipulation /kernel: vinum: no drives found Correct. c is the `whole disk' partition. Conventional wisdom says you shouldn't be using it, so `read' ignores it. Your easiest solution is to run disklabel -e on each of these partitions and add another partition with the same parameters. For example, if you have: 8 partitions: # size offset fstype [fsize bsize bps/cpg] c: 1173930 0 unused 0 0 # (Cyl. 0 - 358) change it to: 8 partitions: # size offset fstype [fsize bsize bps/cpg] a: 1173930 0 unused 0 0 # (Cyl. 0 - 358) c: 1173930 0 unused 0 0 # (Cyl. 0 - 358) I'll think about removing this restriction, since I'm sure you won't be the last person to trip over the problem. BTW, you should probably re-cvsup: I've finally implemented the `vinum start' command which will go out and build a read command for you: grog 1999/02/10 21:16:01 PST Modified files: (Branch: RELENG_3) sbin/vinum commands.c Log: Extend 'start' command: if used without any parameters, vinum scans all disks known to devstat for vinum drives and reads their configuration. Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message