kubernetes-sigs / nfs-ganesha-server-and-external-provisioner

NFS Ganesha Server and Volume Provisioner.
Apache License 2.0
427 stars 144 forks source link

Question: Backing up data by NFS - permission issues? #139

Closed MattsBos closed 1 year ago

MattsBos commented 1 year ago

Hello,

I just have a question regarding the use, and backup, of this project. I've deployed the provisioner according to the documentation a while ago in the public cloud and it's running fine and does everything I need with default settings.

However, how would I go about mounting the root folder (export) in NFS to let my backup system access all the data from the pvc folders? I can mount the export root with some workarounds fine but the backup solution errors out on not having permissions to access any of the folders and files created by the provisioner and corresponding containers. Maybe this is just some easy permissions thing but I can't really get the full view of things with all the different layers. Obviously I would have to be able to restore this data too.

If someone has a pointer or a link to an article on how this works, that would be great.

Thanks in advance!

MattsBos commented 1 year ago

Like always, soon after one asks the question, the answer is found. My backup software was having problems with logging on as the correct user ID giving the permissions error. No matter what I did, it didn't want to connect as root.

After connecting with UID/GID 0 everything worked as expected.