Bug 239702 - sysutils/openzfs bectl activate … cannot promote … not a cloned filesystem … did not successfully activate boot environment
Summary: sysutils/openzfs bectl activate … cannot promote … not a cloned filesystem … ...
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Kris Moore
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-08-07 18:48 UTC by Graham Perrin
Modified: 2019-08-08 14:38 UTC (History)
2 users (show)

See Also:
bugzilla: maintainer-feedback? (kmoore)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Graham Perrin 2019-08-07 18:48:27 UTC
With ZoF: 

----

…
Updating '/usr/src':
At revision 350684.
root@momh167-gjp4-8570p:~ # bectl create r350684
root@momh167-gjp4-8570p:~ # bectl activate r350684
cannot promote 'copperbowl/ROOT/r350684': not a cloned filesystem
did not successfully activate boot environment r350684
root@momh167-gjp4-8570p:~ # date ; uname -v 
Wed Aug  7 19:01:53 BST 2019
FreeBSD 13.0-CURRENT r350368 GENERIC 
root@momh167-gjp4-8570p:~ # bectl list -as
BE/Dataset/Snapshot                               Active Mountpoint Space Created

r350368
  copperbowl/ROOT/r350368                         N      /          60.7G 2019-07-27 09:56
  r350368@2019-06-16-08:24:26-0                   -      -          4.11G 2019-06-16 08:24
  r350368@2019-07-05-11:42:18-0                   -      -          8.55G 2019-07-05 11:42
  r350368@2019-07-13-23:44:48-0                   -      -          7.61G 2019-07-13 23:44
  r350368@2019-07-16-13:57:25-0                   -      -          5.43G 2019-07-16 13:57
  r350368@2019-07-27-09:56:16-0                   -      -          7.91G 2019-07-27 09:56
  r350368@2019-08-07-19:01:01-0                   -      -          0     2019-08-07 19:01

r350684
  copperbowl/ROOT/r350684                         R      -          8K    2019-08-07 19:01

r349033
  copperbowl/ROOT/r349033                         -      -          29.9G 2019-06-14 16:04
  r349033@2019-06-14-16:04:33-0                   -      -          4.84G 2019-06-14 16:04

r350027
  copperbowl/ROOT/r350027                         -      -          2.45M 2019-07-16 13:57

r343663
  copperbowl/ROOT/r343663                         -      -          25.2G 2019-02-01 18:04
  r343663@2019-02-01-18:04:56                     -      -          5.16G 2019-02-01 18:04
root@momh167-gjp4-8570p:~ # bectl list | sort
BE      Active Mountpoint Space Created
r343663 -      -          25.2G 2019-02-01 18:04
r349033 -      -          29.9G 2019-06-14 16:04
r350027 -      -          2.45M 2019-07-16 13:57
r350368 N      /          60.7G 2019-07-27 09:56
r350684 R      -          8K    2019-08-07 19:01
root@momh167-gjp4-8570p:~ # bectl activate r350368
cannot promote 'copperbowl/ROOT/r350368': not a cloned filesystem
did not successfully activate boot environment r350368
root@momh167-gjp4-8570p:~ # bectl list | sort
BE      Active Mountpoint Space Created
r343663 -      -          25.2G 2019-02-01 18:04
r349033 -      -          29.9G 2019-06-14 16:04
r350027 -      -          2.45M 2019-07-16 13:57
r350368 NR     /          60.7G 2019-07-27 09:56
r350684 -      -          8K    2019-08-07 19:01
root@momh167-gjp4-8570p:~ # zpool get bootfs copperbowl
NAME        PROPERTY  VALUE                    SOURCE
copperbowl  bootfs    copperbowl/ROOT/r350368  local
root@momh167-gjp4-8570p:~ # bectl activate r350684
cannot promote 'copperbowl/ROOT/r350684': not a cloned filesystem
did not successfully activate boot environment r350684
root@momh167-gjp4-8570p:~ # zpool get bootfs copperbowl
NAME        PROPERTY  VALUE                    SOURCE
copperbowl  bootfs    copperbowl/ROOT/r350684  local
root@momh167-gjp4-8570p:~ # bectl activate r350368
cannot promote 'copperbowl/ROOT/r350368': not a cloned filesystem
did not successfully activate boot environment r350368
root@momh167-gjp4-8570p:~ # pkg query '%o %v %R' openzfs openzfs-kmod
sysutils/openzfs 2019072200 poudriere
sysutils/openzfs-kmod 2019072200_1 poudriere
root@momh167-gjp4-8570p:~ # grep zfs /boot/loader.conf
# zfs_load="YES"
openzfs_load="YES"
root@momh167-gjp4-8570p:~ # grep zfs /etc/rc.conf
zfs_enable="YES"
root@momh167-gjp4-8570p:~ # kldstat | grep zfs
 7    1 0xffffffff82837000   554028 openzfs.ko
root@momh167-gjp4-8570p:~ # nano /boot/loader.conf

…

root@momh167-gjp4-8570p:~ # grep zfs /boot/loader.conf
zfs_load="YES"
# openzfs_load="YES"
root@momh167-gjp4-8570p:~ # shutdown -r +2
Shutdown at Wed Aug  7 19:12:31 2019.
shutdown: [pid 19292]
root@momh167-gjp4-8570p:~ #                                                                                
*** System shutdown message from root@momh167-gjp4-8570p ***                 

System going down in 2 minutes
Comment 1 Graham Perrin 2019-08-07 18:51:54 UTC
With zfs.ko in lieu of openzfs.ko :

----

root@momh167-gjp4-8570p:~ # date ; uname -v ; uptime
Wed Aug  7 19:23:01 BST 2019
FreeBSD 13.0-CURRENT r350368 GENERIC 
 7:23PM  up 8 mins, 2 users, load averages: 0.14, 0.46, 0.31
root@momh167-gjp4-8570p:~ # kldstat | grep zfs
 6    1 0xffffffff8282b000   458710 zfs.ko
root@momh167-gjp4-8570p:~ # bectl activate r350684
successfully activated boot environment r350684
root@momh167-gjp4-8570p:~ # shutdown -r +2
Shutdown at Wed Aug  7 19:25:39 2019.
shutdown: [pid 2713]
root@momh167-gjp4-8570p:~ #                                                                                
*** System shutdown message from root@momh167-gjp4-8570p ***                 

System going down in 2 minutes