Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 30 Mar 2020 20:00:55 -0400
From:      Allan Jude <allanjude@freebsd.org>
To:        freebsd-current@freebsd.org
Subject:   Re: ZFS: OpenZFS: lost the ability to boot a BE
Message-ID:  <684735bc-49f9-4161-3f44-186d9da59bb5@freebsd.org>
In-Reply-To: <250de133-ad5e-6145-66cb-8b0383a4b8f0@gmail.com>
References:  <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com> <1c2b71fa-b25c-21d4-2115-ddb3d7b129b2@freebsd.org> <01524fd0-ae7b-028b-6259-5da485b48886@gmail.com> <0f19e79c-a809-c04b-4f36-8752f756f954@gmail.com> <250de133-ad5e-6145-66cb-8b0383a4b8f0@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--h04QFOvbtSMu41cJPNtmbIj2KhJRgLFth
Content-Type: multipart/mixed; boundary="lpwSQpropBlMSdi6iPtPqHYQ8CRL4qhJb";
 protected-headers="v1"
From: Allan Jude <allanjude@freebsd.org>
To: freebsd-current@freebsd.org
Message-ID: <684735bc-49f9-4161-3f44-186d9da59bb5@freebsd.org>
Subject: Re: ZFS: OpenZFS: lost the ability to boot a BE
References: <14266e74-e2cc-ec14-187a-4bc9c9e6c32a@gmail.com>
 <1c2b71fa-b25c-21d4-2115-ddb3d7b129b2@freebsd.org>
 <01524fd0-ae7b-028b-6259-5da485b48886@gmail.com>
 <0f19e79c-a809-c04b-4f36-8752f756f954@gmail.com>
 <250de133-ad5e-6145-66cb-8b0383a4b8f0@gmail.com>
In-Reply-To: <250de133-ad5e-6145-66cb-8b0383a4b8f0@gmail.com>

--lpwSQpropBlMSdi6iPtPqHYQ8CRL4qhJb
Content-Type: text/plain; charset=utf-8
Content-Language: en-US
Content-Transfer-Encoding: quoted-printable

To temporarily mount a ZFS filesystem:

mount -t zfs poolname/data/set /path/here


On 2020-03-30 19:53, Graham Perrin wrote:
> On 30/03/2020 19:47, Graham Perrin wrote:
>> I lost the ability to boot the environment named 'r357746', I suspect
>> this occurred after I set it to use OpenZFS in lieu of ZFS.
>>
>> I would like to edit its /boot/loader.conf (revert to zfs_load=3D"YES"=
)
>> but re: https://github.com/openzfs/zfs/issues/4553 I can not think of
>> a way to mount the dataset.
>>
>> Please, how can I proceed?
>=20
> Whilst booted from a different environment, I mounted the dataset whils=
t
> in single user mode, edited /boot/loader.conf =E2=80=A6 a little tricky=
, because
> after the mount I could no longer use zfs commands (ZFS library
> initialisation failed, words to that effect). Then beadm to activate th=
e
> BE, and shutdown -r now
>=20
> Success :-)
>=20
> With zfs_load=3D"YES" (in lieu of openzfs_load=3D"YES") the BE is usabl=
e.
>=20
>> ----
>>
>> Re: ZFS: destroying snapshots without compromising boot environments
>>
>> On 28/03/2020 15:36, Graham Perrin wrote:
>>> On 28/03/2020 15:19, Allan Jude wrote:
>>>
>>> > You can try to destroy the snapshot, if it is the basis of a clone,=

>>> then
>>> > you will get an error, that you'd need to destroy the BE first, so =
you
>>> > might decide to keep that snapshot. As long as you don't use the -R=

>>> flag
>>> > to zfs destroy dataset@snapshot, it will not destroy the clones.
>>> >
>>> > You can also use 'zfs promote' to make the clone into the parent,
>>> making
>>> > the original parent into the clone. This allows you to destroy that=

>>> > original and the snapshot while keeping the clone.
>>>
>>> Perfect, thank you. I was nervous about destruction without warning.
>>>
>>> Below, are the differences (in measurement) between beadm and bectl
>>> to be expected?
>>>
>>> ----
>>>
>>> root@momh167-gjp4-8570p:~ # beadm list
>>> BE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint=C2=A0 Space =
Created
>>> Waterfox -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 15.9G 2020-03-10 18:24
>>> r357746f -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1.3G 2020-03-20 06:19
>>> r359249b NR=C2=A0=C2=A0=C2=A0=C2=A0 /=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 74.7G 2020-03-28 01:19
>>> root@momh167-gjp4-8570p:~ # beadm list -aDs
>>> BE/Dataset/Snapshot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint
>>> Space Created
>>>
>>> Waterfox
>>> =C2=A0 copperbowl/ROOT/Waterfox=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - 137.0M
>>> 2020-03-10 18:24
>>> =C2=A0=C2=A0=C2=A0 r359249b@2020-03-17-21:57:17=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 - 59.2G
>>> 2020-03-17 21:57
>>> =C2=A0 copperbowl/ROOT/Waterfox@2020-03-20-06:19:45 -=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 - 67.0M
>>> 2020-03-20 06:19
>>>
>>> r357746f
>>> =C2=A0 copperbowl/ROOT/r357746f=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - 1.2G
>>> 2020-03-20 06:19
>>> =C2=A0=C2=A0=C2=A0 Waterfox@2020-03-20-06:19:45=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 - 59.2G
>>> 2020-03-20 06:19
>>>
>>> r359249b
>>> =C2=A0 copperbowl/ROOT/r359249b@2020-03-17-21:57:17 -=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 - 15.7G
>>> 2020-03-17 21:57
>>> =C2=A0 copperbowl/ROOT/r359249b=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 NR=C2=A0=C2=A0=C2=A0=C2=A0 / 59.0G
>>> 2020-03-28 01:19
>>> root@momh167-gjp4-8570p:~ # bectl list
>>> BE=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint Space Create=
d
>>> Waterfox -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 204M=C2=A0 2020-03-10 18:24
>>> r357746f -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 1.21G 2020-03-20 06:19
>>> r359249b NR=C2=A0=C2=A0=C2=A0=C2=A0 /=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 74.7G 2020-03-28 01:19
>>> root@momh167-gjp4-8570p:~ # bectl list -aDs
>>> BE/Dataset/Snapshot=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 Active Mountpoint
>>> Space Created
>>>
>>> Waterfox
>>> =C2=A0 copperbowl/ROOT/Waterfox=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - 204M
>>> 2020-03-10 18:24
>>> =C2=A0 Waterfox@2020-03-20-06:19:45=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - 67.0M
>>> 2020-03-20 06:19
>>>
>>> r357746f
>>> =C2=A0 copperbowl/ROOT/r357746f=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 -=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - 1.21G
>>> 2020-03-20 06:19
>>>
>>> r359249b
>>> =C2=A0 copperbowl/ROOT/r359249b=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0 NR=C2=A0=C2=A0=C2=A0=C2=A0 / 74.7G
>>> 2020-03-28 01:19
>>> =C2=A0 r359249b@2020-03-17-21:57:17=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 =
-=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 - 15.7G
>>> 2020-03-17 21:57
>>> root@momh167-gjp4-8570p:~ # zfs list -t snapshot
>>> NAME=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0 USED AVAIL=C2=A0
>>> REFER=C2=A0 MOUNTPOINT
>>> copperbowl/ROOT/Waterfox@2020-03-20-06:19:45=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 67.0M - 59.2G=C2=A0 -
>>> copperbowl/ROOT/r359249b@2020-03-17-21:57:17=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 15.7G - 59.2G=C2=A0 -
>>> copperbowl/iocage/releases/12.0-RELEASE/root@jbrowsers=C2=A0=C2=A0=C2=
=A0=C2=A0 8K - 1.24G=C2=A0 -
>>> copperbowl/poudriere/jails/head@clean=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 328K - 1.89G=C2=A0 -
>>> root@momh167-gjp4-8570p:~ # zfs destroy
>>> copperbowl/ROOT/r359249b@2020-03-17-21:57:17
>>> cannot destroy 'copperbowl/ROOT/r359249b@2020-03-17-21:57:17':
>>> snapshot has dependent clones
>>> use '-R' to destroy the following datasets:
>>> copperbowl/ROOT/r357746f
>>> copperbowl/ROOT/Waterfox@2020-03-20-06:19:45
>>> copperbowl/ROOT/Waterfox
>>> root@momh167-gjp4-8570p:~ # date ; uname -v
>>> Sat Mar 28 15:30:57 GMT 2020
>>> FreeBSD 13.0-CURRENT #1 r359249: Tue Mar 24 00:12:27 GMT 2020
>>> root@momh167-gjp4-8570p:/usr/obj/usr/src/amd64.amd64/sys/GENERIC-NODE=
BUG
>>> root@momh167-gjp4-8570p:~ #
>>>
> _______________________________________________
> freebsd-current@freebsd.org mailing list
> https://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.o=
rg"


--=20
Allan Jude


--lpwSQpropBlMSdi6iPtPqHYQ8CRL4qhJb--

--h04QFOvbtSMu41cJPNtmbIj2KhJRgLFth
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.22 (MingW32)

iQIcBAEBAgAGBQJegog7AAoJEBmVNT4SmAt+YOUP/A7LOAIyr0wTCXz1cQRobVmy
4igEfg5J5JZMobhW7rrf7NBH3bKAfQ4zgoJgGc03d4JzpsCxh2aPuyUib9FXImzr
2Lf6g7ccFHmF1DgnLaVJIImaIoBWfB+R5W5TjoZWrsL5ogudn58POwiOAOfDkLXb
fgUlOPkVs8hOCquLvsjRY3fAgEjbH5QfrYBD1tcO84OAiFdwvSRstc9Je5bhOfeq
jrwcDDt/69yaUePNABp4G1JVv5HCs41U5y1IzrJ4nJJRrMrHQW0vVVPqZRhIOvDS
kvSuaepiX9+aUdI5FRbp87D4/aty2wn1T9d8gf6LMlxUxOSwuMEcGvXcm1fP+gds
3V0J/ZOi6fyRhEssxTORhVFQ8YVrWv5RJc6UicBeCqMXF453GwE+ZRle8FZkErN9
Wj20SQrBSbrCdCY5T5kPVcTEtoqMNaEfnVNprHGnhbkkLhl/JcCBc6edzjsbgxwj
DX6CnH3vbJBJvAF6vsAwEPTEaJg647vW5ciNDbyXsDVjBYvSIRTGh25SKOGqo4WI
upVomIQYFK3EJBLYMZcoMiZjrYrw4h4Pmu1rk/ZIyT6DGfXGpWI6PCBaQDQNjz+3
Tpgo/f/hQO17rWlC5uc6vYDhFaaM7wnoXznNdA5DJApl94yGwh6G81eHeXnXldUc
rHcmCmyXwbbzbXL+MQhU
=bb4f
-----END PGP SIGNATURE-----

--h04QFOvbtSMu41cJPNtmbIj2KhJRgLFth--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?684735bc-49f9-4161-3f44-186d9da59bb5>