Why is it a bad idea to share data using CT-Volumes

Odin101

New Member
Oct 11, 2023
6
0
1
Hi,

since I did not found much information on this and therefore assume, that this is a bad idea I just wanted to ask why one should not share data between unprivileged CT's using CT volumes i.e. just mounting a volume from one lxc to another?

Assuming the case that the data is primarily used by Container and not need to necessarily needed to share to VM or over the Network this seems like the simplest solution to achieve this. For me it is not feasible atm to have a dedicated NAS, so would it really better to have a NAS VM, that shares data that get mounted on proxmox to mount this mountpoint inside the container where the data is needed? This way one has to deal with user mapping (or set some ownership >100k) and creates another single-point-of-failure for said lxc's.

One could even just mount said data on proxmox - no kpartx needed. And if a VM sporadically needs access after all, one could even share the mounted data using 9p virtio.
 
Thanks for your reply. Considering your answers i assume it's kind of a dumb question. Maybe I just did not grasp fully the lxc concept. I mean isn't that just proxmox in disguise running in a different namespace? Whats the big difference to having a partition on proxmox and mounting it to different CT's? Besides we re not even talking about boot partitions, but rather dedicated data dumps where generally no 2 CT's would write to the same file at the same time.

I like your idea with a Y-cable though. Still looking for one connecting to my vdrives
 

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!