Hi,
here‘s what I want to achieve - hopefully the esteemed experts around here can point me in the right direction:
I have an LXC running nextcloud. For storage, currently, I have a separate disk mounted on the host and mounted from there into the LXC. That works well.
Recently, I set up a pve cluster to make nextcloud highly available.
But I expect there to be a problem, if/when the LXC is transferred to another node and run from there. Of course, it takes it root disk with it. But the separate disk exists only on the original node. So it won‘t be able to access it.
I could put in additional disks on all nodes at the identical mount point and keep them in sync. So that wherever the LXC goes, it finds its data is already there. But there has to be a better way.
I was thinking of using CephFS, hoping that it would be available on all „participating“ nodes. And that the LXC could then automatically use the node-local CephFS.
But then I read that in order to use CephFS in an LXC, it is recommended to mount CephFS on the host and mount it into the LXC from there. Which brings me back to the above solution (probably without the need to keep the node-local CephFS instances in sync manually).
Is there any other way to have an LXC access the same storage on any node? My use case can‘t be so singular.
(Of course, I could use NAS storage for nextcloud, but I was hoping to considerably improve performance by
If nothing else comes up, maybe the way to go would be to have nextcloud use Ceph as object store. On the other hand, if I need to provide a fix IP that also would only be node-local on one of the nodes and involve network traffic on the others.)
Any help appreciated!
here‘s what I want to achieve - hopefully the esteemed experts around here can point me in the right direction:
I have an LXC running nextcloud. For storage, currently, I have a separate disk mounted on the host and mounted from there into the LXC. That works well.
Recently, I set up a pve cluster to make nextcloud highly available.
But I expect there to be a problem, if/when the LXC is transferred to another node and run from there. Of course, it takes it root disk with it. But the separate disk exists only on the original node. So it won‘t be able to access it.
I could put in additional disks on all nodes at the identical mount point and keep them in sync. So that wherever the LXC goes, it finds its data is already there. But there has to be a better way.
I was thinking of using CephFS, hoping that it would be available on all „participating“ nodes. And that the LXC could then automatically use the node-local CephFS.
But then I read that in order to use CephFS in an LXC, it is recommended to mount CephFS on the host and mount it into the LXC from there. Which brings me back to the above solution (probably without the need to keep the node-local CephFS instances in sync manually).
Is there any other way to have an LXC access the same storage on any node? My use case can‘t be so singular.
(Of course, I could use NAS storage for nextcloud, but I was hoping to considerably improve performance by
If nothing else comes up, maybe the way to go would be to have nextcloud use Ceph as object store. On the other hand, if I need to provide a fix IP that also would only be node-local on one of the nodes and involve network traffic on the others.)
Any help appreciated!