Date: Tue, 18 Mar 2003 10:04:24 +1030 From: Greg 'groggy' Lehey <grog@FreeBSD.org> To: Tillman <tillman@seekingfire.com> Cc: FreeBSD-Questions <freebsd-questions@freebsd.org> Subject: Re: Migrating vinum plexes to a new volume Message-ID: <20030317233424.GE9422@wantadilla.lemis.com> In-Reply-To: <20030317150055.C5477@seekingfire.com> References: <20030317150055.C5477@seekingfire.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--phCU5ROyZO6kBE05 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Monday, 17 March 2003 at 15:00:55 -0600, Tillman wrote: > Howdy, > > I want to migrate some existing plexes to a different volume than the one= that > they are currently a member of. Here's the existing configuration: > > V iso State: up Plexes: 2 Size: 4096 MB > V iso2 State: up Plexes: 2 Size: 1500 MB > > P iso.p0 C State: up Subdisks: 1 Size: 4096 MB > P iso.p1 C State: up Subdisks: 1 Size: 4096 MB > P iso2.p0 C State: up Subdisks: 1 Size: 1500 MB > P iso2.p1 C State: up Subdisks: 1 Size: 1500 MB > > S iso.p0.s0 State: up PO: 0 B Size: 4096 MB > S iso.p1.s0 State: up PO: 0 B Size: 4096 MB > S iso2.p0.s0 State: up PO: 0 B Size: 1500 MB > S iso2.p1.s0 State: up PO: 0 B Size: 1500 MB > > D yin State: up Device /dev/ad0s1e Avail: 0/38172 MB= (0%) > D yang State: up Device /dev/ad2s1e Avail: 0/38172 MB= (0%) > > I don't want to have seperate iso and iso2 volumes anymore, I'd like to m= erge > their plexes into a single volume called iso. > > Here's my plan to go about doing this: > > * enter vinum interface > * detach -f iso2.p0 > * detach -f iso2.p1 > * rm -f iso > * attach iso2.p0 iso > * attach iso2.p1 iso This will give iso four plexes, two up, two down. The size will remain 4GB, and the other two plexes will only cover a part of the address space. > * use growfs on the changed volume This won't do anything. > Do I have the logic correct?=20 What you want to do is to remove the plexes iso2.p[01], and attach their subdisks to iso.p[01]. That will increase the size of those plexes to 5.5GB. Then run growfs. > Are there any potential pitfalls involving dataloss? You'll lose all data on iso2. > I suspect that I'm missing a step to alert vinum that the new plexes > extend the mirror - and I'm not sure that it can be done without > destroying both the iso and the iso2 volume and recreating the > mirror from scratch (thus, dataloss). If you attach subdisks to the existing plexes, you won't lose the data in iso. There's no way to merge file systems just by gluing them together. Greg -- When replying to this message, please copy the original recipients. If you don't, I may ignore the reply or reply to the original recipients. For more information, see http://www.lemis.com/questions.html See complete headers for address and phone numbers --phCU5ROyZO6kBE05 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (FreeBSD) iD8DBQE+dluAIubykFB6QiMRAie0AJ90Q/pneUJNK1cXqjPrsAOdNn2mzgCgkwLd axRGJWUDMpsfU4e4nn12SJk= =yNV0 -----END PGP SIGNATURE----- --phCU5ROyZO6kBE05-- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030317233424.GE9422>