NFS issues

2013/02/14 19:52:14 [1102] rsync: chown "/mnt/nfs/fs-01.sdb1/backup/database-01/etc/wpa_supplicant/action_wpa.sh" failed: Invalid argument (22)

I have found 2 causes for this:

1)

First check your hostfile.
So my hostfile looked like:

/etc/hosts:
127.0.0.1 localhost.localdomain localhost <real hostname>
::1 localhost.localdomainlocalhost.localdomain localhost6 localhost6.localdomain6 localhost <real hostname>

and the nfs mount mounted as nobody:nobody

but to make it work, your hostfile should look like this:

127.0.0.1 localhost.localdomain localhost
::1 localhost.localdomainlocalhost.localdomain
192.168.x.x <realhost.name.cxm> realhost

this because rpcidmapd is looking at a domain:

rpc.idmapd[23262]: nss_getpwnam: name '<username>@name.cxm' does not map into domain 'localdomain'

once you have your <realhost.name.cxm> assigned to your external ip on your nic (eth0) in the /etc/hostfile, and rpcidmapd reloaded or restarted, things should be running fine….

2)

If the user or group ID is different between the boxes

Box #1

# cat /etc/group | grep apache
apache:x:1001:
# cat /etc/group | grep box
vboxusers:x:1002:

# cat /etc/group | grep apache
apache:x:1001:
# cat /etc/group | grep box
vboxusers:x:1002:

# cat /etc/passwd | grep apache
apache:x:1001:1001::/home/apache:/bin/sh

# cat /etc/passwd | grep box
virtuser:x:1002:1002::/mnt/local/sda1/virtualbox:/bin/sh

Box #2

# cat /etc/group | grep apache
apache:x:1002:
# cat /etc/group | grep box
vboxusers:x:1001:

# cat /etc/passwd | grep apache
apache:x:1002:1002::/home/apache:/bin/sh
# cat /etc/passwd | grep box
virtuser:x:1001:1001::/mnt/local/sda1/virtualbox:/bin/sh


Tag Cloud