I'm trying to set up a datastore on top of NFS. I ran into this issue:
I did the following:
If the user "backup" on the remote system is not known, the owner/group is set to the default user/group (anonymous?). Thatswhy PBS can no longer write/access the Datastore after having created it. So the remote System must a) know the user/group and b) it has to be with the same uid/gid like it is on the PBS.
This is how I fixed it:
Code:
Unable to acquire lock "/etc/proxmox-backup/.datastore.lck" - Interrupted system call (os error 4)
I did the following:
- created a new datastore on an nfs mounted path
- tried to create another datastore also on an nfs mounted path
- I got the above mentioned error
If the user "backup" on the remote system is not known, the owner/group is set to the default user/group (anonymous?). Thatswhy PBS can no longer write/access the Datastore after having created it. So the remote System must a) know the user/group and b) it has to be with the same uid/gid like it is on the PBS.
This is how I fixed it:
- I checked on the NFS-Server if uid=34 and username "backup" is not used so far in /etc/passwd
- I checked on the NFS-Server if gid=34 and groupname "backup" is not used so far in /etc/group
- I created a user "backup" with uid=34 on the NFS-Server
- I created a group "backup" with gid=34 on the NFS-Server
- chown-ed all shared NFS-Directories on the NFS-Server (chown -r backup:backup /path/to/exported_dir1 ...)
- I unmounted all NFS-Shares on the PBS
- I mounted again all NFS-Shares on the PBS
- I deleted the file /etc/proxmox.backup/.datastore.lck (Be sure no task is running on the PBS!)
Last edited: