[SOLVED] NFS 1.3.2 Not Mounting My Custom Exports

Howdy,

I have NFS 1.3.2 (patch #2) running now on my Drobo5N with firmware 3.2.0.

I can’t seem to get it to export additional shares. Here’s my /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports file

/mnt/DroboFS/Shares/Public 0.0.0.0/0(rw,insecure,no_subtree_check,all_squash,anonuid=99,anongid=99) /mnt/DroboFS/Shares/Public ::/128(rw,insecure,no_subtree_check,all_squash,anonuid=99,anongid=99) /mnt/DroboFS/Shares/iso 0.0.0.0/0(r,insecure,no_subtree_check,all_squash,anonuid=99,anongid=99) /mnt/DroboFS/Shares/iso ::/128(r,insecure,no_subtree_check,all_squash,anonuid=99,anongid=99) /mnt/DroboFS/Shares/vms 10.0.1.12/24(rw,insecure,no_subtree_check,no_root_squash,anonuid=99,anongid=99)

After editing the file, I’ve tried a “service.sh reload”, “service.sh restart” and a full on Drobo restart. Still I only see the Public share:

$ showmount -e 10.0.1.7
Export list for 10.0.1.7:
/mnt/DroboFS/Shares/Public ::/128,0.0.0.0/0

I also tried placing the new exports in a new file under /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports.d without luck.

Am I missing some config pointer to the exports file?

Let’s try to do a quick round of checks here:

  1. What does /tmp/DroboApps/nfs/log.txt says?

  2. What is the content of /mnt/DroboFS/Shares/DroboApps/nfs/var/lib/nfs/etab?

  3. What is the output of /mnt/DroboFS/Shares/DroboApps/nfs/sbin/exportfs ?

  4. Call “/mnt/DroboFS/Shares/DroboApps/nfs/sbin/exportfs -ra”. Did the output of /mnt/DroboFS/Shares/DroboApps/nfs/sbin/exportfs change?

Bah, I should have reread the log file before posting. The answer is pretty obvious on the last line “exportfs: /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports:3: unknown keyword “r””.

Doh, readonly is ‘ro’ not ‘r’ in the exports file. Sorry about that.

[code]$ cat /tmp/DroboApps/nfs/log.txt

  • /usr/bin/nc 127.0.0.1+ 5000read
    line

  • grep -q+ mVersionecho
    DRINASD8<?xml version="1.0" encoding="utf-8"?>

  • read line

  • echo

  • grep -q mVersion

  • read line

  • echo

  • grep -q mVersion

  • read line

  • echo ESAINFO

  • grep -q mVersion

  • read line

  • echo 1

  • grep -q mVersion

  • read line

  • echo 29157

  • grep -q mVersion

  • read line

  • echo drb141601a01519

  • grep -q mVersion

  • read line

  • echo drb141601a01519

  • grep -q mVersion

  • read line

  • echo RatHole

  • grep -q mVersion

  • read line

    • grepecho -q 3.2.0 mVersion
      [8.45.72385]
    • sedecho s|.(.).*|\1|g
      3.2.0 [8.45.72385]
  • break

  • local fversion=3.2.0 [8.45.72385]

  • local modules=nfsd

  • kversion=3.2.27-1

  • lsmod

  • grep ^nfsd

  • [[ -z ]]

  • insmod /mnt/DroboFS/Shares/DroboApps/nfs/modules/3.2.27-1/nfsd.ko

  • grep ^nfsd /proc/mounts

  • [[ -z ]]

  • mount -t nfsd nfsd /proc/fs/nfsd

  • _kill_daemon /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify

  • _is_daemon_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify

  • start-stop-daemon -K -t -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/sm-notify -q

  • _is_pid_running /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind /tmp/DroboApps/nfs/pid.txt

  • start-stop-daemon -K -t -x /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind -p /tmp/DroboApps/nfs/pid.txt -q

  • force_restart=1

  • echo 1385

  • setsid /mnt/DroboFS/Shares/DroboApps/nfs/bin/rpcbind+ -dsleep
    1

  • [[ 1 -eq 1 ]]

  • _kill_name nfsd

  • _is_name_running nfsd

  • killall -0 nfsd

  • _kill_daemon /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd

  • _is_daemon_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd

  • start-stop-daemon -K -t -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd -q

  • _kill_daemon /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd

  • _is_daemon_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd

  • start-stop-daemon -K -t -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -q

  • _is_daemon_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd

  • start-stop-daemon -K -t -x /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -q

  • _is_daemon_running /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd

    • start-stop-daemonsetsid -K /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.mountd -t -F -x -d /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd auth -q
  • _is_name_running nfsd

    • setsidkillall /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.statd -0 -F nfsd -d
  • setsid /mnt/DroboFS/Shares/DroboApps/nfs/sbin/rpc.nfsd -d 3
    rpc.nfsd: Checking netconfig for visible protocols.
    rpc.nfsd: Enabling inet udp.
    rpc.nfsd: Enabling inet tcp.
    rpc.nfsd: Enabling inet6 udp.
    rpc.nfsd: Enabling inet6 tcp.
    rpc.nfsd: knfsd is currently down
    rpc.nfsd: Writing version string to kernel: -2 +3 +4
    rpc.nfsd: Creating inet TCP socket.
    rpc.nfsd: Creating inet UDP socket.
    rpc.nfsd: Creating inet6 TCP socket.
    rpc.nfsd: Creating inet6 UDP socket.

  • reload_service

  • /mnt/DroboFS/Shares/DroboApps/nfs/sbin/exportfs -ra
    rpc.mountd: Version 1.3.2 starting
    exportfs: /mnt/DroboFS/Shares/DroboApps/nfs/etc/exports:3: unknown keyword “r”
    [/code]

Here’s the updated “showmount” from the client after fixing the exports and reloading:

$ showmount -e 10.0.1.7 Export list for 10.0.1.7: /mnt/DroboFS/Shares/vms 10.0.1.12/24 /mnt/DroboFS/Shares/iso ::/128,0.0.0.0/0 /mnt/DroboFS/Shares/Public ::/128,0.0.0.0/0