Operating System - HP-UX
1833238 Members
2734 Online
110051 Solutions
New Discussion

Re: NFS can not mount a read-only export

 
Barry Nelson_3
New Member

NFS can not mount a read-only export

I have an iso image that I am exporting from a Linux server as read only, no root squash. When I try to mount the NFS share on my HP/UX 11.11 client, I get "Permission Denied". Other NFS shares from the same server mount fine.

/mnt0 has the iso mounted:
mount -r -o loop "/images/Cache version 5.021.iso" /mnt0
Then I restart NFS
It (/mnt0) gives the error on the HP/UX client, /mnt1 and 2 mount fine.

Here is the exports file from the Linux server:
# See the exports(5) manpage for a description of the syntax of this file.
# This file contains a list of all directories that are to be exported to
# other computers via NFS (Network File System).
# This file used by rpc.nfsd and rpc.mountd. See their manpages for details
# on how make changes in this file effective.
/mnt0 *.bhssf.org(ro,async,no_root_squash)
/mnt1 *.bhssf.org(ro,async,no_root_squash)
/mnt2 *.bhssf.org(ro,async,no_root_squash)
3 REPLIES 3
Dave Olker
Neighborhood Moderator

Re: NFS can not mount a read-only export

Hi Barry,

What is the exact syntax you're using to mount the filesystem from the HP-UX client? What is the exact message it returns?

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
Senthil Kumar .A_1
Honored Contributor

Re: NFS can not mount a read-only export

Hi,

Could you paste the output of the following command when run on Linux server.

showmount -e
showmount -a

SK
Let your effort be such, the very words to define it, by a layman - would sound like a "POETRY" ;)
Barry Nelson_3
New Member

Re: NFS can not mount a read-only export

Syntax of mount command:

mount -r wkux014437:/mnt0 /mnt

Outputs from showmount:

showmount -e

Export list for wkux014437:
/mnt2 *.bhssf.org
/mnt1 *.bhssf.org
/mnt0 *.bhssf.org

showmount -a
All mount points on wkux014437:
*,*.bhssf.org:/mnt0
*.bhssf.org,DDUXKCS1.bhssf.org:/mnt0
*.bhssf.org,dduxkcs1.bhssf.org:/mnt0
*.bhssf.org:/mnt0
*.bhssf.org:/mnt1
*.bhssf.org:/mnt2
*:/root/rpms
*:/var/lib/YaST2/you/mnt/i386/update
,*.bhssf.org:/mnt0
10.0.152.151:sovera-filenet-nch-server.bhssf.org
10.0.152.154:*
10.0.152.154:imstest-filenet-nch-server.bhssf.org
10.0.152.164:*
10.0.152.164:BHUXDMS5V.bhssf.org
10.0.152.165:*
10.0.200.191:*.bhssf.org
10.0.50.148:*.bhssf.org
10.0.50.152:*.bhssf.org
10.0.50.153:*
10.0.50.153:*.bhssf.org
10.0.50.157:*.bhssf.org
10.0.92.145:*.bhssf.org
10.0.92.147:*.bhssf.org
10.1.66.140:*.bhssf.org
10.2.99.100:*
10.202.5.103:*,*.bhssf.org
10.202.5.103:*.bhssf.org
10.202.5.103:*.bhssf.org,DDUXKCS1.bhssf.org
10.202.5.103:*.bhssf.org,dduxkcs1.bhssf.org
10.202.5.103:,*.bhssf.org
10.202.5.103:dduxkcs1
10.204.4.122:*,*.bhssf.org
10.204.4.122:*.bhssf.org
10.204.4.134:*.bhssf.org
10.204.97.7:*.bhssf.org
dduxkcs1:/mnt0

Exact error:
dduxkcs1[/]# mount -r wkux014437:/mnt0 /mnt
Permission denied
dduxkcs1[/]#