From owner-freebsd-stable Sun Jan 27 5:29:20 2002 Delivered-To: freebsd-stable@freebsd.org Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by hub.freebsd.org (Postfix) with ESMTP id E117E37B417; Sun, 27 Jan 2002 05:29:09 -0800 (PST) Received: (from uucp@localhost) by srv1.cosmo-project.de (8.11.6/8.11.6) with UUCP id g0RDT2h15230; Sun, 27 Jan 2002 14:29:02 +0100 (CET) (envelope-from ticso@cicely8.cicely.de) Received: from mail.cicely.de (cicely20.cicely.de [10.1.1.22]) by cicely5.cicely.de (8.12.1/8.12.1) with ESMTP id g0RDKIZ9079536; Sun, 27 Jan 2002 14:20:18 +0100 (CET)?g (envelope-from ticso@cicely8.cicely.de) Received: from cicely8.cicely.de (cicely8.cicely.de [10.1.2.10]) by mail.cicely.de (8.11.0/8.11.0) with ESMTP id g0RDKHf03032; Sun, 27 Jan 2002 14:20:17 +0100 (CET) Received: (from ticso@localhost) by cicely8.cicely.de (8.11.6/8.11.6) id g0RDKHL92486; Sun, 27 Jan 2002 14:20:17 +0100 (CET) (envelope-from ticso) Date: Sun, 27 Jan 2002 14:20:16 +0100 From: Bernd Walter To: Martin Blapp Cc: Greg Lehey , freebsd-stable@FreeBSD.ORG, tmm@FreeBSD.ORG Subject: Re: double fault with vinum and 4.5 RC3 Message-ID: <20020127142016.C91049@cicely8.cicely.de> 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 X-Operating-System: FreeBSD cicely8.cicely.de 5.0-CURRENT i386 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 Sun, Jan 27, 2002 at 01:40:29PM +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 have multpiple plexes per volume, which means Raid1. > And - this isn't very optimal for a user to create. Users don't have to - only admins. > I do not want to calculate the sd offset size. I'm not a > beginner with vinum, but I really do not want to do this. You don't have to - you only say the length. And you can also tell them using 'm', 'k' instead of sectors. Finally you can tell size as beeing '0' for getting remaining space. > 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 I can only guess what it might does. You compare: vinum sd-add -d 0 -n var -l 1GB with: volume var plex org concat sd drive 0 len 1g Your example isn't full syntax because it's missing plex org, state information and maybe more. > A program under unix does not have to be very cryptic, > it also has to be userfriendly. Right. Where is your problem in having a readable config? Don't see vinum as a raid tool - see it as a volume manager. I use vinum to create partitions for jails on fly, just because I can do easily from perl without having to deal with offsets and hohles in the drive layout. I also use vinum just because I don't have to deal with drives changing their identification. And finaly I use vinum for raid. -- B.Walter COSMO-Project http://www.cosmo-project.de ticso@cicely.de Usergroup info@cosmo-project.de To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message