From owner-freebsd-fs@FreeBSD.ORG Wed Jun 1 07:10:16 2011 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 F1E18106564A for ; Wed, 1 Jun 2011 07:10:16 +0000 (UTC) (envelope-from negasi@decayingorbits.com) Received: from vms173005pub.verizon.net (vms173005pub.verizon.net [206.46.173.5]) by mx1.freebsd.org (Postfix) with ESMTP id C97ED8FC08 for ; Wed, 1 Jun 2011 07:10:16 +0000 (UTC) Received: from panthro.decayingorbits.com ([unknown] [68.48.133.194]) by vms173005.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LM300J75L4OEH30@vms173005.mailsrvcs.net> for freebsd-fs@freebsd.org; Wed, 01 Jun 2011 01:10:05 -0500 (CDT) Received: from panthro.decayingorbits.com (panthro [192.168.20.61]) by panthro.decayingorbits.com (Postfix) with ESMTP id 3729EF376 for ; Wed, 01 Jun 2011 02:19:07 -0400 (EDT) X-Virus-Scanned: amavisd-new at decayingorbits.com Received: from panthro.decayingorbits.com ([192.168.20.61]) by panthro.decayingorbits.com (panthro.decayingorbits.com [192.168.20.61]) (amavisd-new, port 10024) with LMTP id cSPvPrcjx3Ag for ; Wed, 01 Jun 2011 02:19:01 -0400 (EDT) Received: from [192.168.20.47] (e5510.decayingorbits.com [192.168.20.47]) by panthro.decayingorbits.com (Postfix) with ESMTPSA id 1871CF369 for ; Wed, 01 Jun 2011 02:19:00 -0400 (EDT) Message-id: <4DE5D7B1.5040902@decayingorbits.com> Date: Wed, 01 Jun 2011 02:09:53 -0400 From: Negasi Gerima User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Thunderbird/3.1.10 MIME-version: 1.0 To: freebsd-fs@freebsd.org Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit Subject: ZFS on 4K drives - Expanding zpool and adding spares (gnop method) 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: Wed, 01 Jun 2011 07:10:17 -0000 Hello, I apologize if this topic is redundant, but I couldn't find an exact answer to my specific question. So here goes. I recently decided to expand the storage in my home server with a bunch of 1.5Tb Samsung 4K hard drives. Using the guide at the following link I was able to use the "gnop method" in order to align the drives for use with 4K sectors: http://ivoras.net/blog/tree/2011-01-01.freebsd-on-4k-sector-drives.html My question to the list is this, now that my new zpool is created and I've made sure the drives are using the correct layout, how would I go about expanding the zpool in the future with additional drives and/or spares? I emailed the author of the article but received a reply that I found terse at best. I'm assuming that I would have to create a new gnop device for each additional hard drive, and then add those gnop devices to the pool. For example, if I had a pool called 'datastore' and three additional drives /dev/ad10, /dev/ad12, & /dev/ad14. I'm assuming I should use the following steps to achieve my goal: 1. Create the gnop devices /dev/ad10.nop, /dev/ad12.nop, and /dev/ad14.nop, 2. Add these devices to the zpool with 'zpool add datastore /dev/ad10.nop /dev/ad12.nop' 3. Export the zpool with 'zpool export datastore' 4. Destroy gnop devices with 'gnop destroy /dev/da10.nop /dev/da12.nop /dev/da14.nop' 5. Re-import the zpool data with 'zpool import datastore' Can someone please confirm that this method is correct, or if there is a more streamlined method for achieving the desired goal? Thanks in advance, NG