node missing CT HA storage

jonboy_us

New Member
Oct 27, 2023
2
0
1
i set up my wordpress CT (101) to be HA and to come up on another node if down on it's main node. Well that pve3 has been having issues and it tried coming up on pve1 and I got this error message:
TASK ERROR: zfs error: cannot open 'store1/subvol-101-disk-0': dataset does not exist

Sure enough, I don't see that 101 storage on pve1, but I do on pve2 & 3.

How do I either:
  1. Move the diffinition of the CT to pve2 or 3 and start it up so I can get things moving again, or
  2. Simply replicate the store1/subvol-101-disk-0 to pve1 so I can get it started there
Thanks in advance!
 
you can move the config file manually to a node that has the storage available to get things rolling again.

in general, HA requires the storage to be available on all nodes, but you can restrict HA resources via HA groups to only run on certain nodes if this is not possible. ideally your storage is shared, if not, ZFS with replication allows you to get a sort of "poor person's" HA, but it will lose data written since the last replication run in case of a recovery.
 
Got it just by guessing and love how simple/cool it was.

root@pve1:~# cd /etc/pve/nodes/pve1/lxc/
root@pve1:/etc/pve/nodes# mv pve1/lxc/101.conf pve3/lxc/
root@pve3:~# ha-manager set ct:101 --state disabled

...then I could start the vm. Thanks!