From owner-freebsd-questions Mon Mar 17 12:57: 9 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01D4337B401 for ; Mon, 17 Mar 2003 12:57:08 -0800 (PST) Received: from mail.seekingfire.com (coyote.seekingfire.com [24.72.10.212]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0790E43F85 for ; Mon, 17 Mar 2003 12:57:07 -0800 (PST) (envelope-from tillman@seekingfire.com) Received: from blues.seekingfire.prv (blues.seekingfire.prv [192.168.23.211]) by mail.seekingfire.com (Postfix) with ESMTP id 8EFBE24A for ; Mon, 17 Mar 2003 14:57:05 -0600 (CST) Received: (from tillman@localhost) by blues.seekingfire.prv (8.11.6/8.11.6) id h2HL0tR05894 for freebsd-questions@freebsd.org; Mon, 17 Mar 2003 15:00:55 -0600 Date: Mon, 17 Mar 2003 15:00:55 -0600 From: Tillman To: FreeBSD-Questions Subject: Migrating vinum plexes to a new volume Message-ID: <20030317150055.C5477@seekingfire.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i X-Urban-Legend: There is lots of hidden information in headers 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 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 merge 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 * use growfs on the changed volume Do I have the logic correct? Are there any potential pitfalls involving dataloss? 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). Thanks, -T -- To enjoy the flavor of life, take big bites. Moderation is for monks. Robert Heinlein To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message