{"id":476,"date":"2013-03-10T15:14:38","date_gmt":"2013-03-10T06:14:38","guid":{"rendered":"http:\/\/blog.himor.in\/?p=476"},"modified":"2013-05-05T06:09:40","modified_gmt":"2013-05-04T21:09:40","slug":"nfsv4-trouble-not-fixed","status":"publish","type":"post","link":"https:\/\/blog.himor.in\/?p=476","title":{"rendered":"NFSv4 trouble (not fixed)"},"content":{"rendered":"<h4>background<\/h4>\n<p>Hosts are:<\/p>\n<ul>\n<li>Server: Debian Wheezy RC1 amd64 (nfs-kernel-server 1:1.2.6-3, libnfsidmap2 0.25-4, libnss-ldapd 0.8.10-4, nslcd 0.8.10-4)<\/li>\n<li>Client: Debian Squeeze amd64 (nfs-kernel-server 1:1.2.2-4squeeze2, libnfsidmap2 0.23-2, libnss-ldapd 0.7.15+squeeze3, nslcd 0.7.15+squeeze3)<\/li>\n<\/ul>\n<p>System configurations<\/p>\n<ul>\n<li>Account service: both server and client are under LDAP mapping, using nsswitch<\/li>\n<li>Network: on the same subnet (intranet), w\/o iptables<\/li>\n<\/ul>\n<h4>NFS configurations (same for both server and client)<\/h4>\n<p>\/etc\/default\/nfs-common<\/p>\n<pre>NEED_STATD=\r\nSTATDOPTS=\r\nNEED_IDMAPD=yes\r\nNEED_GSSD=<\/pre>\n<p>\/etc\/default\/nfs-kernel-server (nothing changed; server only)<\/p>\n<pre>RPCNFSDCOUNT=8\r\nRPCNFSDPRIORITY=0\r\nRPCMOUNTDOPTS=--manage-gids\r\nNEED_SVCGSSD=\r\nRPCSVCGSSDOPTS=<\/pre>\n<p>\/etc\/idmapd.conf<\/p>\n<pre>[General]\r\nVerbosity = 0\r\nPipefs-Directory = \/var\/lib\/nfs\/rpc_pipefs\r\nDomain = pfs.ipmj.jp\r\n[Translation]\r\nMethod = nsswitch\r\n[Mapping]\r\nNobody-User = nobody\r\nNobody-Group = nogroup<\/pre>\n<p>\/etc\/exports (server only)<\/p>\n<pre>\/server     10.100.200.0\/24(rw,sync,no_subtree_check,no_root_squash)<\/pre>\n<p>\/etc\/fstab (client only)<\/p>\n<pre>10.100.200.3:\/server \/server nfs4 bg,hard,rw 0 0<\/pre>\n<h4>Config command outputs<\/h4>\n<p>&#8220;getent passwd&#8221; returns same output on both side<\/p>\n<pre>atsushi.shimono:*:1200:2000:Atsushi Shimono:\/home\/atsushi.shimono:\/bin\/tcsh<\/pre>\n<h4>Errors<\/h4>\n<p>Error recorded via syslog<\/p>\n<p><pre>rpc.idmapd[10224]: nss_getpwnam: name 'root@pfs.ipmu.jp' \r\ndoes not map into domain 'pfs.ipmj.jp'<\/pre>\n<h4>Tweak&#8230;<\/h4>\n<p>Finally gave up to use NFSv4, and changed to v3.<\/p>\n<h5>\/etc\/default\/nfs-common<\/h5>\n<pre>NEED_STATD=yes<\/pre>\n<h5>\/etc\/fstab<\/h5>\n<pre>10.100.200.3:\/server \/server nfs nfsvers=3,bg,hard,rw 0 0<\/pre>\n<h5>Check<\/h5>\n<pre> nfsstat -m\r\n\/mnt\/newdata from 10.100.200.3:\/server\r\n Flags: rw,relatime,vers=3,rsize=262144,wsize=262144,namlen=255,hard,proto=tcp,timeo=600,retrans=2,sec=sys,mountaddr=10.100.200.3,mountvers=3,mountport=37737,mountproto=udp,addr=10.100.200.3<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>background Hosts are: Server: Debian Wheezy RC1 amd64 (nfs-kernel-server 1:1.2.6-3, libnfsidmap2 0.25-4, libnss-ldapd 0.8.10-4, nslcd 0.8.10-4) Client: Debian Squeeze amd64 (nfs-kernel-server 1:1.2.2-4squeeze2, libnfsidmap2 0.23-2, libnss-ldapd 0.7.15+squeeze3, nslcd 0.7.15+squeeze3) System configurations Account service: both server and client are under LDAP mapping, using nsswitch Network: on the same subnet (intranet), w\/o iptables NFS configurations (same for both [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[17,3,14],"tags":[],"_links":{"self":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/476"}],"collection":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=476"}],"version-history":[{"count":3,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions"}],"predecessor-version":[{"id":487,"href":"https:\/\/blog.himor.in\/index.php?rest_route=\/wp\/v2\/posts\/476\/revisions\/487"}],"wp:attachment":[{"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=476"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=476"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.himor.in\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=476"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}