Obligatory I am new to Proxmox and am still learning so please excuse my question if it is a bit basic.
I am trying to set up my single node Proxmox server with a RAIDZ2 array to store files (media, samba, downloads, configurations, etc...) and share them across multiple LXCs and VMs. I would also like to use ZFS's snapshot capabilities to make automated ZFS snapshots of the files so I have a file history. However, I have not found any explanations or guides on how to achieve these goals nor have I found a way to achieve them myself.
In working towards my goals, Ive gotten confused with how Proxmox handles storage and was hoping to get some clarification to some questions I had:
I am trying to set up my single node Proxmox server with a RAIDZ2 array to store files (media, samba, downloads, configurations, etc...) and share them across multiple LXCs and VMs. I would also like to use ZFS's snapshot capabilities to make automated ZFS snapshots of the files so I have a file history. However, I have not found any explanations or guides on how to achieve these goals nor have I found a way to achieve them myself.
In working towards my goals, Ive gotten confused with how Proxmox handles storage and was hoping to get some clarification to some questions I had:
- When I make a storage location under Datacenter > host > Disks > LVM/LVM-thin/ZFS, what does the "Add Storage" option do? I read that if that option is disabled and then you use that storage location under Datacenter > Storage, all files made under it will be .raw but I am unsure the ramifications of this.
- When making a storage location for files under a zpool under Datacenter > Storage, should I use Directory or ZFS? I want to store files, so Directory sounds correct but under Table 1 of the Proxmox VE Storage docs it says it doesn't support snapshots so do I use ZFS? But I thought ZFS was for setting up vdevs so Im not sure what 'ZFS' really means in this menu.
- I'm also not sure what the difference of the 'ZFS' options are under Datacenter > host > Disks > ZFS and Datacenter > Storage. Is one creating a zpool whereas the other is just making a dataset (file structure)?
- If I store files in a ZFS-based storage location for files, does Proxmox allow the host shell to see the files contained within? When I made a share for use in a Samba LXC, the host shell only saw virtual disks and .raw files. even though the LXC and connected hosts saw the file contents in a directory structure.
- If I want to just store files in a Datacenter > Storage location, what should the 'Content' be set to? Are there any good resources for seeing what each of these content options mean?
- For ZFS storage locations, why is 'Backup Retention' greyed out saying 'Backup content type not available for this storage.'? I thought ZFS had integrated snapshots. Are these 'backups' different?
- How can I take snapshots/backups of Proxmox itself? I saw several guides saying to install the proxmox-backup-server package but when I run that on my host shell, apt says it cannot find the package.