From nobody Thu May 27 18:32:27 2021 X-Original-To: freebsd-fs@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 0F72FC7E07E for ; Thu, 27 May 2021 18:32:42 +0000 (UTC) (envelope-from joe@via.net) Received: from smtp2.via.net (smtp2.via.net [157.22.3.6]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "via.net", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Frbyw3p5Vz4f6P for ; Thu, 27 May 2021 18:32:39 +0000 (UTC) (envelope-from joe@via.net) Received: from mail.via.net (mail.via.net [157.22.3.34]) by smtp2.via.net (8.15.2/8.14.1-VIANET) with ESMTPS id 14RIWccJ007673 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Thu, 27 May 2021 11:32:38 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at smtp2.via.net Received: from [209.81.2.65] ([209.81.2.65]) by mail.via.net (8.15.2/8.14.1-VIANET) with ESMTP id 14RIWbQM015828 for ; Thu, 27 May 2021 11:32:37 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.102.2 at mail.via.net From: joe mcguckin Content-Type: multipart/alternative; boundary="Apple-Mail=_0FB6D16F-282F-4582-ADC9-C61ADD1C1ACF" List-Id: Filesystems List-Archive: https://lists.freebsd.org/archives/freebsd-fs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-fs@freebsd.org Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Upsizing a ZFS filesystem - shift question Message-Id: Date: Thu, 27 May 2021 11:32:27 -0700 To: freebsd-fs X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (smtp2.via.net [157.22.3.6]); Thu, 27 May 2021 11:32:38 -0700 (PDT) X-Rspamd-Queue-Id: 4Frbyw3p5Vz4f6P X-Spamd-Bar: / Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=pass (mx1.freebsd.org: domain of joe@via.net designates 157.22.3.6 as permitted sender) smtp.mailfrom=joe@via.net X-Spamd-Result: default: False [-0.90 / 15.00]; MID_RHS_MATCH_FROM(0.00)[]; RBL_DBL_DONT_QUERY_IPS(0.00)[157.22.3.6:from]; NEURAL_SPAM_SHORT(1.00)[1.000]; FREEFALL_USER(0.00)[joe]; FROM_HAS_DN(0.00)[]; MV_CASE(0.50)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; PREVIOUSLY_DELIVERED(0.00)[freebsd-fs@freebsd.org]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; SPAMHAUS_ZRD(0.00)[157.22.3.6:from:127.0.2.255]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[via.net]; TO_DN_ALL(0.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_ALLOW(-0.20)[+MX]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ASN(0.00)[asn:7091, ipnet:157.22.0.0/16, country:US]; RCVD_TLS_LAST(0.00)[]; MAILMAN_DEST(0.00)[freebsd-fs]; RCVD_IN_DNSWL_LOW(-0.10)[157.22.3.6:from] X-ThisMailContainsUnwantedMimeParts: Y --Apple-Mail=_0FB6D16F-282F-4582-ADC9-C61ADD1C1ACF Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 I have an existing 32TB filesystem (2 X 8T vdevs). I want to upgrade = each of the drives to 16TB. I pulled one drive and tried a =E2=80=98zfs = replace=E2=80=99 comand, but zfs replied with some message about new = drive optimal ashift doesn=E2=80=99t match the vdev. It suggested Retrying = the =E2=80=98replace=E2=80=99 command with =E2=80=98zfs replace -o = ashift=3DN=E2=80=99 Ok, a little investigation shows the existing filesystem has an ashift = of 9. These are older 2T drives with 512 byte sectors. The newer drives = are 4kn sectors. Is ashift settable on a drive by drive basis? Can I temporarily set = ashift on a drive until all the drives in a vdev have been replaced? = Once all drives have been replaced, how do I set ashift=3D12 for all the = drives in the vdev? After replacing all the drives, will the additional space magicially = appear or is there an additional command or series of steps? Thanks, Joe Joe McGuckin ViaNet Communications joe@via.net 650-207-0372 cell 650-213-1302 office 650-969-2124 fax --Apple-Mail=_0FB6D16F-282F-4582-ADC9-C61ADD1C1ACF--