[OmniOS-discuss] Bug: OmniOS r151008j terminates iSCSI initiator too early in shutdown

Chris Siebenmann cks at cs.toronto.edu
Fri Mar 7 20:49:44 UTC 2014


 In at least OmniOS r151008j, the iSCSI initiator and thus any iSCSI
disks it has established are shut down relatively early during a shutdown
or reboot. In specific they are terminated before halt et al runs
'/sbin/bootadm -ea update_all' (in halt.c's do_archives_update()).
Under some circumstances this will cause system shutdown to hang.

 Suppose that you have ZFS pools that are hosted on iSCSI disks and
those pools are set to the default 'failmode=wait'. When the iSCSI disks
go away due to initiator shutdown, those pools enter a state where any
IO to them will stall. Unfortunately bootadm does such IO (or at least
does something that stalls in ZFS-land) and as such will itself stall,
which stalls the shutdown process.

 Presumably either bootadm should be run earlier or iSCSI initiator
shutdown should happen later or both.

	- cks


More information about the OmniOS-discuss mailing list