Enable NFS Mount after Reboot on linux CentOS

perkiraan ilustrasi yang memungkinkan
-- pra-kata-kata --
unnecessary mukodimah that needed is telling that we need an opening messege  message for opening article. and here we go i think it's enought for opening :D

--step one--
you need some .... yeah... you know what you need for comforting yourself. Back to topic, the real for what you need is some NFS server (nfs.server.com) or of course, and the client absolutly. 
preparation complete and now lets go to next level of this article

--step two--
for this configuration, all you have to do is open your /etc/fstab file. and it's will be something like this : 

# /etc/fstab
# Created by anaconda on Tue Apr 25 22:51:16 2017
#
# 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/VolGroup-LogVol01        /              ext4    defaults         1 1
UUID=dd89f8e6                        /boot          ext4    defaults         1 2
/dev/mapper/VolGroup-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
nfs.server.com:/data                /Data           nfs     defaults,_netdev 0 0
just focus on the last line, thas is sample of nfs mount that we need. 
are we done here.... ??? no .. no... noo...  we need to enable one more service to make our hard work done. the service is netfs and make sure that service is load on booting.
chkconfig netfs on
-- check $ jajal --
and the final is to test our config.... reboot the mechine a.k.a server, and se what happen next.. ^_^.
the point is "ndang di jajal dewe dewe ben dong gitu...."

-- penutupan --
secara algorithm,your mount boot process should be something like this: 
- Automounter reads config on /etc/fstab 
- Ignores /Data since it has _netdev option set 
- Mounts all other filesystems 
- Finishes mount jobs and allows system to continue booting 
- Network comes up 
- Service netfs started, and service netfs reads /etc/fstab and finds an nfs filesystem 
- netfs mounts the /Data


* do with your own risk

Previous
Next Post »

comment please ... ConversionConversion EmoticonEmoticon

Thanks for your comment