Replying for the next guy who run into this (or me if I forgot about it!).

keywords: mount hanging, nfsv4, kerberised nfs, ubuntu nfs.


The only documentation I could find about the NFSv4 protocol are the RFCs. There is no step by step sequence diagram, but once you start seeing where it blocks, you can read the chapter pertinent to this, and make sense of it.

Debugging:
---------
I ended up changing my exportfs to be ip based rather than kerberos, and was able to make the mount work while observing with wireshark, which is as good as any old sequence diagram! This confirm my suspicions on where the issue was.

Changed "Verbosity = 0" to "Verbosity = 99" in /etc/ipmapd.conf.
Change the RPCMOUNTDOPTS line in /etc/default/nfs-kernel-server to:
    RPCMOUNTDOPTS="--manage-gids --debug all"
The quotes here are significant! This gave me the right error in the log that I was able to finally track down the issue.

Problem: a bug
--------------
https://bugs.launchpad.net/ubuntu/+source/nfs-utils/+bug/1077386


Solution
--------
Since the Ubuntu guys say they won't be able to update their package, I just downloaded the two Debian packages (you need both, but on the server only), installed them, and now it works:
http://packages.debian.org/wheezy/nfs-common
http://packages.debian.org/wheezy/nfs-kernel-server


I now have NFS between two hosts on the internet located in different towns with secure authentication and encrypted communication (krb5p). Sweet!


PS: I use smaller VPS providers (need fairly large amount of storage, which the big guys charge a few arms and legs for), two VPSs from two different providers located in two different towns, to minimize risk. I have a DB running on one, writing its redo log on the NFS partition mounted from the second one, and a DB running on the second, updating itself from the redo log.

--
Yves.                                                  http://www.SollerS.ca/
                                 Unix/Linux and Python specialist in Calgary.
                                                       http://blog.zioup.org/
_______________________________________________
Tech mailing list
[email protected]
https://lists.lopsa.org/cgi-bin/mailman/listinfo/tech
This list provided by the League of Professional System Administrators
http://lopsa.org/

Reply via email to