1830938 Members
1968 Online
110017 Solutions
New Discussion

NFS SERVER

 
donne007
Regular Advisor

NFS SERVER

Hi Team,
CAn Any one help me out how to start an NFs server at system start up. and what are all the procedures for making up an NFs Server & a client..
Thanks in advance
Asif
2 REPLIES 2
Kodjo Agbenu
Honored Contributor

Re: NFS SERVER

Hello,

Make sure "nfs-utils" is installed :

rpm -q nfs-utils

Then make sure that NFS is started in system bootup scripts :

root:~# cd /etc/rc.d
root:/etc/rc.d# find . -print | grep nfs
/init.d/nfs
./init.d/nfslock
./rc0.d/K20nfs
./rc0.d/K86nfslock
./rc1.d/K20nfs
./rc1.d/K86nfslock
./rc2.d/K20nfs
./rc2.d/K86nfslock
./rc3.d/K20nfs
./rc3.d/S14nfslock
./rc4.d/K20nfs
./rc4.d/S14nfslock
./rc5.d/K20nfs
./rc5.d/S14nfslock
./rc6.d/K20nfs
./rc6.d/K86nfslock


If you only have "K.." script and not "S.." ones, use chk-config to make appropriate symlinks :

chkconfig --level 345 nfs on


To export directories, you need to edit /etc/exports like this :

/dir_to_be_exported *(rw,no_root_squash)

To have all options, read the exports 5 manpage.

To apply changes : exportfs -rv


On the client side, you also need nfs-utils package installed.

To mount remote directory :

mount nfs_server_IP:/directory /mountpoint


To make it automatically mounted at boot, edit /etc/fstab as follows :

nfs_server_IP:/directory /mountpoint nfs intr 0 0



Good luck.

Kodjo


Learn and explain...
U.SivaKumar_2
Honored Contributor

Re: NFS SERVER

Hi,

give this command.

#ntsysv

and select the networking services to be enabled automatically on bootup.

regards,
U.SivaKumar
Innovations are made when conventions are broken