From owner-freebsd-current@freebsd.org Tue Jan 12 18:35:14 2021 Return-Path: Delivered-To: freebsd-current@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8D4F54E1F65 for ; Tue, 12 Jan 2021 18:35:14 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from home.opsec.eu (home.opsec.eu [IPv6:2001:14f8:200::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4DFfQB23vJz4TlX for ; Tue, 12 Jan 2021 18:35:14 +0000 (UTC) (envelope-from pi@freebsd.org) Received: from pi by home.opsec.eu with local (Exim 4.94 (FreeBSD)) (envelope-from ) id 1kzOVR-0008yc-Dj; Tue, 12 Jan 2021 19:35:01 +0100 Date: Tue, 12 Jan 2021 19:35:01 +0100 From: Kurt Jaeger To: joe mcguckin Cc: freebsd-current@freebsd.org Subject: Re: Preparing ZFS drives Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Rspamd-Queue-Id: 4DFfQB23vJz4TlX X-Spamd-Bar: / X-Spamd-Result: default: False [0.00 / 15.00]; local_wl_from(0.00)[freebsd.org]; ASN(0.00)[asn:12502, ipnet:2001:14f8::/32, country:DE] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 12 Jan 2021 18:35:14 -0000 Hi! > How should I label and prepare the drives for ZFS? Someone ought to write a ???cookbook??? on that! Basically, what I once did, was this: zpool create bck raidz2 ada2 ada3 ada4 ada5 ada6 ada7 ada8 ada9 Therefore: raw disks, nothing else. > Do I need to start the volume on a particular sector boundary? > > Are the 4096 byte sector drives usable? I think the default is now 4096 anyway. https://charsiurice.wordpress.com/2016/05/30/checking-ashift-on-existing-pools/ describes the command to check for 4096 blocks: zdb -C | grep ashift If it displays ashift: 9 the blocks are 512 bytes. If it displays ashift: 12 the block size is 4096. -- pi@opsec.eu +49 171 3101372 Now what ?