From owner-freebsd-questions Tue Jun 5 0:55:41 2001 Delivered-To: freebsd-questions@freebsd.org Received: from wantadilla.lemis.com (wantadilla.lemis.com [192.109.197.80]) by hub.freebsd.org (Postfix) with ESMTP id 48C1F37B403 for ; Tue, 5 Jun 2001 00:55:36 -0700 (PDT) (envelope-from grog@lemis.com) Received: by wantadilla.lemis.com (Postfix, from userid 1004) id 93E7C6ACC1; Tue, 5 Jun 2001 17:25:34 +0930 (CST) Date: Tue, 5 Jun 2001 17:25:34 +0930 From: Greg Lehey To: Drew Tomlinson Cc: FreeBSD Questions Subject: Re: Add Space To Vinum Volume? Message-ID: <20010605172534.A95379@wantadilla.lemis.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from drewt@writeme.com on Tue, Jun 05, 2001 at 12:44:55AM -0700 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-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG [Format recovered--see http://www.lemis.com/email/email-format.html] Computer output was wrapped. On Tuesday, 5 June 2001 at 0:44:55 -0700, Drew Tomlinson wrote: > I have a vinum volume but would like to add some more space to it. I've > looked at the man page but can't seem to get it through my thick head as to > what I need to do. I'm afraid to just try things as I'd prefer not to > destroy the data on my existing volume. My current volume is as follows: > > vinum -> list > 4 drives: > D disk1 State: up Device /dev/da0h Avail: 8583/8583 MB (100%) > D disk2 State: up Device /dev/da2h Avail: 8583/8583 MB (100%) > > 1 volumes: > V data State: up Plexes: 1 Size: 16 GB > > 1 plexes: > P data.p0 S State: up Subdisks: 2 Size: 16 GB > > 2 subdisks: > S data.p0.s0 State: up PO: 0 B Size: 8582 MB > S data.p0.s1 State: up PO: 1152 kB Size: 8582 MB > > I have a 3891M on /dev/da1h that I would like to add (concatenate?) to this. > My guess is that I need to create a plex with one subdisk and then add it to > the volume? No, adding a plex replicates the data, it doesn't extend the address space. > Is this possible to do without destroying the data that is currently > on the volume? Well, it's possibly to add the plex, and it won't damage existing data, but all it will do is to partially mirror the existing data. > If so, what do I need to do to add it? Just create a config file with the additional information: drive disk3 device /dev/da1h plex name data.p1 org concat volume data sd name data.p1.s0 size 0 drive disk3 plex data.p1 Then: vinum -> create configfile vinum -> start data.p1 Unfortunately, that's not what you want. You really want to add a third subdisk to your plex data.p0, but to do that, the plex needs to be concatenated, not striped. This is arguably a misfeature; it should be possible to have plexes with non-uniform mapping (the first 16 GB striped, the last 4 GB concat, which would solve your problem), or to add another equal-sized subdisk to a striped plex (which is more logical, but not what you want). There's a good chance that somebody will do the latter some day, but it would require a complete restructuring of the plex. Another alternative, if you have the space (i.e 16 GB temporarily), is to add another plex in the current total size of the volume. Get it up and running, remove the original plex and restructure it as concatenated, adding in the third disk. Start that plex, stop the temporary plex, and you should be OK. This is complicated enough that I won't describe the steps unless you really want me to. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message