NFS and Proxmox

Karliharli

New Member
May 27, 2024
2
0
1
I am quite new to Proxmox and am currently facing a problem that I cannot solve.
The setup is as follows:
I have a Synology NAS DS224+ on which I have shared a folder using NFS Share. I then integrated this NFS share in my Proxmox data center as storage.

I then installed some LXC containers. In the LXC containers, I added a mountpoint under "Resources", namely the folder that I shared as an NFS share.

I can see all folders and access the complete structure of the share. Now, when I download something in the LXC container, I can see the folder on my Synology where I saved the file, but the folder is empty. However, based on the disk space query on the Synology, the file exists somewhere.

My question:
How can I view and access the data that I have saved to the NAS via Proxmox (LXC container) in the NFS share folder (downloads) on the NAS? In my share folder I can only find
*raw files and not my photos and videos which I have downloaded via the LXC container.
 
Hi,
when you add the NFS share as storage to a PVE cluster, this will create a default file structure on the share, containing an images folder. This is where by default your container root and mountpoints will be stored.
if you add a mountpoint to a container, this will create a virtual disk within that folder, the disk being exclusive to the container. Only by mounting the virtual disk on the host you will be able to inspect its content.

If your intention was to be able to share the contents with multiple instances, you will have to setup a bind-mount instead. You can find details on how to do this in the documentation https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_bind_mount_points