[Users] NFS inside VE

E Frank Ball efball at efball.com
Tue Jan 9 18:22:03 EST 2007


I'm having NFS problems also.  I'm trying to import, not export.
I don't need NFS exports.

portmap starts OK, but netfs does not:

# /etc/init.d/netfs start
Mounting other filesystems:  mount: none already mounted or /dev/pts busy
mount: according to mtab, devpts is already mounted on /dev/pts
                                                           [FAILED]

Do NFS mounts work?  
I have not touched the /etc/fstab file:

# cat /etc/fstab
none    /dev/pts        devpts  rw      0 0


--------------------------------------------------------------------

Alex:  Are you running nfslock?


On Sat, Jan 06, 2007 at 11:55:21AM +0100, Alex Prinsier wrote:
 > I'm having trouble getting nfs to work inside a VE.
 > 
 > I think I've set it up correctly... Does anyone see a big mistake in my
 > configuration here?
 > 
 > # cat /etc/exports
 > /data   10.1.1.0/24(rw,no_root_squash)
 > 
 > # ps aux  (only copied the relevant daemons)
 > USER       PID %CPU %MEM   VSZ  RSS TTY      STAT START   TIME COMMAND
 > daemon   24471  0.0  0.0  3040  452 ?        Ss   Jan05   0:00 /sbin/portmap
 > root      7673  0.0  0.0  3640  544 ?        Ss   Jan05   0:00
 > /usr/sbin/rpc.nfsd -r
 > root      7675  0.0  0.0  3096  680 ?        S    Jan05   0:00
 > /usr/sbin/rpc.mountd -r
 > 
 > The ip of that machine is 10.1.1.2 (and I'm executing the mount on the
 > same machine).
 > # mount 10.1.1.2:/data /mnt
 > mount: 10.1.1.2:/data failed, reason given by server: Permission denied
 > 
 > I get these lines in syslog:
 > Jan  6 10:49:03 fs mountd[7675]: NFS mount of /data attempted from 10.1.1.2
 > Jan  6 10:49:03 fs mountd[7675]: Unauthorized access by NFS client
 > 10.1.1.2.
 > Jan  6 10:49:03 fs mountd[7675]: Blocked attempt of 10.1.1.2 to mount /data
 > 
 > # rpcinfo -p 10.1.1.2
 >    program vers proto   port
 >     100000    2   tcp    111  portmapper
 >     100000    2   udp    111  portmapper
 >     100003    2   udp   2049  nfs
 >     100003    2   tcp   2049  nfs
 >     100005    1   udp    644  mountd
 >     100005    2   udp    644  mountd
 >     100005    1   tcp    647  mountd
 >     100005    2   tcp    647  mountd

-- 

   E Frank Ball                efball at efball.com



More information about the Users mailing list