NFS實現系統啓動時延遲掛載

nfs客戶端ide

1. vi  /etc/fstab 加入一下選項_netdevthis

10.10.10.1:/vol1/fs1 /data nfs defaults,_netdev 0 0spa


2. service netfs start;  chkconfig netfs onit


that's it.io


Now your mount boot process should look something like this:

1. Automounter reads /etc/fstab
2. Ignores /data since it has _netdev option set
3. Mounts all other filesystems
4. Finishes mount jobs and allows system to continue booting
5. Network comes up
6. Service netfs started
7. netfs reads /etc/fstab and finds an nfs filesystem
8. netfs mounts /data

參考: http://thenubbyadmin.com/2013/04/10/solving-nfs-mounts-at-boot-time/class

相關文章
相關標籤/搜索