[OpenIndiana-discuss] NFS

Edward Ned Harvey (openindiana) openindiana at nedharvey.com
Thu Jan 30 22:46:07 UTC 2014


> From: Jonathan Adams [mailto:t12nslookup at gmail.com]
> 
> to test if it is a permissions problem, can you just set sharenfs=on? and
> then try to access from the other machines?

Thanks for the help everyone.  I decided to take it a step further than that:

On both the 151a7 (homer) and 151a9 (marge) machines:
    sudo sharectl set -p client_versmax=4 nfs
    sudo sharectl set -p server_versmax=4 nfs
    sudo svcadm restart nfs/server

On 151a9 (marge)
    sudo zfs create storage/NfsExport
    sudo zfs set sharenfs=on storage/NfsExport

On 151a7 (homer)
    sudo zfs create storagepool/NfsExport
    sudo zfs set sharenfs=on storagepool/NfsExport

Now, from ubuntu 10.04, try mounting them both:
    (as root)
    mkdir /mnt/151a7
    mkdir /mnt/151a9
    
    mount -v -t nfs marge:/storage/NfsExport /mnt/151a9
    mount.nfs: timeout set for Thu Jan 30 16:00:50 2014
    mount.nfs: text-based options: 'addr=10.10.10.13'
    mount.nfs: mount(2): Input/output error
    mount.nfs: mount system call failed

    mount -v -t nfs homer:/storagepool/NfsExport /mnt/151a7
    mount.nfs: timeout set for Thu Jan 30 16:01:29 2014
    mount.nfs: text-based options: 'addr=10.10.10.242'
    homer:/storagepool/NfsExport on /mnt/151a7 type nfs (rw)

    (Notice, it worked for 151a7, and failed for 151a9)

Now, I'll have the two OI machines mount each other - which should pretty well answer any questions about firewall and RPC ports, etc.

    (151a7 machine mounting 151a9)  (Success)
    sudo mount -F nfs marge:/storage/NfsExport /mnt
    eharvey at homer:~$ df -h /mnt
    Filesystem            Size  Used Avail Use% Mounted on
    marge:/storage/NfsExport
                           11T   31K   11T   1% /mnt

    (151a9 machine mounting 151a7)  (Success)
    sudo mount -F nfs homer:/storagepool/NfsExport /mnt
    eharvey at marge:~$ df -h /mnt
    Filesystem            Size  Used Avail Use% Mounted on
    homer:/storagepool/NfsExport
                          4.3T   44K  4.3T   1% /mnt

Now dismount them all, on all machines.

Reduce the versions to 3, (on both 151a7 and 151a9)
    sudo sharectl set -p client_versmax=3 nfs
    sudo sharectl set -p server_versmax=3 nfs
    sudo svcadm restart nfs/server

And try again.

Attempt to mount again from ubuntu client.  Once again, 151a7 works and 151a9 fails.

Attempt to mutually mount 151a7 to 151a9 and vice-versa...

151a7 cannot mount 151a9
    sudo mount -F nfs marge:/storage/NfsExport /mnt
    nfs mount: marge: : RPC: Rpcbind failure - RPC: Authentication error
    nfs mount: retrying: /mnt
    nfs mount: marge: : RPC: Rpcbind failure - RPC: Authentication error

151a9 mounts 151a7 just fine
    sudo mount -F nfs homer:/storagepool/NfsExport /mnt
    eharvey at marge:~$ df -h /mnt
    Filesystem            Size  Used Avail Use% Mounted on
    homer:/storagepool/NfsExport
                      4.3T   44K  4.3T   1% /mnt



More information about the OpenIndiana-discuss mailing list