Proper mount options for iSCSI drives
This document (000019648) is provided subject to the disclaimer at the end of this document.
SUSE Linux Enterprise Server 12
- Dropping to an emergency shell during boot if the iSCSI target is not reachable
- Failure to shutdown correctly including hangs during shutdown process, and improperly dismounted file systems.
Please avoid using the “nofail” option as it is known to cause issues, and the “_netdev” option makes it superfluous.
To fix this many users will use the "nofail" option. While this will help the system boot properly, it will cause systemd to improperly calculate the ordering constraints needed for a proper shutdown.
This results in race conditions during shutdown which can lead to the iSCSI storage device being disconnected prior to the mount point being properly unmounted.
To fix this problem "_netdev" should be used instead of "nofail".
_netdev : Normally the file system type is used to determine if a mount is a "network mount", i.e. if it should only be started after the network is available. Using this option overrides this detection and specifies that the mount requires network. Network mount units are ordered between remote-fs-pre.target and remote-fs.target, instead of local-fs-pre.target and local-fs.target. They also pull in network-online.target and are ordered after it and network.target.
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:000019648
- Creation Date: 23-Oct-2020
- Modified Date:23-Oct-2020
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: email@example.com