From owner-freebsd-fs@freebsd.org Wed Feb 1 21:38:05 2017 Return-Path: Delivered-To: freebsd-fs@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 569D6CCB117 for ; Wed, 1 Feb 2017 21:38:05 +0000 (UTC) (envelope-from paul.hargreaves@technowizardry.co.uk) Received: from mail-wm0-x235.google.com (mail-wm0-x235.google.com [IPv6:2a00:1450:400c:c09::235]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 0A17E187F for ; Wed, 1 Feb 2017 21:38:04 +0000 (UTC) (envelope-from paul.hargreaves@technowizardry.co.uk) Received: by mail-wm0-x235.google.com with SMTP id r141so58879823wmg.1 for ; Wed, 01 Feb 2017 13:38:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=technowizardry.co.uk; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YYCrl8NfW7zujhDJj1UTcG0l2Nov961INtze4aaKQ3s=; b=gyl5RcNyf2uAODI0f9C8Y+nkdJjxhOPgDtmlecvQA0axPqpktTiJjNinh75ohzflen 6kdQWHz4rOP2Fg8QMfERFpfWQAdWrtvfaufNxZnRS4TUBvN+mYU7h8pjPLonnbyMDKLL zcW5wsIxSY6uDDycIxYRyzP9sww0kSXftmVAU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=YYCrl8NfW7zujhDJj1UTcG0l2Nov961INtze4aaKQ3s=; b=cCF6rZgjXmSZhnGKCC7LNXxsj8HkF/5JdITtoikFpV5F0qnBYNITJCWE+Lm34gTMH7 8gyFB/H1BU8PuG3Oyi+gRMfE2Gethyj5utcLPynK/Bh+X3/+iWA7XoUR5E56nPpTd3gL CC2kfO8ml+SUev9+kGwhY6Yn+P4CrC5PR8u7uxnAAF+r85rEHUHHnMpgHwBR6bC3ioTh y6YJGnhm/p7DZfGumDYaeR6h1Da+utRH+GO6EPnpzzN2eSQVltdb2M6WGvUIw9RSi27b cnyxeCbyDpro+K/eGF+u2XRe4RnYmKiq33gmd1VphkKdZRJDG0uAnL7WVpoAxurTDA6C mENw== X-Gm-Message-State: AIkVDXILEwVplIq2f9mgDzrw82kde1FwWcGppz6TNG0KWRsWzHDo6intb1LWYhrtflhz6w== X-Received: by 10.223.161.194 with SMTP id v2mr4252896wrv.144.1485985082418; Wed, 01 Feb 2017 13:38:02 -0800 (PST) Received: from [6.6.6.151] (host5-81-123-215.range5-81.btcentralplus.com. [5.81.123.215]) by smtp.gmail.com with ESMTPSA id e6sm36160982wrc.30.2017.02.01.13.38.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 01 Feb 2017 13:38:01 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Subject: Re: zpool upgrade instructions aren't complete enough - gpart operation not permitted From: Paul Hargreaves In-Reply-To: Date: Wed, 1 Feb 2017 21:37:59 +0000 Cc: FreeBSD Filesystems Content-Transfer-Encoding: quoted-printable Message-Id: <1CDA43BF-107B-4C67-90A6-18475FEF16CB@technowizardry.co.uk> References: To: Freddie Cash X-Mailer: Apple Mail (2.3259) X-BeenThere: freebsd-fs@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Filesystems List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Feb 2017 21:38:05 -0000 Machine =E2=80=98a=E2=80=99 $ gpart show da0 =3D> 63 41942977 da0 MBR (20G) 63 41942943 1 freebsd [active] (20G) 41943006 34 - free - (17K) $=20 So yes, that looks like MBR, so I=E2=80=99ll ignore the message on this = machine. Machine =E2=80=98b=E2=80=99 (joy of home labs) $ dmesg | grep GEOM GEOM: da4: the primary GPT table is corrupt or invalid. GEOM: da4: using the secondary instead -- recovery strongly advised. GEOM: da5: the primary GPT table is corrupt or invalid. GEOM: da5: using the secondary instead -- recovery strongly advised. GEOM: diskid/DISK-S21DNSAG229555L%20%20%20%20%20: the primary GPT table = is corrupt or invalid. GEOM: diskid/DISK-S21DNSAG229555L%20%20%20%20%20: using the secondary = instead -- recovery strongly advised. GEOM: diskid/DISK-S21DNSAG225964H%20%20%20%20%20: the primary GPT table = is corrupt or invalid. GEOM: diskid/DISK-S21DNSAG225964H%20%20%20%20%20: using the secondary = instead -- recovery strongly advised. GEOM: da4: the primary GPT table is corrupt or invalid. GEOM: da4: using the secondary instead -- recovery strongly advised. GEOM: da5: the primary GPT table is corrupt or invalid. GEOM: da5: using the secondary instead -- recovery strongly advised. GEOM: diskid/DISK-S21DNSAG229555L%20%20%20%20%20: the primary GPT table = is corrupt or invalid. GEOM: diskid/DISK-S21DNSAG229555L%20%20%20%20%20: using the secondary = instead -- recovery strongly advised. GEOM: diskid/DISK-S21DNSAG225964H%20%20%20%20%20: the primary GPT table = is corrupt or invalid. GEOM: diskid/DISK-S21DNSAG225964H%20%20%20%20%20: using the secondary = instead -- recovery strongly advised. $ gpart show da4 gpart: No such geom: da4. $ gpart show da5 gpart: No such geom: da5. $=20 $ gpart show =3D> 34 41942973 da0 GPT (20G) 34 6 - free - (3.0K) 40 1024 1 freebsd-boot (512K) 1064 984 - free - (492K) 2048 4194304 2 freebsd-swap (2.0G) 4196352 37744640 3 freebsd-zfs (18G) 41940992 2015 - free - (1.0M) $=20 $ gpart list Geom name: da0 modified: false state: OK fwheads: 255 fwsectors: 63 last: 41943006 first: 34 entries: 128 scheme: GPT Providers: 1. Name: da0p1 Mediasize: 524288 (512K) Sectorsize: 512 Stripesize: 0 Stripeoffset: 20480 Mode: r0w0e0 rawuuid: c07ec6ba-6523-11e5-9018-000c29e22a2a rawtype: 83bd6b9d-7f41-11dc-be0b-001560b84f0f label: gptboot0 length: 524288 offset: 20480 type: freebsd-boot index: 1 end: 1063 start: 40 2. Name: da0p2 Mediasize: 2147483648 (2.0G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 1048576 Mode: r1w1e0 rawuuid: c081b168-6523-11e5-9018-000c29e22a2a rawtype: 516e7cb5-6ecf-11d6-8ff8-00022d09712b label: swap0 length: 2147483648 offset: 1048576 type: freebsd-swap index: 2 end: 4196351 start: 2048 3. Name: da0p3 Mediasize: 19325255680 (18G) Sectorsize: 512 Stripesize: 0 Stripeoffset: 2148532224 Mode: r1w1e1 rawuuid: c0846dd6-6523-11e5-9018-000c29e22a2a rawtype: 516e7cba-6ecf-11d6-8ff8-00022d09712b label: zfs0 length: 19325255680 offset: 2148532224 type: freebsd-zfs index: 3 end: 41940991 start: 4196352 Consumers: 1. Name: da0 Mediasize: 21474836480 (20G) Sectorsize: 512 Mode: r2w2e3 $=20 $ zpool status fast pool: fast state: ONLINE status: Some supported features are not enabled on the pool. The pool = can still be used, but some features are unavailable. action: Enable all features using 'zpool upgrade'. Once this is done, the pool may no longer be accessible by software that does not = support the features. See zpool-features(7) for details. scan: scrub repaired 0 in 0h4m with 0 errors on Tue Jan 31 22:18:25 = 2017 config: NAME STATE READ = WRITE CKSUM fast ONLINE 0 = 0 0 mirror-0 ONLINE 0 = 0 0 diskid/DISK-S21DNSAG225964H%20%20%20%20%20 ONLINE 0 = 0 0 diskid/DISK-S21DNSAG229555L%20%20%20%20%20 ONLINE 0 = 0 0 errors: No known data errors $=20 Those two SSDs aren=E2=80=99t zroot and are part of an zpool so for = those also should I ignore the GEOM errors? I haven=E2=80=99t bothered upgrading this one yet but am about to. Regards Paul > On 1 Feb 2017, at 16:37, Freddie Cash wrote: >=20 > On Wed, Feb 1, 2017 at 1:22 AM, Paul Hargreaves = wrote: > Hi there, >=20 > Just upgraded from 10.2 to 11.0. > As part of that, did zpool upgrade: >=20 > root@zfsbackup:~ # zpool upgrade zroot > This system supports ZFS pool feature flags. >=20 > Enabled the following features on 'zroot': > sha512 > skein >=20 > If you boot from pool 'zroot', don't forget to update boot code. > Assuming you use GPT partitioning and da0 is your boot disk > the following command will do it: >=20 > gpart bootcode -b /boot/pmbr -p /boot/gptzfsboot -i 1 da0 >=20 > Ok, I think I=E2=80=99m using GPT partitioning and I think I boot from = da0 (specifically, zpool show shows zroot is da0s1d), but how to tell? >=20 > =E2=80=8BGPT partitioned disks will have device nodes like da0p1 = (meaning partition 1). >=20 > MBR partitioned disks will have device nodes like da0s1d (meaning = partitiong d in slice 1). >=20 > You can use "gpart show da0" to get more information. >=20 > IOW, you have MBR partitioned disks, and should not use the suggested = command as it only applies to GPT partitioned disks. >=20 > --=20 > Freddie Cash > fjwcash@gmail.com