1834150 Members
2764 Online
110064 Solutions
New Discussion

Re: NFS Problem

 
Madhu_17
Regular Advisor

NFS Problem

Hello Gurus,

I am trying to mount a fs from Solaris 2.6 to HP-UX 10.20.

I could able to mount and read-write the filesystem. But i am not getting root access to that NFS filesystem even though i specified root=nfs client name at the share command.

Pls suggest me.

Thanks
11 REPLIES 11
Warren_9
Honored Contributor

Re: NFS Problem

hi,

How many NIC on the Solaris?
If more than 1, try to configure all in the /etc/exports on the NFS server.

e.g.
/exportsFS root=[IP1],[IP2],[IP3]...

GOOD LUCK
Madhu_17
Regular Advisor

Re: NFS Problem

Warren,

I am having only one interface and more over i have used hostname while specifying at the root option of share. I am able to ping that hostname also.

Thanks,
Madhu
Muthukumar_5
Honored Contributor

Re: NFS Problem

Is your machine supporting root= option with share command. check with share man page first. If so try as,

Is nfs client name is resolvable from Solaris machine?

# ping

Else put ip-address hostname into /etc/hosts file.

Try as,

## Solaris machine
# share -F nfs -o root= /path to fs

## HP-UX Machine
# mkdir /mount point
# mount :/path to fs /mount point

hth.
Easy to suggest when don't know about the problem!
Madhu_17
Regular Advisor

Re: NFS Problem

Muthu,

I have observed that my solaris version is not supporting that root= option. is there any alternate way to get that root access?

Thanks
Madhu_17
Regular Advisor

Re: NFS Problem

Muthu,

I am Sorry. My share_nfs man page is showing that root= option. That means that option is possible for my version.. right?

Thanks
Madhu_17
Regular Advisor

Re: NFS Problem

Muthu,

FYI, I have followed the same steps described by you.

Pls suggest me why i am getting such error.

Thanks
Muthukumar_5
Honored Contributor

Re: NFS Problem

If you are using root option then you have to give rw access or ro access to that host anyway.

======== share_nfs man page ===========
There are no interactions between the root= option and the
rw, ro, rw=, and ro= options. Putting a host in the root
list does not override the semantics of the other options.
The access the host gets is the same as when the root=
options is absent.

Try like,

# check resolvation of nfs client
# ping

## Solaris machine
# share -F nfs -o rw=host,root=host /

where, host is hostname of nfs client

## Hp-Ux (nfs client)
# mkdir
# mount :/ /mount

hth.
Easy to suggest when don't know about the problem!
Madhu_17
Regular Advisor

Re: NFS Problem

Muthu,

Thanks for your response. I tried the options given by you for the share command. But interestingly I am getting access denied error message while mounting the fs at NFS client.

Any suggestions?

Thanks
Muthukumar_5
Honored Contributor

Re: NFS Problem

How did you try to mount it? Is hostname resolved from nfs client to server. Plz post the syntax and exact error message you are getting in hp-ux client.

hth.
Easy to suggest when don't know about the problem!
Madhu_17
Regular Advisor

Re: NFS Problem

Muthu,

Yes. I could able to resolve the solaris box.

#mount :/ /mount

I got the below error message.
":/" access denied.

If i remove that -o=rw option from share command at solaris box, i am not getting this error and i could able to mount and write w/o any problem, except for that root privilege.

Any Suggestions?

Thanks,

Madhu_17
Regular Advisor

Re: NFS Problem

Sorry. Option i used for share command is -o rw=HP Box.I believe i am not doing any mistake while executing all these commands.

Is there any problem mounting from Solaris 2.6 to HP-UX 10.20?