From owner-freebsd-questions@FreeBSD.ORG Thu Jan 7 03:18:25 2010 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 92AFA106566B for ; Thu, 7 Jan 2010 03:18:25 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from warped.bluecherry.net (unknown [IPv6:2001:440:eeee:fffb::2]) by mx1.freebsd.org (Postfix) with ESMTP id 0E1978FC14 for ; Thu, 7 Jan 2010 03:18:25 +0000 (UTC) Received: from volatile.chemikals.org (adsl-67-116-242.shv.bellsouth.net [98.67.116.242]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by warped.bluecherry.net (Postfix) with ESMTPSA id C5B7BA1FD23F; Wed, 6 Jan 2010 21:18:23 -0600 (CST) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.14.3/8.14.3) with ESMTP id o073IK2V086624; Wed, 6 Jan 2010 21:18:20 -0600 (CST) (envelope-from morganw@chemikals.org) Date: Wed, 6 Jan 2010 21:18:19 -0600 (CST) From: Wes Morgan X-X-Sender: morganw@volatile To: Steve Bertrand In-Reply-To: <4B451FE9.6040501@ibctech.ca> Message-ID: References: <4B451FE9.6040501@ibctech.ca> User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Virus-Scanned: clamav-milter 0.95.2 at warped X-Virus-Status: Clean Cc: "freebsd-questions@freebsd.org Questions -" Subject: Re: Replacing disks in a ZFS pool X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 07 Jan 2010 03:18:25 -0000 On Wed, 6 Jan 2010, Steve Bertrand wrote: > Hi everyone, > > I've got a 7.2 system with four 500GB drives, originally built thusly: > > # zpool history > History for 'storage': > 2008-07-11.23:15:40 zpool create storage raidz ad4 ad5 ad6 ad7 > > I just bought four 1.5TB drives, in which I want to use to replace the > 500GBs. > > Also, I've been loosely following some of the GPT threads, and I like > the idea of using this type of label instead of the disk names themselves. I personally haven't run into any bad problems using the full device, but I suppose it could be a problem. (Side note - geom should learn how to parse zfs labels so it could create something like /dev/zfs/ for device nodes instead of using other trickery) > How should I proceed? I'm assuming something like this: > > - add the new 1.5TB drives into the existing, running system > - GPT label them > - use 'zpool replace' to replace one drive at a time, allowing the pool > to rebuild after each drive is replaced > - once all four drives are complete, shut down the system, remove the > four original drives, and connect the four new ones where the old ones were If you have enough ports to bring all eight drives online at once, I would recommend using 'zfs send' rather than the replacement. That way you'll get something like a "burn-in" on your new drives, and I believe it will probably be faster than the replacement process. Even on an active system, you can use a couple of incremental snapshots and reduce the downtime to a bare minimum. > > My understanding is, is that once the new labels are in place, I don't > have to worry about the fact that the device name has been changed (eg > ad8 to ad4), the system doesn't care anymore about that. Is this correct? > > Any other advice/tips that those experienced can share with me? > > Steve > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org" >