From owner-freebsd-fs@FreeBSD.ORG Mon Apr 13 07:34:48 2009 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3F0341065670 for ; Mon, 13 Apr 2009 07:34:48 +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 CFBA48FC0C for ; Mon, 13 Apr 2009 07:34:47 +0000 (UTC) (envelope-from morganw@chemikals.org) Received: from volatile.chemikals.org (adsl-67-127-25.shv.bellsouth.net [98.67.127.25]) (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 C95C58057196; Mon, 13 Apr 2009 02:34:44 -0500 (CDT) Received: from localhost (morganw@localhost [127.0.0.1]) by volatile.chemikals.org (8.14.3/8.14.3) with ESMTP id n3D7YL6T078269; Mon, 13 Apr 2009 02:34:37 -0500 (CDT) (envelope-from morganw@chemikals.org) Date: Mon, 13 Apr 2009 02:34:21 -0500 (CDT) From: Wes Morgan To: "Tobias C. Berner" In-Reply-To: Message-ID: References: User-Agent: Alpine 2.00 (BSF 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Cc: freebsd-fs@freebsd.org Subject: Re: zfs and moving devices X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 13 Apr 2009 07:34:48 -0000 On Mon, 13 Apr 2009, Tobias C. Berner wrote: > I have a zfs pool > > NAME STATE READ WRITE CKSUM > multimedia ONLINE 0 0 0 > ad8 ONLINE 0 0 0 > ad10 ONLINE 0 0 0 > ad12 ONLINE 0 0 0 > ad14 ONLINE 0 0 0 > > Now, I need more sata-connecters. If I activate > an other onboard-controller, the device names > move: > > ad8 -> ad14 > ad10 -> ad16 > ad12 -> ad18 > ad14 -> ad20 > > > What is the proper way to handle this in zfs? Export the pool before you make the change and it should work no problem. You may want to enable ATA_STATIC_ID as well so you won't have to worry about it either. On another note, that's a 4 device pool with no redundancy. Make sure you have frequent backups! I lost my "multimedia" pool once during a migration and was very sad. Now I use raidz2.