From owner-freebsd-stable Sun Jan 27 15:44:54 2002 Delivered-To: freebsd-stable@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 9F6FE37B41E; Sun, 27 Jan 2002 15:43:00 -0800 (PST) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id A7D247831D; Mon, 28 Jan 2002 09:57:58 +1030 (CST) Date: Mon, 28 Jan 2002 09:57:58 +1030 From: Greg Lehey To: Martin Blapp Cc: freebsd-stable@FreeBSD.org, tmm@FreeBSD.org Subject: Re: double fault with vinum and 4.5 RC3 Message-ID: <20020128095758.H72512@wantadilla.lemis.com> References: <20020127142643.A19909@wantadilla.lemis.com> <20020127132210.Y67380-100000@levais.imp.ch> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20020127132210.Y67380-100000@levais.imp.ch> User-Agent: Mutt/1.3.23i Organization: The FreeBSD Project Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-418-838-708 WWW-Home-Page: http://www.FreeBSD.org/ X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Sunday, 27 January 2002 at 13:40:29 +0100, Martin Blapp wrote: > > Greg, > >> As I've mentioned elsewhere, this is seriously suboptimal. The >> "mirror" command is a toy for people getting used to Vinum. You want >> a proper config file. Then create one drive per spindle, and choose >> your subdisk sizes to match what you want. Specifically, your config >> file should look like this: >> >> drive 0 device /dev/da0e >> drive 1 device /dev/da1e >> volume var setupstate >> plex org concat >> sd drive 0 len 2096000s >> plex org concat >> sd drive 1 len 2096000s >> volume docsis setupstate >> plex org concat >> sd drive 0 len 1257000s >> plex org concat >> sd drive 1 len 1257000s >> volume docsisvar setupstate >> plex org concat >> sd drive 0 len 4651000s >> plex org concat >> sd drive 1 len 4651000s > > Is this really mirrored ? I want a mirror, not a concatenated drive ! > I want RAID 1. You obviously haven't understood the documentation. > And - this isn't very optimal for a user to create. > > I do not want to calculate the sd offset size. You have to know how big your drives are. The method you use requires repartitioning the drive. You can't do that while any partition is open, but you do need to calculate the values. > IMHO there should be a way for vinum to add this dynamically > like: > > vinum sd-add -d 0 -n var -l 1GB > vinum sd-add -d 0 -n docsis -l 6GB > vinum sd-add -d 0 -n docsisvar -l end Well, apart from the obvious missing information here, what's the difference? The difference is the possibility of race conditions that this alternative adds. > A program under unix does not have to be very cryptic, it also has > to be userfriendly. I think your version there is more cryptic. "-n" presumably means "name". "-d 0" presumably means "drive". Greg -- See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message