Header Shadow Image


mount.nfs: mount(2): Permission denied

You're getting this message:

[root@mysql01 /]# mount -v nfs03:/n /m
mount.nfs: timeout set for Thu Nov  8 23:37:04 2018
mount.nfs: trying text-based options 'vers=4.1,addr=192.168.0.125,clientaddr=192.168.0.126'
mount.nfs: mount(2): No such file or directory
mount.nfs: trying text-based options 'addr=192.168.0.125'
mount.nfs: prog 100003, trying vers=3, prot=6
mount.nfs: trying 192.168.0.125 prog 100003 vers 3 prot TCP port 2049
mount.nfs: prog 100005, trying vers=3, prot=17
mount.nfs: trying 192.168.0.125 prog 100005 vers 3 prot UDP port 20048
mount.nfs: mount(2): Permission denied
mount.nfs: access denied by server while mounting nfs03:/n
[root@mysql01 /]#

It's probably because you might be using Haproxy and it's configured like this for the backends when nfs01 is down:

    server      nfs01.nix.mds.xyz    nfs01.nix.mds.xyz:2049 check
    server      nfs02.nix.mds.xyz    nfs01.nix.mds.xyz:2049 check
    server      nfs03.nix.mds.xyz    nfs01.nix.mds.xyz:2049 check

Notice how each one was pointing to the same nfs01 that was down.  Needed to change this to nfs02 and nfs03 for the second and third line.  

Oh well, shit happens.  Worked pretty good after that fix.

Cheers,
TK

Comments are closed.


     
  Copyright © 2003 - 2013 Tom Kacperski (microdevsys.com). All rights reserved.

Creative Commons License
This work is licensed under a Creative Commons Attribution 3.0 Unported License