From owner-freebsd-fs@FreeBSD.ORG Wed Aug 28 07:33:43 2013 Return-Path: Delivered-To: freebsd-fs@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B34BE598 for ; Wed, 28 Aug 2013 07:33:43 +0000 (UTC) (envelope-from kraduk@gmail.com) Received: from mail-qc0-x235.google.com (mail-qc0-x235.google.com [IPv6:2607:f8b0:400d:c01::235]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7609A2198 for ; Wed, 28 Aug 2013 07:33:43 +0000 (UTC) Received: by mail-qc0-f181.google.com with SMTP id i17so1135007qcy.12 for ; Wed, 28 Aug 2013 00:33:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Yf4lLDHwyz0mxb8G420TUBYI7rikCXF/8AATXy/JpAU=; b=bav9Tpw2jLRHTfTzv4HUL/vuo3YHLApd0r0vV/Dd1UN+YIEgd542y2y05Xkm4DNKax z1/LuTLfv+iue2+xr98I7fKdnGnwPJVsTqqHetVvBxmao7VwVuXEjgoCcdPRBwD7PEGv dxXoZnIymMiB1XgJsRp14yIquJVnEAmaAZw/ipgaECjfwyghbtKMdZhfi+iID3A7/f2R dE30wWT2JeFX90FvzWMlCZkKBUqTgtEuH1Dpv/GcO8oOU9ATxCUJSzrnCl7CeQ4YOFeG b4aCIkjfSn2Rzdjv64kBNrJPSFYcQo34N0ZlZijKRrZisa+UxUrxJ+IPMg3Y6YaXyaDI NMfA== MIME-Version: 1.0 X-Received: by 10.224.166.197 with SMTP id n5mr125593qay.98.1377675222576; Wed, 28 Aug 2013 00:33:42 -0700 (PDT) Received: by 10.224.189.195 with HTTP; Wed, 28 Aug 2013 00:33:42 -0700 (PDT) In-Reply-To: <20130827172727.GA73465@neutralgood.org> References: <20130827181127.24761@relay.ibs.dn.ua> <20130827172727.GA73465@neutralgood.org> Date: Wed, 28 Aug 2013 08:33:42 +0100 Message-ID: Subject: Re: exictent zroot re-alignment to 4K From: krad To: kpneal@pobox.com Content-Type: text/plain; charset=ISO-8859-1 X-Content-Filtered-By: Mailman/MimeDel 2.1.14 Cc: FreeBSD FS X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Aug 2013 07:33:43 -0000 is it just an alignment problem or are you ashift=9 (zdb zroot | grep ashift) as well? If you are already ashift=12, you can probably skip all the zfs send and receive bits and just attach it as a mirror, then drop out the original drive, repartition, install boot blocks and reattach. On 27 August 2013 18:27, wrote: > On Tue, Aug 27, 2013 at 06:11:27PM +0300, Zeus Panchenko wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > hi all, > > > > please, I really need help ... > > > > recently I noticed that my netbook HDD has 4K phys sectors and I think > > it is worth to use that (is it really worth indeed?) > > > > I have FreeBSD 9-STABLE running well on it already but when it was > > installed, the alignment was not done properly ... > > > > - -------------------------------------------------------------------- > > what I have: > > > > > uname -a > > FreeBSD 9.1-STABLE #17 r250823: Mon May 20 19:39:19 EEST 2013 amd64 > > > > > smartctl -a /dev/ada0 > > Model Family: Western Digital Scorpio Black (AF) > > Device Model: WDC WD5000BPKT-60PK4T0 > > Serial Number: WD-WXJ1A61P0560 > > User Capacity: 500,107,862,016 bytes [500 GB] > > Sector Sizes: 512 bytes logical, 4096 bytes physical > > > > > gpart show ada0 > > => 34 976773101 ada0 GPT (465G) > > 34 6 - free - (3.0k) > > 40 128 1 freebsd-boot (64k) > > 168 33554432 2 freebsd-swap (16G) > > 33554600 943218528 3 freebsd-zfs (449G) > > 976773128 7 - free - (3.5k) > > Unless I'm doing the math wrong it looks like your swap and zfs partitions > are already 4k aligned. So there's no need to redo your partitions. Just > skip ahead to the part where you do the ZFS stuff. > > I've never setup a machine with a ZFS root so I can't say if that part is > correct. > > > is ZFS version have to be the same on both systems (the one to be > > aligned is shown as 5000 (after `zpool upgrade -a') while the one all > > that stuff to be performed at is 28)? > > I assume you are doing a zfs send to a file on a remote machine? Or, you > are doing the send+receive on the helper machine? In either of those cases > you just need the machine that you do the restore on to be new enough to > handle ZFS version 5000. The version of the pool holding the file you are > restoring from does not matter. > > -- > "A method for inducing cats to exercise consists of directing a beam of > invisible light produced by a hand-held laser apparatus onto the floor ... > in the vicinity of the cat, then moving the laser ... in an irregular way > fascinating to cats,..." -- US patent 5443036, "Method of exercising a cat" > _______________________________________________ > 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" >