After system reboot logical volumes or file systems on the SAN are not accessible. How can I resolve

本文介绍了解决新安装系统在启动时无法检测到连接的SAN设备上的文件系统的问题。通过在/etc/fstab中为受影响的设备添加_netdev参数,确保在netfs服务启动后激活逻辑卷和挂载文件系统,从而避免系统进入单用户模式。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

https://access.redhat.com/solutions/7225

 SOLUTION 已验证 - 已更新 2019年二月5日01:18 - 

English 

环境

  • 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:

Raw

/dev/vgsan/lv01 /storage ext3 defaults 1 2
  • Into:

Raw

/dev/vgsan/lv01 /storage ext3 _netdev 1 2
  • For normal file systems, change

Raw

/dev/sda1 /storage ext3 defaults 1 2
  • Into

Raw

/dev/sda1 /storage ext3 _netdev 1 2
  • Start the netfs service :

Raw

[root@host ~]# service netfs start
[root@host ~]# chkconfig netfs on
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值