Linux 下 iSCSI存储开机自动挂载

划重点,踩过的坑!!!

编辑 vi /etc/fstab

[root@OAJENKINS ~]# vi /etc/fstab

# /etc/fstab
# Created by anaconda on Mon Jan 14 10:23:51 2019
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/centos-root /                       xfs     defaults        0 0
UUID=0dddbd77-bb08-4999-8226-fed0ee39b079 /boot                   xfs     defaults        0 0
/dev/mapper/centos-home /home                   xfs     defaults        0 0
/dev/mapper/centos-swap swap                    swap    defaults        0 0
UUID=60b686fe-7539-4088-9f4e-0d65f89f9343  /data                  ext3    defaults,_netdev        0 0

UUID=60b686fe-7539-4088-9f4e-0d65f89f9343 /data ext3 defaults,_netdev 0 0

iSCSI存储自动挂载存储一定要在defaults后面加上 ,_netdev (设备需要网络)上面红字部分。还有个逗号。

你可能感兴趣的:(Linux 下 iSCSI存储开机自动挂载)