can not mount an NFS share from another machine [ Solved ]

Taking care of your Linux box.
shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

can not mount an NFS share from another machine [ Solved ]

Postby shahzor » Wed Jul 22, 2009 4:46 pm

LinuxBoy

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Wed Jul 22, 2009 8:17 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Thu Jul 23, 2009 12:08 pm

LinuxBoy

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Thu Jul 23, 2009 2:48 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Thu Jul 23, 2009 3:55 pm

LinuxBoy

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Thu Jul 23, 2009 4:11 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Thu Jul 23, 2009 4:49 pm

LinuxBoy

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Thu Jul 23, 2009 10:24 pm

what's in your /etc/hosts.allow and /etc/hosts.deny files?
Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Fri Jul 24, 2009 5:54 pm

LinuxBoy

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Fri Jul 24, 2009 7:31 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Sat Jul 25, 2009 11:50 am

LinuxBoy

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Tue Jul 28, 2009 1:51 pm

finally I got it working, thanks lambda for hosts.allow and hosts.deny

I did the following in server A


/etc/hosts.allow

portmap: 192.168.0.0/55.255.255.0,serverb
mountd: 192.168.0.0/255.255.255.0
rquotad: 192.168.0.0/255.255.255.0
statd: 192.168.0.0/255.255.255.0
lockd: 192.168.0.0/255.255.255.0

and within the /etc/hosts.deny

portmap:ALL
mountd:ALL
rquotad:ALL
statd:ALL
lockd:ALL

and within the /etc/hosts

192.168.0.10 servera a

192.168.0.100 serverb b

and within server b /etc/hosts.

192.168.0.10 servera a

192.168.0.100 serverb b
LinuxBoy

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Wed Jul 29, 2009 3:53 pm

on server A the the filesystem is mounted on /opt. I can share the opt directory on server B through NFS.

but I can't writte on the /opt directory I changed the permissions for the opt directory and within /etc/fstab file I also added the rw.

LABEL=/opt /opt ext3 defaults,rw 1 2

but still I am not able to writte on the /opt directory from server B.

what can be wrong.
LinuxBoy

lambda
Major General
Posts: 3452
Joined: Tue May 27, 2003 7:04 pm
Location: Lahore
Contact:

Postby lambda » Wed Jul 29, 2009 7:03 pm

Watch out for the !
Isn't it amazing how so many people can type "linuxpakistan.net" into their browsers but not "google.com"?

shahzor
Naik
Posts: 72
Joined: Thu Jun 29, 2006 11:33 am
Location: Quetta
Contact:

Postby shahzor » Thu Jul 30, 2009 10:55 am

LinuxBoy


Return to “Administration”

Who is online

Users browsing this forum: No registered users and 1 guest