1830892 Members
2953 Online
110017 Solutions
New Discussion

Re: NFS Server Problem.

 
UVA
Regular Advisor

NFS Server Problem.

Hi,

I have NFS server on my HP-UX 11.31, I m sharing a filesytem called /SAPINST by the following manner

NFS Server
===========
#mkdir /SAPINST
#chmod 777 /SAPINST
#share -F nfs -o rw /SAPINST

restaring the service.

#shareall
#share - here im seeing the shared filesystem


NFS Client
==========
#mkdir /test
#chmod 777 /test
#mount 172.20.101.16:/SAPINST /test
#cd /test

#mkdir a
mkdir: cannot access .: Permission denied
#touch a
touch: a cannot create

This isthe problem ...

here im facing the problem that i am not able to create a file or directory even i give the rw permission in dfstab file.
13 REPLIES 13
V. Nyga
Honored Contributor

Re: NFS Server Problem.

Hi,

please try the mount option rw (read/write):
mount -o rw 172.20.101.16:/SAPINST /test

Volkmar
*** Say 'Thanks' with Kudos ***
UVA
Regular Advisor

Re: NFS Server Problem.

Hi,

#mount -o rw 172.20.101.16:/SAPINST /test
#cd /test

Here im getting the contents...

But i m not able create the Directory and files.. the error is permission denied

Pls...
V. Nyga
Honored Contributor

Re: NFS Server Problem.

Hi again,

I don't have a 11.31 system, so I only can do some blind shots ....
Check this thread if there's something useful:
http://forums11.itrc.hp.com/service/forums/questionanswer.do?threadId=994604

(Dave Olker is THE expert here, so you also can do some search about threads with his answers)

Also check the man pages of 'share' if you've used the right syntax of '-o' option for example.

HTH
Volkmar
*** Say 'Thanks' with Kudos ***
Dave Olker
Neighborhood Moderator

Re: NFS Server Problem.

Volkmar is right (not about me being the expert, but about making sure the share options are correct).

I took my 11.31 system and reproduced your steps:

# mkdir /SAPINST
# chmod 777 /SAPINST
# share -F nfs -o rw /SAPINST
# share
- /SAPINST rw ""

Then on my 11.23 client system:

# mkdir /test
# chmod 777 /test
# mount atcux12:/SAPINST /test
# cd /test
# ll
total 0
# mkdir a
# ll
total 0
drwxrwxrwx 2 nobody sys 96 Mar 6 22:14 a

The permissions on the newly created directory show a UID of -2 (nobody) because I'm a root user on the client and I didn't share the filesystem to allow root access from clients. So this is expected, but because the permissions are wide open I'm still able to create a directory.

On the client my mount looks like this:

> nfsstat -m
/test from atcux12:/SAPINST (Addr 15.43.209.141)
Flags: vers=3,proto=tcp,auth=unix,hard,intr,link,symlink,devs,rsize=32768,wsize=32768,retrans=5
All: srtt= 0 ( 0ms), dev= 0 ( 0ms), cur= 0 ( 0ms)


Please cut/paste the output of the "share" command on your 11.31 server and the output of the "nfsstat -m" command from your NFS client. Also, let me know what OS you're running on the client.

Regards,

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
Mounaam
Trusted Contributor

Re: NFS Server Problem.

Hi,

have you tried to mkdir/touch with another user?

Have you tried to upgrade ONCplus.
There is fix about access problem for users that belong to more than 16 groups: http://h20392.www2.hp.com/portal/swdepot/displayProductInfo.do?productNumber=ONCplus
UVA
Regular Advisor

Re: NFS Server Problem.

Hi Olker,

on my NFS server.

# share
- /SAPINST rw ""

#nfsstat

its not showing any output.

my server and client both are running HP-UX 11.31
Dave Olker
Neighborhood Moderator

Re: NFS Server Problem.

I was asking for the "nfsstat -m" output once the filesystem is mounted on the client. So please mount the filesystem on the client and then issue "nfsstat -m" and cut/paste the output.

Dave


I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
whiz_kid
Regular Advisor

Re: NFS Server Problem.

do the NFS export this way. it should work.

share -F nfs -o root=, rw= /SAPINST
UVA
Regular Advisor

Re: NFS Server Problem.

Hi

Sorry...

pls see the o/p

#mount 172.20.101.16:/SAPINST /sapinst

#nfsstat -m
/sapinst from 172.20.101.16:/SAPINST
Flags: vers=3,proto=tcp,sec=sys,hard,intr,link,symlink,acl,devs,rsize=32768,wsize=32768,retrans=5,timeo=600
Attr cache: acregmin=3,acregmax=60,acdirmin=30,acdirmax=60
UVA
Regular Advisor

Re: NFS Server Problem.

Hi Wiz,

NFS Server
----------

share -F nfs -o root=172.20.101.14,rw=172.20.101.14 /SAPINST



NFS Client
----------

it says its a read only filesystem.

cd /sapinst
# mkdir a
mkdir: cannot create a: Read-only file system
UVA
Regular Advisor

Re: NFS Server Problem.

Hi Guys.

In my NFS Client i added a user called test.

the test user able to create directory and files.. but i dont know why the root cant???

$mkdir a

#ls -l
total 88
drwxr-xr-x 3 root sys 8192 Feb 27 09:48 SAP JAVA Compo
drwxr-xr-x 7 root sys 8192 Mar 6 09:05 SAPSLM4.0
drwxr-xr-x 4 root sys 96 Mar 2 09:35 SPStacks
drwxr-xr-x 2 test users 96 Mar 9 08:25 a
drwxr-xr-x 2 test users 96 Mar 9 08:24 aaa
drwxrwxrwx 7 root sys 8192 Feb 26 12:57 ecc
drwxr-xr-x 13 root sys 8192 Feb 26 17:41 erpcomp
-rw-r--r-- 1 root sys 12195 Jan 21 13:35 jce_policy-1_4_2.zip
drwxr-xr-x 5 root sys 8192 Mar 6 09:11 nw2004sExport
drwxr-xr-x 14 root sys 8192 Feb 25 22:31 oraclient
drwxr-xr-x 4 root sys 8192 Feb 25 22:26 orapatch
drwxr-xr-x 2 root sys 8192 Feb 25 22:53 rdbms1
drwxr-xr-x 2 root sys 8192 Feb 25 23:06 rdbms2

Dennis Handly
Acclaimed Contributor

Re: NFS Server Problem.

>but i don't know why the root can't???

Because unless you export the file system with root as root, root is treated as less than dirt, nobody.
UVA
Regular Advisor

Re: NFS Server Problem.

Hi Guys,

We did...

share -F nfs -o anon=2 /SAPINST


its works...

Thanks to all guys...