RC2 to 20.02.0 NFS inconsistent permissions - did I solve my problem?

otpi

Contributor
Joined
Feb 23, 2017
Messages
117
Hi, had to reboot and used the opportunity for an quick update from Truenas Scale 'RC2' to 'release'.

I use NFS for proxmox, and after the reboot I cannot see any vmdisks (.qcow2). However, the backups are visible in the GUI. The qcow2 files are there, but permissions. From proxmox:

Code:
cd /mnt/pve/nfsTN10G/images/
ls
100 101
cd /mnt/pve/nfsTN10G/images/100: Permission denied


I can get into 'images' but not further. Also, on truenas

Code:
root@truenas[/mnt/wdmirror/proxmoxNFS/images]# cd 100
root@truenas[/mnt/wdmirror/proxmoxNFS/images/100]# ls
vm-100-disk-0.qcow2


I don't know if this is even close to the correct way of solving this is what I did:
Code:
root@truenas[/mnt/wdmirror/proxmoxNFS/dump]# cd /mnt/wdmirror/proxmoxNFS/images
root@truenas[/mnt/wdmirror/proxmoxNFS/images]# ls -l                            
total 1
drwxr----- 2 root root 3 Jan  8 11:11 100
drwxr----- 2 root root 3 Jan  5 21:10 101

root@truenas[/mnt/wdmirror/proxmoxNFS/images]# chmod 770 100
root@truenas[/mnt/wdmirror/proxmoxNFS/images]# ls -l
total 1
drwxrwx--- 2 root root 3 Jan  8 11:11 100
drwxr----- 2 root root 3 Jan  5 21:10 101

root@truenas[/mnt/wdmirror/proxmoxNFS/images]# chmod 770 101

root@truenas[/mnt/wdmirror/proxmoxNFS/images]# chmod 770 100/*
root@truenas[/mnt/wdmirror/proxmoxNFS/images]# chmod 770 101/*
      
root@truenas[/mnt/wdmirror/proxmoxNFS/images]# ls -l
total 1
drwxrwx--- 2 root root 3 Jan  8 11:11 100
drwxrwx--- 2 root root 3 Jan  5 21:10 101


and I think everything is working again... Was this the correct way of fixing the problem?
 

otpi

Contributor
Joined
Feb 23, 2017
Messages
117
Not at my lab, so cannot check versions. Should be whichever is the default? I installed Scale RC2, created a dataset proxmoxNFS and share, then mounted that share in proxmox (v7). ids? Guessing root/root?
 

anodos

Sambassador
iXsystems
Joined
Mar 6, 2014
Messages
9,554
Not at my lab, so cannot check versions. Should be whichever is the default? I installed Scale RC2, created a dataset proxmoxNFS and share, then mounted that share in proxmox (v7). ids? Guessing root/root?
Okay. We switched to knfsd for release, and exports defaults to "root_squash", which means that you may have been ending up with anonuid / anongid (defaults to nobody:nobody). If you want to use root:root for some reason, then set maproot_user and maproot_group to root / root.
 
Top