On Tuesday, December 10, 2019 at 6:25:00 AM UTC-8, can zhu wrote: > > os version: > > CentOS Linux release 7.4.1708 (Core) > > kernel version: > > 3.10.0-693.el7.x86_64 > > > systemd version: > > *systemd*-219-42.el7.x86_64 > > > Mount iscsi devices on the node(iscsi client node) and reboot os, hangs: > ... >
Hello: Such issue are common if the proper sequencing is not followed when shutting down iSCSI connections. One has to (in order): - if iscsi devices are being used, stop using them. That generally means unmounting any filesystems that use the devices. - logout of the iSCSI connection, i.e. end the iscsi session cleanly - stop the iscsi daemon - now the network can be shutdown And this of course assumes your target(s) are on other systems that are not being shut down. As mentioned by Ulrich, this sequencing is now handled by systemd on most Linux systems. And the way in which this is handled is that these different layers are handled by different services. For example, on SUSE, the daemon is controlled by iscsid.socket and iscsid.service, and the login/logout is handled by iscsi.service. I do not have a CentOS 7 system, but I'm downloading CentOS 8 to see how RH has set up the iSCSI services there. But, at a low level, you must have the "startup" value set to "automatic" for targets to be disconnected automatically at shutdown time. So you should be able to run: > zsh> sudo iscsiadm -m node --op show | fgrep startup to see the startup value. -- You received this message because you are subscribed to the Google Groups "open-iscsi" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/open-iscsi/1cf29039-73ae-46df-8e0e-76c8f17fed15%40googlegroups.com.
