-
wardenyes, in FreeBSD you can reference disks by their SN by using the path /dev/diskid/DISK-${SN}, if the sysctl 'kern.geom.label.disk_ident.enable' is set to 1 (as by default).
-
szilardHi. I am facing a strange issue here with my OmniOS install. I have a pkgsrc zone running znc & irssi. I have set up both program. It used to work for a long time this way. Then, some days ago I have modified the configuration of ZNC and I have used that way for some days. But yesterday I had to reboot the machine, and while the zone started, the config change I did some days ago is missing.
-
szilardI suspect this can be a boot-environment thing.
-
sommerfeldis it possible that a package update created and activated a new BE, and then you didn't reboot immediately but instead made a config change to the running BE?
-
sommerfeldbeadm list and beadm mount the previous BE and see if it has the missing config change..
-
szilardyes, that can be possible. If I run "zfs list" in the zone I see 13 different boot environment.
-
sommerfeldor, well, one of the previous be's if there are that many...
-
szilardthis is what I see: pastebin.com/raw/Uqc8A4yQ
-
sommerfeld"beadm list" shows creation dates and is generally more compact than "zfs list"
-
sommerfeldI generally prune old BE's fairly ruthlessly if the running system is stable.
-
szilardhere is the "beadm list" output: pastebin.com/raw/CNZ4mN5x
-
szilardStrange, but zbe-12 is active, not the last one.
-
szilardI have attempted to mount zbe-13, but it doesn't contain the changes I miss.
-
sommerfeldI'd recommend pruning BE's in the global zone.
-
sommerfeldsee the beadm manpage; the 'xb' indicates that the BE would be active on boot in a different global BE
-
sommerfeldyou likely had some pending updates in the global zone as well..
-
sommerfeldgenerally a bad idea to do any sysadmin ops in a non-global zone in between a pkg update and a reboot in the GZ for this reason.
-
sommerfeldpkg update in GZ with or without -r; then reboot without doing any other admin to NGZs. Then mess with NGZs after rebooting the GZ.
-
sommerfeldthe lost change is likely in an older BE in the IRC zone.
-
szilardNo, it is actually in the zbe-12
-
szilardI have reverted to an earlier BE in the global zone, I think this is the reason why the BE's marked as xb now. Is my logic sane here?
-
szilardlets check my theory