Monday, June 12, 2017

Cannot migrate VM in proxmox cluster

ERROR: Failed to sync data - can't do online migration - VM uses local disks

iso removed from vm-100.conf

Folder is not shared, So I tried to cluster the volume group

vgchange -cy
Trying Again to migrate the Virtual machine gives this error:

Skipping clustered volume group pve
Cannot process volume group pve

rebooting will cause the system not running and the grub will hang on :initramfs

run the command


  WARNING: Locking disabled. Be careful! This could corrupt your metadata.
  VG   #PV #LV #SN Attr   VSize  VFree
  pve    1   4   0 wz--nc 49.75g 6.07g

nc means clustered  So remove the clustering from the volume group:

vgchange -cn vgname --config 'global {locking_type = 0}'
that will bring back the pve lvm group to non clustered If the volume group is set to clustered (vgchange -cy vgname) then the volume group can only be activated if your Red Hat High Availability cluster is quorate, and Clustered LVM Daemon (CLVMD) is active. [Reference]

At last;
when you migrate a vm ; first shutdown the vm then press migrate option  and enable online checkbox .

No comments:

Post a Comment