Linux / UNIX Tech Support Forum
This is a discussion on nfs within the File Servers forums, part of the Mastering Servers category; hi i m working as a linux administrator in a software comapny. i have a task to nfs configuration. i ...
|
|||||||
| File Servers Discussion about Samba, NFS and other UNIX / Linux file servers. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
hi
i m working as a linux administrator in a software comapny. i have a task to nfs configuration. i m using slackware linux. i configruation two nfs server and using static ip. i exported a directory such as /data in one nfs server1 and another is /tmp in nfs2 server. i want to configure such that when some directory or file will create in /data directory, the files will show the other nfs server /tmp dirctory and vice versa. the configuration of two nfs server one nfs server ip address is 192.168.1.1 #vi /etc/exports /data 192.168.1.2(ro,sync) :wq #exportfs -av #/etc/rc.d/rc.nfsd restart another nfs server is 192.168.1.2 #vi /etc/exports /tmp 192.168.1.1(ro,sync) :wq #exportfs -av #/etc/rc.d/rc.nfsd restart then i have entry in first nfs server /etc/fstab file 192.168.1.2:/tmp /data nfs defaults 0 0 :wq then i entry in 2nd nfs server /etc/fstab file 192.168.1.1:/data /tmp nfs defaults 0 0 :wq after that i tried mount -a in 1st nfs server it ran well. the file of 2nd nfs server is showing in 1st nfs server data directory.but when i m running mount -a in 2nd nfs server, a error message is display i.e. mount: 192.168.1.1:/data failed, reason given by server: Permission denied. plz help me and give me any idea how to configure these two nfs server mapping each other. |
| Sponsored Links | ||
|
|
|
|||
|
for god's sake, please use clear words ?
|
|
||||
|
Hello amitk_m,
NFS can be frustrating. Please check some things for us. Verify that the portmapper service is running on both machines. Code:
/etc/rc.d/rc.portmap start Code:
/tmp 192.168.1.1(ro,sync) Code:
/tmp 192.168.1.1(rw,sync) Just suggestions as always. Once you make the changes in /ext/exports be sure to reexport and restart all services related. This a great article for troubleshooting NFS issues. It has helped me many of times. http://www.higs.net/85256C89006A03D2...roubleshooting Also can you please provide the last 50 lines of /var/log/messages after you run the command to re export. Code:
tail -n50 /var/log/messages Good Luck, Jaysunn Last edited by jaysunn; 27-08-2009 at 07:59 PM. Reason: Added Article for NFS troubleshooting |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) |
|
| Thread Tools | |
| Display Modes | |
|
|