1819874 Members
2764 Online
109607 Solutions
New Discussion юеВ

NFS configuration

 
SOLVED
Go to solution
ln_unix
Frequent Advisor

NFS configuration

Hello All,

need your help.

Want to configure / share a file system via NFS.

Can you please explain simple steps to be done on both nodes....


Thanks for your ever support.....

Best Regards,
LN
5 REPLIES 5
Patrick Wallek
Honored Contributor

Re: NFS configuration

What operating systems and what versions are you using on the server and the client?
ln_unix
Frequent Advisor

Re: NFS configuration

Hello Patrick,

I am using HP-UX 11iv1

Thanks for your quick response.

LN
Suraj K Sankari
Honored Contributor
Solution

Re: NFS configuration

Hi,
Add a line to the /etc/exports file for each directory you want to
make available to NFS clients

Edit the exports file vi /etc/exports and add:
/dir/to/export host1.mydomain.com(ro,root_squash)
/dir/to/export host2.mydomain.com(ro,root_squash)


Where:

/dir/to/export is the directory you want to export.
host#.mydomain.com is the machine allowed to log in this directory.
The ro option mean mounting read-only.
The root_squash option for not allowing root write access in this directory.

For this change to take effect you will need to run the following command on your terminal:
[root@deep]# /usr/sbin/exportfs -a


Then make changes in /etc/rc.config.d/nfsconf

NFS_SERVER=1
START_MOUNTD=1

one more think to check /etc/inetd.conf file on NFS server does not contain
a line to start rpc.mountd. If it does, make sure the START_MOUNTD
variable in /etc/rc.config.d/nfsconf is set to 0.

allows to start and stop the daemons processes using
# /sbin/init.d/nfs.server start
# /sbin/init.d/nfs.server stop

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
on the NFS-Client demons are

rpc.lockd and rpc.statd for file locking
biod I/O Organization
automountd if you like or need it

make changes in /etc/rc.config.d/nfsconf

NFS_CLIENT=1

for allows to start and stop the daemons processes using

# /sbin/init.d/nfs.client start or
# /sbin/init.d/nfs.client stop

Suraj
ln_unix
Frequent Advisor

Re: NFS configuration

Hello Suraj,

Thanks for your help and reply...

got your points...

Best Regards,
LN

ln_unix
Frequent Advisor

Re: NFS configuration

closing the thread....Thanks All...