From owner-freebsd-questions@FreeBSD.ORG Mon Oct 8 14:31:11 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id C2B2B106566B for ; Mon, 8 Oct 2012 14:31:11 +0000 (UTC) (envelope-from karolis.eigelis@gmail.com) Received: from mail-ie0-f182.google.com (mail-ie0-f182.google.com [209.85.223.182]) by mx1.freebsd.org (Postfix) with ESMTP id 89FDB8FC08 for ; Mon, 8 Oct 2012 14:31:11 +0000 (UTC) Received: by mail-ie0-f182.google.com with SMTP id k10so12366748iea.13 for ; Mon, 08 Oct 2012 07:31:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=RJ9vIc+YrLup9hv7BLqeHChmknwp1gP59KKFw9qzPXs=; b=vhht+wU1/KZNUCqSpRYxT59yBaEXAh6DaVZeQsq6hu4kQ+Pn3ZH9g0t1eNmlGVOhID 64ClUkiTIClXt6hFyogEsSvwIftqSr2VgcNXAYQViQNDVACHj58aPuxssV617opzZIPM TKSu4+5HWwUJnIiYTTQ0xyrBDExhzxw4Ap+iPU3jsYp4Xo5Gu6X6lnHjvEdZ9uJcPwwO 4Kc5cOq6VG2UkTiPzrlySlNmGzWywY8Xwe62P3YS1si0NNKVS/u+TAmRod8q8hGqrInG aNcIyRCfKHbsexkHowslhLIFClGEdHYN2MUE9SjpTbrNFHfAPOnsWmTNpg8K1g8iq9bi 1qKQ== MIME-Version: 1.0 Received: by 10.50.155.193 with SMTP id vy1mr7970375igb.46.1349706664317; Mon, 08 Oct 2012 07:31:04 -0700 (PDT) Received: by 10.50.189.167 with HTTP; Mon, 8 Oct 2012 07:31:04 -0700 (PDT) Date: Mon, 8 Oct 2012 16:31:04 +0200 Message-ID: From: Karolis Eigelis To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: 4k alignment for attaching new disk to zfs mirror 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: Mon, 08 Oct 2012 14:31:11 -0000 Hi, Before creating a pool i setup two disks mirror with gnop trick to have ashift=12 - 4k pool alignment. I also did that for the disk partitions (gpt -a 4k option) to have partitions 4k alignment (diskinfo -v disk shows stripesize=4096 for both disks). Now i replaced one disk with a new one, but cant get the diskinfo or gpart list to display stripesize=4096 - did everything as usual (gpt -a 4k for partitions). Or do i have to re-create my pool with gnop trick again ? Do you have an idea if that at all is needed ? Some other information i found says that as long as pool is 4k alignment is done (ashif=12) you do not need to do 4k alignment for new disk for partitions with gpart -a 4k option. Could someone please comment on that ? Many Thanks, Karolis