Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 27 Jan 2002 14:20:16 +0100
From:      Bernd Walter <ticso@cicely8.cicely.de>
To:        Martin Blapp <mb@imp.ch>
Cc:        Greg Lehey <grog@FreeBSD.ORG>, freebsd-stable@FreeBSD.ORG, tmm@FreeBSD.ORG
Subject:   Re: double fault with vinum and 4.5 RC3
Message-ID:  <20020127142016.C91049@cicely8.cicely.de>
In-Reply-To: <20020127132210.Y67380-100000@levais.imp.ch>
References:  <20020127142643.A19909@wantadilla.lemis.com> <20020127132210.Y67380-100000@levais.imp.ch>

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020127142016.C91049>