Issue with NFS write

Plaidstallion

New Member
Jun 5, 2020
4
1
1
40
Edit: I had to change the NFS server directory permissions from 775 to 777 for some reason. Even with no_root_squash the touch files are being created as such

-rw-r--r-- 1 nobody nogroup 0 May 22 15:01 test4.txt

Does anyone know how to fix this issue?

------------------------------------

I used NFS for backups in previous versions of Proxmox but I am not longer able to write to the share. Only read. I tried changing settings with no_root_squash etc and nothing has helped. The only thing I did notice is that when I added a user to the hypervisor with uid:gid of 1000:1000 (same as the permissions of the NFS server mount) and do a touch with that account it works. I can not write with the pve root account though and as such I can't put backups and snapshots to the NFS server

PVE /etc/pve/storage.cfg looks like so:

Code:
nfs: nfssrv
        export /mnt/pool/proxmox
        path /mnt/pve/srv
        server 192.168.1.20
        content rootdir,iso,vztmpl,backup,snippets,images
        options vers=3
        prune-backups keep-all=1

The NFS server /etc/exports looks like so:

Code:
/mnt/pool/proxmox 192.168.1.0/24(rw,fsid=1,sync,no_subtree_check,no_root_squash)

I have tried changing vers to default but it did not help. It is definitely something to do with root trying to write to the server (not ZFS btw) but since it worked previously, I have no idea what I would need to change.
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!