From owner-freebsd-fs@FreeBSD.ORG Wed Jun 1 11:10:18 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 F146B106564A for ; Wed, 1 Jun 2011 11:10:18 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-yx0-f182.google.com (mail-yx0-f182.google.com [209.85.213.182]) by mx1.freebsd.org (Postfix) with ESMTP id AC31D8FC0A for ; Wed, 1 Jun 2011 11:10:18 +0000 (UTC) Received: by yxl31 with SMTP id 31so3236740yxl.13 for ; Wed, 01 Jun 2011 04:10:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=e1LtNq2JyWcYheSs1cvH9Ha6ITi86RpRbGi2ywJGzz0=; b=BLntE23kfrZom5mQvfYfHC7eAc/GnRt2iTcVkuwCZEm5N6FGXtdJY92CNTy8LRwiFY J6SEqM+250jGiQZWTPzHJYQbzY9SSdMJmD63CXUPakbGIH9HKmaOmav/bvCvCspok/WW tUyBgLzQAymbLwnuM9gnYigr1BV5vvQ50aX/c= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=d+SLnB4zC1B5SjBX8eX1/2SlWg415OaAr9FhYy1IXLyKjFKPXH+YdOpvcJwZzzXj2C j5FcC4/Cmj50mvqGnr+KkOmbod+EUwKxC4eJqB0ray1+Hzt9N2G0RMutT+p81bgIniVw KfYqncNdNq32P9lCbvFU+ASpk4Aa9hOd7j3GE= MIME-Version: 1.0 Received: by 10.236.189.69 with SMTP id b45mr8499677yhn.293.1306926617781; Wed, 01 Jun 2011 04:10:17 -0700 (PDT) Received: by 10.236.110.144 with HTTP; Wed, 1 Jun 2011 04:10:17 -0700 (PDT) In-Reply-To: <4DE5F7A8.6020300@digsys.bg> References: <4DE5D7B1.5040902@decayingorbits.com> <20110601101924.11334wftbjfrvor0@webmail.leidinger.net> <4DE5F7A8.6020300@digsys.bg> Date: Wed, 1 Jun 2011 12:10:17 +0100 Message-ID: From: krad To: Daniel Kalchev Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-fs@freebsd.org Subject: Re: 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 11:10:19 -0000 On 1 June 2011 09:26, Daniel Kalchev wrote: > > > On 01.06.11 11:19, Alexander Leidinger wrote: > >> >> The 4k-sector part results in a pool specific config setting. I would >> expect that if you add additional drives (no matter if 4k or not), that the >> pool will continue to use 4k sectors. So I would expect that you do not need >> gnop to expend an existing pool, but I have not tested/verified this. >> >> >> The ashift property is per-vdev, so you have to use gnop for each new > vdev you add to the zpool. You also do not need to create gnop devices for > all new drives -- the vdev will use the largest sector size of any member to > calculate it's ashift value. > > For example, creating the pool > > gnop create -S 4096 disk0 > zpool create test mirror disk0.nop disk1 > zpool export test > gnop destroy disk0.nop > zpool import test > > adding another vdev > > gnop create -S 4096 disk2 > zpool add test mirror disk2.nop disk3 > zpool export test > gnop destroy disk2.nop > zpool import test > > Daniel > > _______________________________________________ > freebsd-fs@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-fs > To unsubscribe, send any mail to "freebsd-fs-unsubscribe@freebsd.org" > i concur always use the gnop trick for new devices and you will be ok. Also make sure the gpt layout is 4k aligned