From owner-freebsd-hackers Thu Jul 8 19:21:29 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 58D2015181 for ; Thu, 8 Jul 1999 19:21:22 -0700 (PDT) (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 LAA17862; Fri, 9 Jul 1999 11:51:20 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id LAA11723; Fri, 9 Jul 1999 11:51:18 +0930 (CST) Date: Fri, 9 Jul 1999 11:51:18 +0930 From: Greg Lehey To: "Jordan K. Hubbard" Cc: Matthew Dillon , Aaron Smith , freebsd-hackers@FreeBSD.ORG Subject: Re: Simplifying Vinum (was: ufs/ffs resize?) Message-ID: <19990709115118.T6035@freebie.lemis.com> References: <19990627135736.F427@freebie.lemis.com> <8846.931485161@zippy.cdrom.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <8846.931485161@zippy.cdrom.com>; from Jordan K. Hubbard on Thu, Jul 08, 1999 at 06:52:41PM -0700 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-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Thursday, 8 July 1999 at 18:52:41 -0700, Jordan K. Hubbard wrote: >> I think you'll find, once you get that far, that things are anything >> but trivial. I'm certainly open to suggestions, but consider: >> >> vinum -i /dev/something volumename >> >> Where does it insert it? What if the volume has more than one plex, >> which it will in the case of a mirror? > > OK, perhaps I was getting a little carried away here. :) > >> Not if they're done well. I'm open to suggestions. Here are couple >> of possibilities: add commands "cat", "stripe" and "mirror": >> >> vinum cat /dev/da1h /dev/da2h >> vinum stripe /dev/da1h /dev/da2h /dev/da3h /dev/da4h >> vinum mirror /dev/da1h /dev/da2h >> vinum mirror /dev/da1h /dev/da2h /dev/da3h /dev/da4h > > These sound just fine to me! > >> And what about the names? It seems tacky to have to write down the >> name that Vinum chooses. How about adding a name parameter, either >> implicitly or explicitly? For example, >> >> vinum cat myvol /dev/da1h /dev/da2h >> vinum cat -n myvol /dev/da1h /dev/da2h > > I also think that's a better proposal than mine, yes. OK. This goes back to a message I wrote a long time ago. It's been a week since I committed the changes. Here's what we have (from vinum(8)): concat [-f] [-n name] [-v] drives Create a concatenated volume from the specified drives. mirror [-f] [-n name] [-s] [-v] drives Create a mirrored volume from the specified drives. stripe [-f] [-n name] [-v] drives Create a striped volume from the specified drives. The -s flag to mirror states whether to create concatenated or striped plexes for the mirror. Striped plexes always have stripes of 256 kB. For more details, RTFM. 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-hackers" in the body of the message