Archive

Posts Tagged ‘nfs’

NFS export not mounted after reboot

March 5th, 2014 8 comments

Long story short: you have an NFS export and a proper configured /etc/fstab on your client. Mounting manually via mount -a works fine but nothing happens after reboot. Try to add the following to your /etc/default/rcS:

 ASYNCMOUNTNFS=no

cheers!

Categories: linux Tags: , , ,

NFSv4 and the seven Nobodies

March 5th, 2014 1 comment

I don’t know why this is still an issue on Debian/Linux machines but it is as annoying as it already was 2 years or more ago. Imagine you want to export /home via NFSv4 on a server so your clients can mount it remotely. Mostlikely, you will end up with lots of nobody:nogroup labeled entries, when you do a ls -la /home on your client. Check your logfiles and when you find something like:

rpc.idmapd[1905]: nss_getpwnam: name ‘USERNAME’ not found in domain ‘localdomain’

chance is high your idmap is not properly configured. This service is needed for NFSv4 as far as I know. Unfortunately, it is sometimes deactivated by default. Check /etc/defaults/nfs-common for this entry:

NEED_IDMAPD=yes

which also will tell NFS to start idmapd on startup. Next step is to adjust domain settings which depends on your setup.

  • Check DNS/DHCP server config, especially on correct domain name and it’s export if this is desired
  • Check if the client correctly receives and sets domain name (see lease-file and domainname-command for example)

Last but not least you need to check /etc/idmapd.conf to have this entry:

Domain = yourdomain

where yourdomain must be set properly. If you’re not sure about the DNS/DHCP config and/or receive a (none) by the domainname command, you want to go with localdomain as value here.

Do not forget to restart all reconfigured services and that should fix the issue.

Categories: linux Tags: , , , ,

NFS Remote I/O error after dist upgrade to Ubuntu 10.10

November 1st, 2010 7 comments

Ubuntu 10.10 uses NFS 4 by default. If you did not update your NFS-Server, while upgrading your client, you’ll receive a Remote I/O error, due to incompatibilities between version 3 and version 4. Change the mount options in your /etc/fstab from defaults to vers=3,defaults to prevent this error.

Categories: linux Tags: , ,

my day in bugs

September 21st, 2010 No comments
  • checking for suffix of object files… configure: error: cannot compute suffix of object files: cannot compile
    See `config.log’ for more details.

    • Lösung: export LD_LIBRARY_PATH=/usr/lib:/usr/lib64:/lib:/cluster/libs/gmp:/cluster/libs/mpfr
    • Passiert beim gcc bauen
    • Die cluster Verzeichnisse waren natürlich ein Sonderfall in meinem Fall
  • root@atom-head:/usr/src/linux# /etc/init.d/nfs-kernel-server start
    exporting directories for NFS kernel daemon….
    Starting NFS kernel daemon: nfsdrpc.nfsd: Setting version failed: errno 16 (Device or resource busy)
    rpc.nfsd: writing fd to kernel failed: errno 13 (Permission denied)
    rpc.nfsd: unable to set any sockets for nfsd
    .

    • Ist tatsächlich ein Bug in NFS 1.2.2 in Verbindung mit diesen unsäglichen parallelen Bootscripten (wieso ist es wichtig ob ein Standard-Linux-Server in 40 statt in 80sec startet? … regt mich gleich wieder auf)
    • Lösung: update-rc.d nfs-common remove
      update-rc.d nfs-kernel-server remove
      dann in die /etc/rc.local eintragen:
      /etc/init.d/nfs-common start && echo “OK”
      sleep 2s
      /etc/init.d/nfs-kernel-server start && echo “OK”
    • http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=482817
    • [UPDATE] Unsere Lösung ist aber auch kein Allheilmittel … wir sehen jetzt auch wieder das es nicht funktioniert

Categories: linux Tags: , , , ,