To change the container of the VM into the cluster structure

rmbenitez

New Member
Aug 1, 2022
2
0
1
I build the follow structure :
3 PC with Proxmox, each have a two hard disks one of them, the OS disk is 580 GB and the other 2 TB .
I build the cluster structure with Ceph and HA, each Hard disk of the 2 TB build are OSD device into Ceph structure.

I build a Virtual Machine into de PC1, and use CEPH structure to host it.
If i power off PC2 or PC3, all continue working, but if i power off PC1, the virtual machine is off line.

What is the way to prever this situation, i need to solve if my PC1 power off, i need that the virtual machine continue working.

In first, i try with "replication" option, but i have 2 problems,
one of them, i read that "For this to work, *all* disks of a VM must be on a ZFS storage, as we use ZFS recv/send to incrementally sync the disk" and don't let me to active the replication option, give me a error "no replicates volumen found (500).

and the other problem, i dont know is the replication option is the solution, i try with a cluster with two computers, when use the replication option, the VM move from PC1 to PC2 and this action is not that i need.

I need to manage the VM from any machine of the structure, in this way this VM is active if any PC of the cluster structure power off.

Thank for your help
 
Hi,
I build the follow structure :
3 PC with Proxmox, each have a two hard disks one of them, the OS disk is 580 GB and the other 2 TB .
I build the cluster structure with Ceph and HA, each Hard disk of the 2 TB build are OSD device into Ceph structure.

I build a Virtual Machine into de PC1, and use CEPH structure to host it.
If i power off PC2 or PC3, all continue working, but if i power off PC1, the virtual machine is off line.

What is the way to prever this situation, i need to solve if my PC1 power off, i need that the virtual machine continue working.
did you configure your machine to be HA managed (in the GUI Datacenter > HA > Resources > Add)? You'll likely want to set the shutdown policy to migrate too, see here. I'd recommend reading the whole chapter for HA, if you haven't already.

In first, i try with "replication" option, but i have 2 problems,
one of them, i read that "For this to work, *all* disks of a VM must be on a ZFS storage, as we use ZFS recv/send to incrementally sync the disk" and don't let me to active the replication option, give me a error "no replicates volumen found (500).

and the other problem, i dont know is the replication option is the solution, i try with a cluster with two computers, when use the replication option, the VM move from PC1 to PC2 and this action is not that i need.

I need to manage the VM from any machine of the structure, in this way this VM is active if any PC of the cluster structure power off.

Thank for your help
Even with ZFS replication, you'd need to configure the VM as a HA resource. But if you already have Ceph, you really don't need ZFS replication.
 
  • Like
Reactions: rmbenitez