On Mon, 5 Aug 2024 at 22:29, Carsten Grzemba via illumos-discuss <discuss@lists.illumos.org> wrote: > I have an additional SMF service in place which should export the zpool on > shutdown before iscsi-initiator is gone and on boot import after > iscsi-initiator is in place. But if the shutdown not work in that kind, the > zpools are in zfs cache at next boot.
If you want to do this on your own, then I suspect you would want to set the "cachefile" property to "none". According to zpool(8) this would prevent the kernel from writing the pool's configuration to the system cache file. Presumably that would prevent it being imported automatically. At boot you could explicitly import the pools you want, and at shutdown you could presumably export them before networking goes down. > But I noticed that zones will also attempt to shutdown if I run 'reboot' > where I thought that no attempt was being made to stop any services. I believe to get that behaviour, you need to use "reboot -q". As per reboot(8): -q Quick. Reboot quickly and ungracefully, without shutting down running processes first. Cheers. -- Joshua M. Clulow http://blog.sysmgr.org ------------------------------------------ illumos: illumos-discuss Permalink: https://illumos.topicbox.com/groups/discuss/T494e7618fdacd18b-Md9fab2b844b2f24a52e3aaa3 Delivery options: https://illumos.topicbox.com/groups/discuss/subscription