Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Problems mounting nfs share
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Rachmannn
n00b
n00b


Joined: 29 Jul 2005
Posts: 11
Location: Denmark

PostPosted: Wed May 31, 2006 9:04 am    Post subject: Problems mounting nfs share Reply with quote

I have two Linux machines GentooPC and RedHatPC. The RedHatPC has mounted a nfs share on an Alpha Server running OpenVMS using nfs version 2. I dont want to make changes on this machine.

I want to mount this share on GentooPC but get an error:

Code:
mount -t nfs pldnt1:/pldnt1/telegram /mnt/telegram -o ro

mount: cannot mount block device pldnt1:/pldnt1/telegram read-only


The /etc/fstab on RedHatPC contains:

Code:
pldnt1:/pldnt1/telegram /mnt/telegram           nfs     hard,rw,nfsvers=2       0 0

and I have no problems mounting the share here.

I added the same line to the GentooPC but mount -a fails with the message:

Code:
mount -a
mount: block device pldnt1:/pldnt1/telegram is write-protected, mounting read-only
mount: cannot mount block device pldnt1:/pldnt1/telegram read-only


The share is NOT write protected

starting portmap with the options -d and -v yields a lot of output:

Code:
portmap -d -v
server: about do a switch
portmap[23839]: connect from 127.0.0.1 to unset(nlockmgr)
server: about do a switch
portmap[23840]: connect from 127.0.0.1 to unset(nlockmgr)
server: about do a switch
portmap[23841]: connect from 127.0.0.1 to unset(nlockmgr)
server: about do a switch
portmap[23842]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23843]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23844]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23845]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23846]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23847]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23849]: connect from 127.0.0.1 to unset(nlockmgr)
server: about do a switch
...
...  and more
...
server: about do a switch
portmap[23885]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23886]: connect from 127.0.0.1 to set(nlockmgr)
server: about do a switch
portmap[23888]: connect from 127.0.0.1 to unset(nlockmgr)
server: about do a switch
portmap[23889]: connect from 127.0.0.1 to unset(nlockmgr)
server: about do a switch
portmap[23890]: connect from 127.0.0.1 to unset(nlockmgr)


Here is the nfsstat-output.

Code:
Client rpc stats:
calls      retrans    authrefrsh
46         0          0
Client nfs v2:
null       getattr    setattr    root       lookup     readlink
0       0% 14     100% 0       0% 0       0% 0       0% 0       0%
read       wrcache    write      create     remove     rename
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
link       symlink    mkdir      rmdir      readdir    fsstat
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%

Client nfs v3:
null       getattr    setattr    lookup     access     readlink
0       0% 6      50% 0       0% 0       0% 0       0% 0       0%
read       write      create     mkdir      symlink    mknod
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
remove     rmdir      rename     link       readdir    readdirplus
0       0% 0       0% 0       0% 0       0% 0       0% 0       0%
fsstat     fsinfo     pathconf   commit
0       0% 6      50% 0       0% 0       0%


The kernel versions are different:

RedHatPC - 2.4 -
GentooPC - linux-2.6.16-gentoo-r7

and there might be other differencies as well.
Back to top
View user's profile Send private message
quinn_jones
n00b
n00b


Joined: 14 Dec 2005
Posts: 50
Location: Wilmington, MA, US

PostPosted: Thu Jun 01, 2006 1:52 am    Post subject: Reply with quote

The share might not be read-only to the account, but in your first example you're mounting it read-only: "-o ro". Is that what your fstab reads as well? What happens if you try to mount it without the "-o ro"?
Back to top
View user's profile Send private message
mtascii
Tux's lil' helper
Tux's lil' helper


Joined: 29 Jan 2006
Posts: 87

PostPosted: Thu Jun 01, 2006 2:15 pm    Post subject: Reply with quote

why don't you just put the read only in the /etc/exports from the server.
thats the easier way i would say

like i did.
Code:
gentoobox ~ # cat /etc/exports
# /etc/exports: NFS file systems being exported.  See exports(5).
/home/ascii/bt/ascii/musik 192.168.0.5(async,no_subtree_check,ro)
/data 192.168.0.5(async,no_subtree_check,rw)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum