[SOLVED] NFS 1.3.2 Not Working on 5N with Firmware 3.2.0

Howdy,

I’ve installed the NFS 1.3.2 for the Drobo5n on my Drobo (http://www.droboports.com/app-repository/nfs/) by copying nfs.tgz to DroboApps and running

[code]$ sudo /bin/sh /usr/bin/DroboApps.sh install

Installing /mnt/DroboFS/Shares/DroboApps/nfs.tgz.
Running post-install script.
Starting nfs.

$ ps | grep nfs
209 root 0 SW< [nfsiod]
4215 root 2728 S /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -F
[/code]

However I’m unable to mount the default share:

[code]$ sudo mount -t nfs 10.0.1.7:/mnt/DroboFS/Shares/Public /data/Public

mount.nfs: Connection timed out

$ showmount -e 10.0.1.7
clnt_create: RPC: Port mapper failure - Unable to receive: errno 111 (Connection refused)

[/code]

Then I take a look at the ports open on the Drobo5N and I don’t see any of the usual NFS ports

Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 0.0.0.0:548 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5000 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:5001 0.0.0.0:* LISTEN tcp 0 0 10.0.1.7:139 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:4242 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:4243 0.0.0.0:* LISTEN tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp 0 0 127.0.0.1:4700 0.0.0.0:* LISTEN tcp 0 0 10.0.1.7:445 0.0.0.0:* LISTEN tcp 0 0 fe80::21a:62ff:fe04:3e7d:139 :::* LISTEN tcp 0 0 :::22 :::* LISTEN tcp 0 0 fe80::21a:62ff:fe04:3e7d:445 :::* LISTEN udp 0 0 10.0.1.255:137 0.0.0.0:* udp 0 0 10.0.1.7:137 0.0.0.0:* udp 0 0 0.0.0.0:137 0.0.0.0:* udp 0 0 10.0.1.255:138 0.0.0.0:* udp 0 0 10.0.1.7:138 0.0.0.0:* udp 0 0 0.0.0.0:138 0.0.0.0:* udp 0 0 0.0.0.0:5353 0.0.0.0:* udp 0 0 0.0.0.0:51806 0.0.0.0:* udp 0 0 10.0.1.7:43657 104.232.3.3:123 ESTABLISHED udp 0 0 0.0.0.0:5002 0.0.0.0:* Active UNIX domain sockets (servers and established) Proto RefCnt Flags Type State I-Node Path unix 2 [ ACC ] STREAM LISTENING 287 //var/nmbd/unexpected unix 2 [ ACC ] STREAM LISTENING 2519 //var/run/avahi-daemon/socket unix 3 [ ] STREAM CONNECTED 1628 unix 3 [ ] STREAM CONNECTED 1627 unix 2 [ ] STREAM CONNECTED 2654 unix 2 [ ] STREAM CONNECTED 2641 unix 3 [ ] STREAM CONNECTED 2536 unix 3 [ ] STREAM CONNECTED 2535

Looking at the log file appears to reveal a problem “failed to access local netconfig database: Netconfig database not found”

[code]$ cat /tmp/DroboApps/nfs/log.txt
2015-03-03 11-53-25: /mnt/DroboFS/Shares/DroboApps/nfs/service.sh start

  • _service_start
  • _is_running
  • _is_nfsd_running
  • /usr/bin/pgrep nfsd
  • return 1
  • set +x
  • /bin/chmod 4511 /mnt/DroboFS/Shares/DroboApps/nfs/sbin/mount.nfs
  • chown -R nobody /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/sm /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/sm.bak /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/state
  • lsmod
  • grep ^nfsd
  • [[ -z nfsd 86839 0 - Live 0x7f000000 ]]
  • grep ^nfsd /proc/mounts
  • [[ -z ]]
  • /bin/mount -t nfsd nfsd /proc/fs/nfsd
  • _kill_pid /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify /tmp/DroboApps/nfs/sm-notify.pid
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify /tmp/DroboApps/nfs/sm-notify.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify -p /tmp/DroboApps/nfs/sm-notify.pid -q
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind /tmp/DroboApps/nfs/rpcbind.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind -p /tmp/DroboApps/nfs/rpcbind.pid -q
  • echo 4212
  • /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind+ -d
    sleep 1
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd /tmp/DroboApps/nfs/pid.txt
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -p /tmp/DroboApps/nfs/pid.txt -q
  • echo 4215
    • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountdsleep -F 1

rpc.mountd: Failed to access local netconfig database: Netconfig database not found
rpc.mountd: Failed to access local netconfig database: Netconfig database not found
rpc.mountd: Failed to access local netconfig database: Netconfig database not found
rpc.mountd: mountd: No V2 or V3 listeners created!
rpc.mountd: Version 1.3.2 starting

  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd /tmp/DroboApps/nfs/rpc.statd.pid

  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd -p /tmp/DroboApps/nfs/rpc.statd.pid -q

  • echo 4218

    • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statdsleep -F 1
  • _is_nfsd_running

  • /usr/bin/pgrep nfsd

  • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.nfsd -d 3
    rpc.nfsd: Checking netconfig for visible protocols.
    rpc.nfsd: version 4 requires the TCP protocol
    [/code][hr]
    Are there any dependencies that need to be installed for NFSv3 on the 5N?

I can see that this is not the first start. Could you please reboot the Drobo and post the log again? Also, is rpcbind running?

Howdy, rpcbind was not running. I went ahead and uninstalled it, deleted everything from /tmp/DroboApps/nfs, added the nfs.tgz back to DroboApps and rebooted. Here’s the info:

processes after boot (although rpcbind.pid shows a pid, that pid doesn’t exist in the process list

$ ps | egrep "rpc|nfs"
  193 root         0 SW<  [rpciod]
  209 root         0 SW<  [nfsiod]
 1455 root      2728 S    /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -F

$ cat /tmp/DroboApps/nfs/rpcbind.pid
1452

Full list of processes

$ ps | grep -v flakrat PID USER VSZ STAT COMMAND 1 root 2728 S init 2 root 0 SW [kthreadd] 3 root 0 SW [ksoftirqd/0] 4 root 0 SW [kworker/0:0] 5 root 0 SW [kworker/u:0] 6 root 0 SW [migration/0] 7 root 0 SW [migration/1] 8 root 0 SW [kworker/1:0] 9 root 0 SW [ksoftirqd/1] 10 root 0 SW [migration/2] 11 root 0 SW [kworker/2:0] 12 root 0 SW [ksoftirqd/2] 13 root 0 SW< [khelper] 14 root 0 SW [kdevtmpfs] 15 root 0 SW [kworker/u:1] 148 root 0 SW [sync_supers] 150 root 0 SW [bdi-default] 152 root 0 SW< [kblockd] 158 root 0 SW< [ata_sff] 169 root 0 SW [khubd] 193 root 0 SW< [rpciod] 195 root 0 SW [kworker/0:1] 202 root 0 SW [khungtaskd] 207 root 0 SW [kswapd0] 208 root 0 SW [fsnotify_mark] 209 root 0 SW< [nfsiod] 210 root 0 SW< [xfs_mru_cache] 211 root 0 SW< [xfslogd] 212 root 0 SW< [xfsdatad] 213 root 0 SW< [xfsconvertd] 214 root 0 SW< [crypto] 298 root 0 SW [dri_dnas_thread] 311 root 0 SW [mtdblock0] 316 root 0 SW [mtdblock1] 321 root 0 SW [mtdblock2] 326 root 0 SW [mtdblock3] 334 root 0 SW [kworker/1:1] 395 root 0 SW [kworker/2:1] 399 root 0 SW [flush-mtd-unmap] 400 root 0 SWN [jffs2_gcd_mtd2] 411 root 0 SWN [jffs2_gcd_mtd1] 433 root 2084 S /bin/ntpclient -l -s -h pool.ntp.org 438 root 1656 S /sbin/netplugd -P 447 root 2728 S {nasdLogRotate} /bin/sh /usr/bin/nasdLogRotate 448 root 12472 S /usr/bin/nasd 449 root 2728 S /bin/sh /bin/LXcpuHistory.sh 1 450 root 2732 S -/bin/sh 620 root 0 SW [dri_shared_res_] 621 root 0 SW [dri_scsi_resp_2] 622 root 0 SW [dri_scsi_req_3] 762 root 0 SW [scsi_eh_0] 1064 root 0 SW [jbd2/sda1-8] 1065 root 0 SW< [ext4-dio-unwrit] 1069 root 0 SW [flush-8:0] 1122 root 8896 S /sbin/nmbd -s /mnt/DroboFS/System/samba/conf/smb.conf 1124 root 17824 S /sbin/smbd -s /mnt/DroboFS/System/samba/conf/smb.conf 1133 avahi 2524 S avahi-daemon: running [RatHole.local] 1135 root 17824 S /sbin/smbd -s /mnt/DroboFS/System/samba/conf/smb.conf 1137 root 3472 S /sbin/netatalk -F /mnt/DroboFS/System/netatalk/conf/afpd.conf 1139 root 4880 S //sbin/afpd -d -F /mnt/DroboFS/System/netatalk/conf/afpd.conf 1140 root 3492 S //sbin/cnid_metad -d -F /mnt/DroboFS/System/netatalk/conf/afpd.conf 1236 root 5620 S /mnt/DroboFS/Shares/DroboApps/openssh/sbin/sshd 1291 root 2728 S N /usr/sbin/crond -f -L /tmp/DroboApps/crond/log.txt 1455 root 2728 S /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -F 1466 root 2728 S {restart_nasd} /bin/sh /etc/init.d/restart_nasd 2917 root 2596 S sleep 30 2919 root 2596 S sleep 30 2921 root 2596 S sleep 30

install.log

[code]$ cat /tmp/DroboApps/nfs/install.log
2015-03-03 13-15-42: /mnt/DroboFS/Shares/DroboApps/nfs/install.sh

  • basename /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports.default .default
  • basefile=/mnt/DroboFS/Shares/DroboApps/nfs/etc/exports
  • [ ! -f /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports ]
  • cp /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports.default /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports
  • basename /mnt/DroboFS/Shares/DroboApps/nfs/etc/netconfig.default .default
  • basefile=/mnt/DroboFS/Shares/DroboApps/nfs/etc/netconfig
  • [ ! -f /mnt/DroboFS/Shares/DroboApps/nfs/etc/netconfig ]
  • cp /mnt/DroboFS/Shares/DroboApps/nfs/etc/netconfig.default /mnt/DroboFS/Shares/DroboApps/nfs/etc/netconfig
    [/code]

log.txt

[code]$ sudo cat /tmp/DroboApps/nfs/log.txt
2015-03-03 13-15-43: /mnt/DroboFS/Shares/DroboApps/nfs/service.sh start

  • _service_start
  • _is_running
  • _is_nfsd_running
  • /usr/bin/pgrep nfsd
  • return 1
  • set +x
  • /bin/chmod 4511 /mnt/DroboFS/Shares/DroboApps/nfs/sbin/mount.nfs
  • chown -R nobody /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/sm /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/sm.bak /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/state
  • lsmod
  • grep ^nfsd
  • [[ -z ]]
  • uname -r
  • local kversion=3.2.27
  • grep .* /var/log/nasd.log
  • head -n1
  • sed s|.(.).*|\1|g
  • local fversion=3.2.0 [8.45.72385]
  • kversion=3.2.27-1
  • /sbin/insmod /mnt/DroboFS/Shares/DroboApps/nfs/modules/3.2.27-1/nfsd.ko
  • grep ^nfsd /proc/mounts
  • [[ -z ]]
  • /bin/mount -t nfsd nfsd /proc/fs/nfsd
  • _kill_pid /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify /tmp/DroboApps/nfs/sm-notify.pid
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify /tmp/DroboApps/nfs/sm-notify.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify -p /tmp/DroboApps/nfs/sm-notify.pid -q
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind /tmp/DroboApps/nfs/rpcbind.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind -p /tmp/DroboApps/nfs/rpcbind.pid -q
  • echo 1452
    • /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbindsleep -d
      1
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd /tmp/DroboApps/nfs/pid.txt
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -p /tmp/DroboApps/nfs/pid.txt -q
  • echo 1455
    • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountdsleep -F 1

rpc.mountd: Failed to access local netconfig database: Netconfig database not found
rpc.mountd: Failed to access local netconfig database: Netconfig database not found
rpc.mountd: Failed to access local netconfig database: Netconfig database not found
rpc.mountd: mountd: No V2 or V3 listeners created!
rpc.mountd: Version 1.3.2 starting

  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd /tmp/DroboApps/nfs/rpc.statd.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd -p /tmp/DroboApps/nfs/rpc.statd.pid -q
  • echo 1458
    • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statdsleep -F
      1
  • _is_nfsd_running
  • /usr/bin/pgrep nfsd
  • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.nfsd -d 3
    rpc.nfsd: Checking netconfig for visible protocols.
    rpc.nfsd: version 4 requires the TCP protocol
    [/code]

And here’s the log.txt after another reboot

[code]$ cat /tmp/DroboApps/nfs/log.txt
2015-03-03 13-27-33: /mnt/DroboFS/Shares/DroboApps/nfs/service.sh start

  • _service_start
  • _is_running
  • _is_nfsd_running
  • /usr/bin/pgrep nfsd
  • return 1
  • set +x
  • /bin/chmod 4511 /mnt/DroboFS/Shares/DroboApps/nfs/sbin/mount.nfs
  • chown -R nobody /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/sm /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/sm.bak /mnt/DroboFS/Shares/DroboApps/nfs/var/li b/nfs/state
  • lsmod
  • grep ^nfsd
  • [[ -z ]]
  • uname -r
  • local kversion=3.2.27
  • grep .* /var/log/nasd.log
  • head -n1
  • sed s|.(.).*|\1|g
  • local fversion=3.2.0 [8.45.72385]
  • kversion=3.2.27-1
  • /sbin/insmod /mnt/DroboFS/Shares/DroboApps/nfs/modules/3.2.27-1/nfsd.ko
  • grep ^nfsd /proc/mounts
  • [[ -z ]]
  • /bin/mount -t nfsd nfsd /proc/fs/nfsd
  • _kill_pid /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify /tmp/DroboApps/nfs/sm-notify.pid
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify /tmp/DroboApps/nfs/sm-notify.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify -p /tmp/DroboApps/nfs/sm-notify.pid -q
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind /tmp/DroboApps/nfs/rpcbind.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind -p /tmp/DroboApps/nfs/rpcbind.pid -q
  • echo 1432+
    /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind -d+
    sleep 1
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd /tmp/DroboApps/nfs/pid.txt
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -p /tmp/DroboApps/nfs/pid.txt -q
  • echo 1436
    • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountdsleep -F
      1
      rpc.mountd: Failed to access local netconfig database: Netconfig database not found
      rpc.mountd: Failed to access local netconfig database: Netconfig database not found
      rpc.mountd: Failed to access local netconfig database: Netconfig database not found
      rpc.mountd: mountd: No V2 or V3 listeners created!
      rpc.mountd: Version 1.3.2 starting
  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd /tmp/DroboApps/nfs/rpc.statd.pid
  • /sbin/start-stop-daemon -K -s 0 -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd -p /tmp/DroboApps/nfs/rpc.statd.pid -q
  • echo 1439
    • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd -Fsleep
      1
  • _is_nfsd_running
  • /usr/bin/pgrep nfsd
  • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.nfsd -d 3
    rpc.nfsd: Checking netconfig for visible protocols.
    rpc.nfsd: version 4 requires the TCP protocol
    $ date
    Tue Mar 3 13:29:19 PST 2015
    [/code]

$ ls -ltr /tmp/DroboApps/nfs -rw-r--r-- 1 root root 6 Mar 3 13:27 version.txt -rw-r--r-- 1 root root 5 Mar 3 13:27 rpcbind.pid -rw-r--r-- 1 root root 4 Mar 3 13:27 name.txt -rw-r--r-- 1 root root 4 Mar 3 13:27 framework_version.txt -rw-r--r-- 1 root root 14 Mar 3 13:27 description.txt -rw-r--r-- 1 root root 5 Mar 3 13:27 pid.txt -rw------- 1 root root 5 Mar 3 13:27 sm-notify.pid -rw-r--r-- 1 root root 0 Mar 3 13:27 rpc.statd.pid -rw-r--r-- 1 root root 2516 Mar 3 13:27 log.txt

PID to process lookup

[code]$
for file in *.pid; do
pid=sudo cat $file;
if [[ “” == “$pid” ]]; then
echo “$file :: NO_PID”;
else
echo “$file :: $pid”;
ps | grep ${pid} | grep -v grep;
fi;
done

rpc.statd.pid :: NO_PID
rpcbind.pid :: 1432
sm-notify.pid :: 1442
[/code][hr]
Here’s the list of apps in /mnt/DroboFS/Shares/DroboApps

bash coreutils crashplan crond git java7 nfs openssh p7zip python2 screen sudo unrar wget

Out of curiosity, I tried uninstalling all apps other than bash, ssh, sudo and nfs. Rebooted and still the same, rpcbind isn’t starting.

I tried downgrading from 3.2.0 to 3.1.1 and still get the same result with NFS 1.3.2. Oh well, was worth a shot.

A word of caution for anyone considering downgrading firmware on the 5N, your file system may not be usable after downgrading! Mine wasn’t, but it was new so I didn’t lose anything.

I followed up on this on the github issue page.

Ricardo fixed the issue, see: https://github.com/droboports/nfs/issues/2

The updated nfs.tgz on the Droboports site has all the fixes.
https://github.com/droboports/nfs/releases[hr]

I was just wondering…

@ricardo

I have updated my Drobo 5N firmware to v3.2.3 [8.62.74717]. Will the current nfs version most recently updated for v3.2.0 compatibility, also work with v3.2.3? Just thought it worth checking before I go down the rabbit hole.

Duke

Paul ‘Duke’ Paetz