Operating System - HP-UX
1831637 Members
1691 Online
110027 Solutions
New Discussion

11.31 - nfs share read write for root not working

 
Geoff Wild
Honored Contributor

11.31 - nfs share read write for root not working

Trying to share a file system on one guest and automounting on another. It actually won't read/write for any user!

On the NFS server (pcvm0102):

# ls -ld /sapmnt/IE1
drwxrwxr-x 6 ie1adm sapsys 96 Jul 18 11:01 /sapmnt/IE1

# share
- /sapmnt/IE1 rw=pcvm0101,root=pcvm0101,ro= "IS OIL sapmnt"



# cat /etc/dfs/dfstab
# place share(1M) commands here for automatic execution
# on entering init state 3.
#
# share [-F fstype] [ -o options] [-d ""]
# .e.g,
# share -F nfs -o rw=engineering -d "home dirs" /home
share -F nfs -o rw=pcvm0101,root=pcvm0101 -d "IS OIL sapmnt" /sapmnt/IE1


On the client(pcvm0101):

# cat /etc/auto.direct
/sapmnt/IE1 pcvm0102:/sapmnt/IE1

mount output:
/sapmnt/IE1 on pcvm0102:/sapmnt/IE1 nodevs,rsize=32768,wsize=32768,NFSv3,dev=100001a on Wed Jul 18 11:30:40 2007

# ll /sapmnt/IE1
total 0
drwxrwxrwx 4 ie1adm sapsys 96 Jul 17 15:21 exe
drwxrwxrwx 3 ie1adm sapsys 96 Jul 17 15:21 global
drwxrwxrwx 2 ie1adm sapsys 96 Jul 17 11:13 lost+found
drwxrwxrwx 2 ie1adm sapsys 96 Jul 17 15:23 profile

# touch /sapmnt/IE1/z
touch: /sapmnt/IE1/z cannot create

Rgds...Geoff

Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
2 REPLIES 2
Geoff Wild
Honored Contributor

Re: 11.31 - nfs share read write for root not working

Fixed - had to use FQDN in the share statement!

share -F nfs -o rw=pcvm0101.mydomain.net,root=pcvm0101.mydomain.net -d "IS OIL sapmnt" /sapmnt/IE1
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Geoff Wild
Honored Contributor

Re: 11.31 - nfs share read write for root not working

See above...
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.