Trouble with PBS 3.4 and NFS ( Quantum ) shares.

Pigi_102

New Member
May 24, 2024
20
4
3
Hello all,
I have a Quantum DXI 4800 that I would like to use as storage for creating the DataStore.

Problem is that the DXi has very simple ( I should say limited ) NFS support.
When I mount the nfs export on the PBS everything seems fine, but if I create a file the owner of the file is :

Code:
root@pbspo1:/mnt/datastore/nfs-dxi# ls -l
total 0
-rw-r--r-- 1 4294967294 4294967294 0 Jul 25 12:39 mio
-rw-r--r-- 1 4294967294 4294967294 0 Jul 25 14:36 tuo

Also, the mount point change ownership after the mount:

Code:
root@pbspo1:/mnt/datastore# ls -la
total 13
drwxr-xr-x 4 root   root   4096 Jul 25 10:02 .
drwxr-xr-x 3 root   root   4096 Jun 11 08:55 ..
drwxr-xr-x 3 backup backup 4096 Jul 25 10:02 nfs-dxi

root@pbspo1:/mnt/datastore# mount -t nfs 172.19.0.110:/Q/shares/ShareProxmox /mnt/datastore/nfs-dxi

root@pbspo1:/mnt/datastore# ls -la
total 9
drwxr-xr-x 4 root   root   4096 Jul 25 10:02 .
drwxr-xr-x 3 root   root   4096 Jun 11 08:55 ..
drwxrwxrwx 2 root   root      0 Jul 25 14:42 nfs-dxi

also using other suggested parameter as:

Code:
mount -t nfs -overs=3,nouser,atime,auto,retrans=2,rw,dev,exec 172.19.0.110:/Q/shares/ShareProxmox /mnt/datastore/nfs-dxi

doesn't make difference.

Changing the /etc/idmapd.conf doesn't make difference too, but this is expected as those paramenter are tied with nfsv4 which is not supported actually on PBS.

Problem is that when I add a new datastore I get an EPERM:
Code:
root@pbspo1:/var/log/proxmox-backup# proxmox-backup-manager datastore create test /mnt/datastore/nfs-dxi
TASK ERROR: EPERM: Operation not permitted
Error: task failed (status EPERM: Operation not permitted)

and this is because I suspect that the command would like to change permission on the nfs-dxi directory wich it cannot ( obviously ) change:

Code:
root@pbspo1:/mnt/datastore# chown backup:backup nfs-dxi
chown: changing ownership of 'nfs-dxi': Operation not permitted



Does someone has any idea on how to make this works ?

Thanks in advance.

Pierluigi
 
Last edited:
Never mind.
I found a way to have the no_root_squash on quantum and being able to configure as desired.

Thx