`<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">The 'reboot' works, but it kills all processes at once (including iscsid), leaving no chances for ZFS to flush write cache. And I suspect that with current iscsi/initiator SMF service implementation the same happens (but for some reason sync(), which is being called by 'reboot' after killing all processes, is not hangs).</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">30 нояб. 2016 г., в 18:05, Chris Siebenmann <<a href="mailto:cks@cs.toronto.edu" class="">cks@cs.toronto.edu</a>> написал(а):</div><br class="Apple-interchange-newline"><div class=""><blockquote type="cite" class="">Does anybody uses ZFS over iSCSI?<br class=""><br class="">There is problem with reboots as iscsi-initiator service does not<br class="">taking care of ZFS while shutting down. It leads to zpool goes into<br class="">UNAVAIL state and then first sync() issued gets blocked with following<br class="">stack:<br class=""></blockquote><br class=""> We have a significant ZFS-over-iSCSI fileserver environment and<br class="">haven't seen this, but we may be shutting our systems down in a<br class="">different way than you are.<br class=""><br class=""> We're on OmniOS r151014 and we haven't seen this behavior when we<br class="">reboot or shut down our systems via 'reboot' or 'poweroff'. For us it<br class="">seems to go the other way around; running 'reboot' won't completely shut<br class="">down the iSCSI initiator before the machine reboots, apparently because<br class="">it's being held busy by our active ZFS pools.<br class=""><br class=""> It may be relevant that we're using OmniOS multipathing across two<br class="">IPs for each target (configured statically); this might change the<br class="">device stack inside the kernel.<br class=""><br class=""> I don't think we've ever tried 'shutdown' itself on a live production<br class="">system, so I don't know how that would work.<br class=""><br class=""><span class="Apple-tab-span" style="white-space:pre"> </span>- cks<br class=""></div></blockquote></div><br class=""><div class="">
<div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="color: rgb(0, 0, 0); letter-spacing: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div class="">--</div><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class="">Dmitry Glushenok</div><div class="">Jet Infosystems</div></div></div></div></div></div></div></div></div></div></div></div>
</div>
<br class=""></body></html>`