1837185 Members
2577 Online
110114 Solutions
New Discussion

Re: NFS issue

 
Ashok S T
Advisor

NFS issue

Hi guys,

Mine is hp-ux 11.11 servers,my query is, i am trying the following steps to mount NFS filesystem in one of the client

but when i am giving bdf command in client system. o/p shows only filesystems having that local server.

Please any one help me,any changes required.........


Steps :

1.Create /etc/exports file in NFS server.

2./home -access=myhp entered in /etc/exports file.( myhp is hostname of NFS client system)

3.exportfs -a

4.more /etc/xtab

/home -access=myhp

5.vi /etc/rc.config.d/nfsconf

NFS_CLIENT=0

NFS_SERVER=1

NUM_NFSD=16

NUM_NFSIOD=16

PCNFS_SERVER=0

START_MOUNTD=1

6./sbin/init.d/nfs.core start

7./sbin/init.d/nfs.server start

IN CLIENT SYSTEM: steps

1. vi /etc/rc.config.d/nfsconf

NFS_CLIENT=1

NFS_SERVER=0

NUM_NFSD=0

NUM_NFSIOD=16

PCNFS_SERVER=0

START_MOUNTD=0

2.mkdir home01

3.vi /etc/fstab

myhp:/home /home01 nfs rw 0 0

4./sbin/init.d/nfs.core start

5./sbin/init.d/nfs.client start


Thanks in Advance

regards

Ashok

5 REPLIES 5
Ninad_1
Honored Contributor

Re: NFS issue

Hi,

After making the entry in /etc/fstab in your NFS client, have you mounted the FS on the client ?
If not, can you try mounting it and tell us if there is any error while mounting.

I have observed, not sure why, it was required to give the fully qualified host name of your server to which you want to give access in the option e.g. -access=myhp.domain1.local
and then try resporting and mount on NFS client server.

Regards,
Ninad
sreekanthtm
Trusted Contributor

Re: NFS issue

Steps to do.......

In server,
Edit /etc/exports accordingly....., what you have done here is correct.

# exportfs -a

In client,

# mount myhp:/home /home01

Simple.... is it???!!

And check the bdf o/p to confirm it... If ur getting any error, post it here.

Troubleshooting...
Try to ping the server from both hosts
Try nslookup for host name resolution
# showmount from the server


rgds
Sreekanth
SKR_1
Trusted Contributor

Re: NFS issue

Run below command on client

mount -F nfs NFS_server_name:/home /home01

Thanks

SKR
Ganesan R
Honored Contributor

Re: NFS issue

Hi Ashok,

One thing I observed from your steps is, you are exporting the filesystem before you start the NFS services. Not sure you exported after starting the services or not.

Anyway if # showmount -e shows the filesystem is exported to that client then server side is ok.

Now our questions is that have you tried mounting on client manually? or have you run mount command after putting entry on fstab file?

did you get any errors while mounting?
Provide the error messages if yes.

Also make sure both client and server is able to resolve their names.
Best wishes,

Ganesh.
Ashok S T
Advisor

Re: NFS issue

Hi,

In NFS client /etc/fstab entry was wrong.

Instead of NFS_SERVER_NAME i entered NFS_CLIENT_NAME.

Now i am able to mount.

Entry in /etc/fstab

NFS_SERVER_HOSTNAME:/home /home01 nfs rw 0 0

Any other different methods is there ..... that means AUTOMOUNT and some other permisions etc...

Please let me know......

Thanks for your replies

Ashok