Mounting a directory (120 Views)
Reply
Frequent Advisor
Karthik_sg
Posts: 68
Registered: ‎04-18-2007
Message 1 of 10 (120 Views)

Mounting a directory

Hi all,

I want to know how can i make directory mount by other users. for ex:
i have /home/exper/shared in 11.0.0.3

and i want a user on another machine mount exper@11.0.0.3:/home/exper/shared /shared on the new machime that is 11.0.0.5

Thanks in advance.
Please use plain text.
Frequent Advisor
Karthik_sg
Posts: 68
Registered: ‎04-18-2007
Message 2 of 10 (120 Views)

Re: Mounting a directory

Also i have started the nfs server on 11.0.0.3.
So what is the next step to be followed.
Please use plain text.
Honored Contributor
Change_happens
Posts: 528
Registered: ‎09-26-2007
Message 3 of 10 (120 Views)

Re: Mounting a directory

use mount command to do it or make a manual entry in fstab for permanent mounting every time system starts.
"man mount"
Which version of Linux u r using?
Please use plain text.
Frequent Advisor
Karthik_sg
Posts: 68
Registered: ‎04-18-2007
Message 4 of 10 (120 Views)

Re: Mounting a directory

I am using RHEL5 for server and RHEL4 for client,And i have added the entry in /etc/fstab and the entry is
LABEL=/home/exper /home/exper ext3 defaults 1 1
and i have restarted nfs on both.Not sure wht is the problem.
Please use plain text.
Honored Contributor
Alexander Chuzhoy
Posts: 1,222
Registered: ‎07-02-2003
Message 5 of 10 (120 Views)

Re: Mounting a directory

make sure you have an etry as the following in /etc/exports file:
/home/exper/shared 11.0.0.5/32(rw)

rw here means read+write - use ro for read only.
then restart the nfs service:
service nfs restart
then make sure the firewall (iptables) allows the traffic.


from 11.0.0.5 issue the command:
showmount -e
the output should list the available shares -f you get it, then basically you should be able to mount the directory.

Very important thing is to assign points.
Please use plain text.
Frequent Advisor
Karthik_sg
Posts: 68
Registered: ‎04-18-2007
Message 6 of 10 (120 Views)

Re: Mounting a directory

In the exports file on server i have included the directory as /home/exper/shared *(rw,no_root_squash)
and i have restarted the nfs and nfslock service now and still i get the following error message mount to NFS server '11.0.0.0.3' failed: server is down

I have even restarted the nfs and nfslock on the client machine not sure what to do about this.

Please use plain text.
Honored Contributor
Alexander Chuzhoy
Posts: 1,222
Registered: ‎07-02-2003
Message 7 of 10 (120 Views)

Re: Mounting a directory

1. check the ip address.
2. From server, run `showmount -e` to see the available shares. If shows nothing - the share isn't there.
3. From client run `showmount -e 10.0.0.3`.



First check connectivity between these 2 servers (ping) and make sure the ports aren't blocked with firewall.

ASSIGN POINTS: 7 assignments out of 85?.
Please use plain text.
Frequent Advisor
Karthik_sg
Posts: 68
Registered: ‎04-18-2007
Message 8 of 10 (120 Views)

Re: Mounting a directory

when i do showmount -e on server it shows me the shared directory but i cannot do showmount -e 11.0.0.3 on client i get the following error showmount -e 11.0.0.3
bash: showmount: command not found

And i can ping both the machines.Pls let me know how i shd go abt this
PS:I have assigned the points
Please use plain text.
Honored Contributor
Alexander Chuzhoy
Posts: 1,222
Registered: ‎07-02-2003
Message 9 of 10 (120 Views)

Re: Mounting a directory

try with the full path:
/usr/sbin/showmount -e


if not found - install the nfs-utils rpm.
Please use plain text.
Honored Contributor
Jimmy Vance
Posts: 1,480
Registered: ‎11-27-2006
Message 10 of 10 (120 Views)

Re: Mounting a directory

by default Red Hat turns on the firewall during install, try running /etc/init.d/iptabls stop and then see if the client can get access. If it works, then you need to either leave the firewall off or set it up to pass the proper ports for NFS

Please use plain text.
The opinions expressed above are the personal opinions of the authors, not of HP. By using this site, you accept the Terms of Use and Rules of Participation