Hi.

I see the following issue in zone - I can't activate boot environment.
I can do, for example,
  beadm destroy zbe-backup-2
but not
  beadm activate zbe-backup-2 (or any other BE, including active one).


$ pfexec beadm activate -v  zbe-14
be_promote_ds_callback: promote of data/zones/os36/ROOT/zbe-14 failed: dataset does not exist be_activate: failed to activate the datasets for data/zones/os36/ROOT/zbe-14: dataset does not exist
Unable to activate zbe-14.
BE promotion failed.


If I halt zone, manually set org.opensolaris.libbe:active=on on necessary dataset and boot it, everything works as expected.

truss'ing beadm activate shows the following:

open("/dev/zfs", O_RDWR)                        = 3
open("/etc/mnttab", O_RDONLY)                   = 4

...
ioctl(4, MNTIOC_GETMNTANY, 0x080420D4)          = 1
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08041008) Err#3 ESRCH
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08042238) = 0
llseek(4, 0, SEEK_CUR)                          = 0
llseek(4, 0, SEEK_SET)                          = 0
ioctl(4, MNTIOC_GETMNTANY, 0x080420D4)          = 1
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08041008) Err#3 ESRCH
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08042238) Err#12 ENOMEM
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08042238) = 0
llseek(4, 0, SEEK_CUR)                          = 0
llseek(4, 0, SEEK_SET)                          = 0
ioctl(4, MNTIOC_GETMNTANY, 0x080420D4)          = 1
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08041008) Err#3 ESRCH
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08042238) = 0
llseek(4, 0, SEEK_CUR)                          = 0
llseek(4, 0, SEEK_SET)                          = 0
ioctl(4, MNTIOC_GETMNTANY, 0x080420D4)          = 1
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08041008) Err#3 ESRCH
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08042238) Err#12 ENOMEM
ioctl(3, ZFS_IOC_DATASET_LIST_NEXT, 0x08042238) = 0
llseek(4, 0, SEEK_CUR)                          = 0
llseek(4, 0, SEEK_SET)                          = 0
ioctl(4, MNTIOC_GETMNTANY, 0x080420D4)          = 0
ioctl(3, ZFS_IOC_OBJSET_STATS, 0x08045958)      = 0
llseek(4, 0, SEEK_CUR)                          = 0
llseek(4, 0, SEEK_SET)                          = 0
ioctl(4, MNTIOC_GETMNTANY, 0x08045D74)          = 0
zone_lookup(0x00000000)                         = 76
ioctl(3, ZFS_IOC_OBJSET_STATS, 0x08045D98)      = 0
ioctl(6, ZFS_IOC_PROMOTE, 0x08045968)           Err#2 ENOENT
close(3)                                        = 0
....




ioctl(6, ZFS_IOC_PROMOTE, 0x08045948) Err#2 ENOENT seems suspicios...

--
Best regards,
Alexander Pyhalov,
system administrator of Southern Federal University IT department

------------------------------------------
illumos: illumos-discuss
Permalink: 
https://illumos.topicbox.com/groups/discuss/discussions/T00ccd97df9cb1d97-M913f009cf2a216850f24315a
Delivery options: https://illumos.topicbox.com/groups

Reply via email to