1753823 Members
8904 Online
108805 Solutions
New Discussion юеВ

Re: NFS mount

 
Wael_4
Advisor

NFS mount

I have a problem as per the following scenario:
1) created one export NFS folder on one host
2) mounted the NFS exported folder from other two hosts successfully
3) from one of the other hosts which the exported NFS folder mounted I can not process the followin command
touch ww
but from the other host I can

what is the problem that I have
I set the NFS as read-write for both hosts.

please help
8 REPLIES 8
Bharat Katkar
Honored Contributor

Re: NFS mount

Can you check the permissions of Mount Point Directory??

Regards,

You need to know a lot to actually know how little you know
Wael_4
Advisor

Re: NFS mount

it's the same for both system but with another user as the following
drwxrwxrwx 13 fq1adm sapsys 1024 Mar 2 14:57 /trans
drwxrwxrwx 13 fd1adm sapsys 1024 Mar 2 14:57 /trans.

regards;

Bharat Katkar
Honored Contributor

Re: NFS mount

Try loggin with that specific user and see if you can touch any file.

Regards,
You need to know a lot to actually know how little you know
Wael_4
Advisor

Re: NFS mount

when I log with fd1adm on the host afgdev1 and access the mount pont I get
touch: ww cannot create
however in the other system which is afgqas1 when I login with fq1adm
no prblem creating the file

regards;
Doug O'Leary
Honored Contributor

Re: NFS mount

Hey;

Run the following commands on either (or both) of the nfs clients and post the results:

showmount -e ${nfs_server}
mount | grep trans
grep trans /etc/fstab

On the nfs server, run and post:

exportfs

That should help us troubleshoot your issue a little better.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Wael_4
Advisor

Re: NFS mount

the faulty one:
*******************************
root@afgdev1:/>showmount -e afgprd1
export list for afgprd1:
/usr/sap/FP1 (everyone)
/home/abap/sss/receive (everyone)
/home/abap/van (everyone)
/sapmnt/FP1 (everyone)
/ixos (everyone)
/usr/sap (everyone)
/home/abap (everyone)
/usr/sap/trans (everyone)
/interface (everyone)
root@afgdev1:/>
root@afgdev1:/>mount | grep trans
/wael on afgprd1:/usr/sap/trans defaults,NFSv3 on Thu Mar 2 15:41:01 2006
root@afgdev1:/>
root@afgdev1:/>grep trans /etc/fstab
root@afgdev1:/>
*****************************
the working system:
root@afgqas1:/trans>showmount -e afgprd1
export list for afgprd1:
/usr/sap/FP1 (everyone)
/home/abap/sss/receive (everyone)
/home/abap/van (everyone)
/sapmnt/FP1 (everyone)
/ixos (everyone)
/usr/sap (everyone)
/home/abap (everyone)
/usr/sap/trans (everyone)
/interface (everyone)
root@afgqas1:/trans>
root@afgqas1:/trans>mount | grep trans
/old_trans on /dev/vg01/saptrans log,nodatainlog on Thu Mar 2 13:09:18 2006
/trans on afgprd1:/usr/sap/trans defaults,NFSv3 on Thu Mar 2 15:48:10 2006

root@afgqas1:/trans>grep trans /etc/fstab
#/dev/vg01/saptrans /usr/sap/trans vxfs delaylog,nodatainlog 0 2
afgdev1:/usr/sap/trans /trans nfs rw,suid 0 0

************************
the NFS server
root@afgprd1:/etc>exportfs
/usr/sap/FP1 -anon=101,rw=afgfi1:AFGFI1:afgsd1:AFGSD1:afgpm1:AFGPM1:afgot1:AFGOT1:afgmm1:AFGMM1:afgmg1:AFGMG1:ixos2:IXOS2,
access=
/home/abap/sss/receive -anon=101,rw=afgfi1:afgmg1:afgpm1:afgot1:afgsd1:afgmm1:ixos2:AFGFI1:AFGMG1:AFGPM1:AFGOT1:AFGSD1:AFGMM1:IXOS2,
access=
/home/abap/van -anon=101,rw=afgfi1:AFGFI1:afgmg1:AFGMG1:afgpm1:AFGPM1:afgot1:AFGOT1:afgsd1:AFGSD1:ixos2:IXOS2:afgmm1:AFGMM1,
access=
/sapmnt/FP1 -anon=101,rw=afgfi1:AFGFI1:afgmm1:AFGMM1:afgpm1:AFGPM1:afgmg1:AFGMG1:afgot1:AFGOT1:afgsd1:AFGSD1:ixos2:IXOS2,
access=
/ixos -anon=65534,rw=afgfi1:AFGFI1:afgmm1:AFGMM1:afgpm1:AFGPM1:afgmg1:AFGMG1:afgot1:AFGOT1:afgsd1:AFGSD1:ixos2:IXOS
2,access=
/usr/sap -anon=101,rw=afgfi1:AFGFI1:AFGSD1:afgsd1:afgot1:AFGOT1:afgmg1:AFGMG1:ixos2:IXOS2:afgmm1:AFGMM1:afgpm1:AFGPM1,
access=
/home/abap -anon=101,rw=afgfi1:AFGFI1:afgmm1:AFGMM1:afgpm1:AFGPM1:afgsd1:AFGSD1:afgot1:AFGOT1:ixos2:IXOS2:afgmg1:AFGMG1,
access=
/usr/sap/trans -anon=101,rw=afgfi1:AFGFI1:afgmm1:AFGMM1:afgpm1:AFGPM1:afgmg1:AFGMG1:afgot1:AFGOT1:afgsd1:AFGSD1:ixos2:IXOS2:
afgqas1:AFGQAS1:afgdev1:AFGDEV1,access=
/interface -anon=101,rw=afgfi1:AFGFI1:afgmm1:AFGMM1:afgpm1:AFGPM1:afgmg1:AFGMG1:afgot1:AFGOT1:afgsd1:AFGSD1:ixos2:IXOS2:
biztalkprod,access=
**************************************

regards;

Doug O'Leary
Honored Contributor

Re: NFS mount

Hey;

You don't have the /usr/sap/trans exported rw to afgdev1. If you specify a rw list, every other client that can mount it will be set read only.

If you re-export the filesystems adding afgdev1 to the rw list, you should be good to go.

BTW, you'd probably get more people willing to help you out if you'd supply some points to the answers that you receive.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html
Doug O'Leary
Honored Contributor

Re: NFS mount

Oops; never mind. I xfer'ed your list to a vi session and apparently didn't get the entire /usr/sap/trans thing. Looking at it again, I see the afgdev1 in there.

Next thing to do is to check the uids of the users trying to write as well as the permissions on the exported filesystem:

On failing client:

id ${user}

On working client:

id ${user}

On NFS server:

ls -ld /usr/sap/trans

Post those; maybe we'll see something tere.

Doug

------
Senior UNIX Admin
O'Leary Computers Inc
linkedin: http://www.linkedin.com/dkoleary
Resume: http://www.olearycomputers.com/resume.html