/etc/fstab开机自动挂载NFS

#
# /etc/fstab
# Created by anaconda on Thu Jul 11 02:52:01 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
#
UUID=1114fe9e-2309-4580-b183-d79999888887 /                       ext4    defaults        1 1
UUID=60ab5daf-ebe2-4212-8840-299999888882     /dafa        xfs defaults,nofail 0 0
xxxxxxx-xxxx.cn-shenzhen.extreme.nas.aliyuncs.com:/share /nfs-data nfs vers=3,noacl,nolock,proto=tcp,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2,noresvport,_netdev,nofail 0 0

_netdev        挂载网络设备磁盘时,告诉系统是网络设备,启动时需等待网络。

nofail        即使启动时遇到挂载配置问题或者设备不可用时,也不影响系统启动。

你可能感兴趣的:(Linux基础,linux,运维)