https://access.redhat.com/solutions/7225
SOLUTION 已验证 - 已更新 2019年二月5日01:18 -
环境
- Red Hat Enterprise Linux
- Shared Storage (ISCSI, SAN)
问题
- Newly installed system with SAN devices attached fails to detect file system(s) at boot time. During reboot the logical volumes or file systems on the SAN are not accessible.
- During boot, system is not able to mount file systems and goes into single user mode forcing us to comment them on fstab due to some SAN devices not being present.
决议
-
This problem is best solved by using the _netdev parameter in /etc/fstab for the device. It ensures that logical volumes are only activated and the file system mounted when the service netfs is started. Since this service is only started later in the boot process, it gives the SAN enough time to finish the process of presenting its LUNs.
-
Add the _netdev parameter as a mount option in /etc/fstab for all affected file systems. Note that this parameter should not be used for file systems needed for the operating system to successfully boot. (Examples: /etc, /usr, /var.)
-
For LVM file systems, change:
/dev/vgsan/lv01 /storage ext3 defaults 1 2
- Into:
/dev/vgsan/lv01 /storage ext3 _netdev 1 2
- For normal file systems, change
/dev/sda1 /storage ext3 defaults 1 2
- Into
/dev/sda1 /storage ext3 _netdev 1 2
- Start the netfs service :
[root@host ~]# service netfs start
[root@host ~]# chkconfig netfs on
本文介绍了解决新安装系统在启动时无法检测到连接的SAN设备上的文件系统的问题。通过在/etc/fstab中为受影响的设备添加_netdev参数,确保在netfs服务启动后激活逻辑卷和挂载文件系统,从而避免系统进入单用户模式。
2万+

被折叠的 条评论
为什么被折叠?



