Xen Cloud Platform (XCP) – Cloning Hard Drive Woes


The main hard drive seems to be flaky in one of my XCP servers. I decided to use Clonezilla to clone sda to another drive to see if it is in fact the hard drive. After cloning over the drive I found that my LVM storage group VG_XenStorage-xxx was not mounting, and XenCenter was giving off the following error when trying to connect to the server: “This server cannot see any storage”

Turns out the LVM volume group was inconsistent after the clone, my guess is because the hard drives were of the same capacity but different brands so there may have been some differences. Using the lvs and vgs commands did not show the LVM volume information, but instead displayed a kernel dump with a plethora of information. The main error being about the inconsistency of the volume group. In order to solve the problem I had to perform the following command:

vgextend --master VG_XenStorage-7eb4d8dc-3fa4-5db5-4512-5dc5a671c638 \

Then restart the xapi service:

/etc/init.d/xapi restart

Time to see if we can make it crash again with the new drive!

  1. No Comments