[root@snet102 ~]# cat /etc/fstab
#
# /etc/fstab
# Created by anaconda on Tue Nov 13 14:06:32 2012
#
# 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/vg_rl6u3vanilla-lv_root /                       ext4    defaults        1 1
UUID=2309506a-eed6-413e-b234-0587949c3504 /boot                   ext4    defaults        1 2
/dev/mapper/vg_rl6u3vanilla-lv_swap swap                    swap    defaults        0 0
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
##
client10:/iscsi1/nfsdata  /nfstest2             nfs     _netdev         0 0
##
[root@snet102 ~]# df -hFnfs
Filesystem            Size  Used Avail Use% Mounted on
client10:/iscsi1/nfsdata
                      2.0G   37M  1.9G   2% /nfstest2
Saturday, March 30, 2013
How to mount NFS volume at Boot time in Linux?
It seems very basic thing - however, coming from Solaris background, it was always a puzzle why Linux was not able to mount my NFS volumes the way it was mounting in Solaris. Basically, the only difference is "_netdev" keyword - which tells Linux that this device should be mounted AFTER network services are UP. To work around this, I even used a custom run-control script at /etc/rc3.d to mount it later. Now that I found "_netdev" keyword - I know that I am never going to use any workarounds for my NFS volumes. :)
Labels:
How-to series,
Linux,
Linux fundamentals,
mount,
nfs,
RHEL 6
Subscribe to:
Post Comments (Atom)
 
 
 
 Posts
Posts
 
 
No comments:
Post a Comment