AnsweredAssumed Answered

MapR Loopback NFS Issues

Question asked by mandoskippy on Dec 15, 2015
Latest reply on Dec 16, 2015 by mandoskippy
Hey all, I am trying to run a Loopback NFS on a Secure Cluster in a Docker container.  I think this should work, but I am running into issues.  A few notes, I am running in bridged mode in Docker and that "may" be conflicting (see logs) with my MAPR_SUBNETS  Basically my MAPR_SUBNETS is 10.0.0.0/24 and docker is running in the 172.17 network (see logs). However, I can't run the docker with --net=host because it's running on a MapR node that has it's own network interface running NFS.   So if that is my issue, any ideas to work around would be great.

Basically, everything seems to be running the loopbacknfs.log seems to show things working (the errors about read-only filesystem I believe are for my "HA" cldbs, as those two IPs are not the active CLDB, but are running.  Not the .35 doesn't show that error.  The temp unavailable error only happens when you issues a mount localhost:/mapr /mapr command.   (See below).  Now, I am not running the mount as the user for the MapR Ticket, however, the mount command must be run my root. So perhaps that is the issue? I guess I am looking for help on the troubleshooting on the logs.  Please advise if more data is needed.

Note here is the results of a mount command:

mount localhost:/mapr /mapr
mount.nfs: Operation not permitted


cldb.log (on active cldb) (This shows the connection from the docker container being made... I think)
2015-12-15 21:18:19,442 INFO CLDBServer [RPC-10]: NFSRegister: Request  FSID: 7002002142235273448 mode : gateway  isDCA: false NFSHost:Port: 172.17.1.177:2049- NFSHostName: a3e115c4ab4c
2015-12-15 21:18:19,442 INFO LicenseManager [RPC-10]: Number of nfs client servers allowed: 10




loopbacknfs.log:

Security initialized for client mode
2015-12-15 20:55:20,5780 INFO loopbacknfs[283] fs/nfsd/main.cc:531 ***** NFS server starting: pid=283, mapr-version: 5.0.0.32987.GA *****
2015-12-15 20:55:20,5781 INFO loopbacknfs[283] fs/nfsd/main.cc:545 ******* NFS server MAPR_HOME=/usr/local/mapr-loopbacknfs, NFS_PORT=2049, NFS_MGMT_PORT=9998, NFSMON_PORT=9997
2015-12-15 20:55:20,5819 INFO loopbacknfs[283] fs/nfsd/mount.cc:2150 Export info: /mapr (rw)
2015-12-15 20:55:20,5861 INFO loopbacknfs[283] fs/nfsd/mount.cc:1784 CLDB info: 10.0.0.32:7222 10.0.0.33:7222 10.0.0.35:7222
2015-12-15 20:55:20,6024 INFO loopbacknfs[283] fs/nfsd/nfsha.cc:476 hostname: 3a81e8fbb1f2, hostid: 0x1aa2c59b614261b7
2015-12-15 20:55:20,6027 INFO loopbacknfs[283] fs/nfsd/requesthandle.cc:479 using default NFS_HEAPSIZE: 512 MB
2015-12-15 20:55:20,7465 INFO loopbacknfs[283] fs/nfsd/main.cc:639 NFS server started ... pid=283, uid=0
2015-12-15 20:55:20,5806 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:927 0.0.0.0[0] running the cmd /usr/local/mapr-loopbacknfs/server/pmapset set 100003 3 6 2049, ret 0
2015-12-15 20:55:20,5818 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:971 0.0.0.0[0] Use32BitFileId is 1
2015-12-15 20:55:20,5818 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:984 0.0.0.0[0] AutoRefreshExportsTimeInterval is 0
2015-12-15 20:55:20,5818 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:990 0.0.0.0[0] HeartBeatIntervalMilliSec is 5000
2015-12-15 20:55:20,5819 INFO loopbacknfs[283] fs/nfsd/mount.cc:2180 0.0.0.0[0] Allocating export entry 1bbf450
2015-12-15 20:55:20,5897 INFO loopbacknfs[283] fs/nfsd/mount.cc:1861 0.0.0.0[0] Allocating export entry 1bbf4a0
2015-12-15 20:55:20,5920 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:927 0.0.0.0[0] running the cmd /usr/local/mapr-loopbacknfs/server/pmapset set 100005 3 6 2049, ret 0
2015-12-15 20:55:20,5941 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:927 0.0.0.0[0] running the cmd /usr/local/mapr-loopbacknfs/server/pmapset set 100005 1 6 2049, ret 0
2015-12-15 20:55:20,5962 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:927 0.0.0.0[0] running the cmd /usr/local/mapr-loopbacknfs/server/pmapset set 100005 3 17 2049, ret 0
2015-12-15 20:55:20,5983 INFO loopbacknfs[283] fs/nfsd/nfsserver.cc:927 0.0.0.0[0] running the cmd /usr/local/mapr-loopbacknfs/server/pmapset set 100005 1 17 2049, ret 0
2015-12-15 20:55:20,6023 INFO loopbacknfs[283] fs/nfsd/mount.cc:1192 0.0.0.0[0] Setting slash-mapr-clusterid clustername zetapoc, id 3319843584
2015-12-15 20:55:20,6340 INFO loopbacknfs[283] fs/nfsd/requesthandle.cc:335 0.0.0.0[0] using /etc/mtab to check ramfs mount
2015-12-15 20:55:20,7486 ERROR loopbacknfs[283] fs/nfsd/nfsha.cc:851 0.0.0.0[0] Error registering with CLDB: Read-only file system, err=0, status=30 cldb=10.0.0.32:7222
2015-12-15 20:55:25,7499 INFO loopbacknfs[283] fs/nfsd/nfsha.cc:476 hostname: 3a81e8fbb1f2, hostid: 0x1aa2c59b614261b7
2015-12-15 20:55:25,7523 ERROR loopbacknfs[283] fs/nfsd/nfsha.cc:851 0.0.0.0[0] Error registering with CLDB: Read-only file system, err=0, status=30 cldb=10.0.0.33:7222
2015-12-15 20:55:30,7536 INFO loopbacknfs[283] fs/nfsd/nfsha.cc:476 hostname: 3a81e8fbb1f2, hostid: 0x1aa2c59b614261b7
2015-12-15 20:57:42,3927 ERROR loopbacknfs[283] fs/nfsd/mount.cc:2324 0.0.0.0[0] recvfrom returned err(Resource temporarily unavailable) -1
2015-12-15 20:57:42,3927 ERROR loopbacknfs[283] fs/nfsd/mount.cc:2324 0.0.0.0[0] recvfrom returned err(Resource temporarily unavailable) -1
2015-12-15 20:57:42,3927 ERROR loopbacknfs[283] fs/nfsd/mount.cc:2324 0.0.0.0[0] recvfrom returned err(Resource temporarily unavailable) -1
2015-12-15 20:57:42,3927 ERROR loopbacknfs[283] fs/nfsd/mount.cc:2324 0.0.0.0[0] recvfrom returned err(Resource temporarily unavailable) -1
2015-12-15 20:57:42,3927 ERROR loopbacknfs[283] fs/nfsd/mount.cc:2324 0.0.0.0[0] recvfrom returned err(Resource temporarily unavailable) -1

Outcomes