Jump to content
Welcome to our new Citrix community!
  • 0

Xenserver boot disk crashed how to reattach disks to new installation with losing data

Paul Windsor




I had a xenserver setup where the boot disk crashed and I dont have a backup of the meta-data.


I have reinstalled xenserver without any local repository enabled as per https://support.citrix.com/article/CTX136342


Without the meta-date is there anyway I can reattach the old hard disk containing the virtual machines back to the new install.


pvscan shows

PV /dev/sdb   VG VG_XenStorage-8856e2bb-71b6-6d4d-abd1-94496585eca9   lvm2 [5.46 TB / 3.26 TB free]


vgdisplay shows

  --- Volume group ---
  VG Name               VG_XenStorage-8856e2bb-71b6-6d4d-abd1-94496585eca9
  System ID
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  18
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                5
  Open LV               0
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               5.46 TB
  PE Size               4.00 MB
  Total PE              1430789
  Alloc PE / Size       577134 / 2.20 TB
  Free  PE / Size       853655 / 3.26 TB
  VG UUID               j0m1rK-3Cx4-RilK-GiXG-ZVt7-Kt15-VulUIt


lvscan shows

  inactive          '/dev/VG_XenStorage-8856e2bb-71b6-6d4d-abd1-94496585eca9/MGT' [4.00 MB] inherit
  inactive          '/dev/VG_XenStorage-8856e2bb-71b6-6d4d-abd1-94496585eca9/VHD-460d603a-a389-4fa5-bc4d-9062af939259' [1.96 TB] inherit
  inactive          '/dev/VG_XenStorage-8856e2bb-71b6-6d4d-abd1-94496585eca9/VHD-150bec64-5975-4d27-bef3-88789da1ff18' [200.40 GB] inherit
  inactive          '/dev/VG_XenStorage-8856e2bb-71b6-6d4d-abd1-94496585eca9/VHD-193db2a0-d973-474c-b182-81651925b306' [40.09 GB] inherit
  inactive          '/dev/VG_XenStorage-8856e2bb-71b6-6d4d-abd1-94496585eca9/VHD-aa49e1af-d508-48ab-ab94-d77314645486' [10.03 GB] inherit


ls -l /dev/disk/by-id  shows


lrwxrwxrwx 1 root root  9 May 13 14:25 scsi-SATA_KINGSTON_SA400S50026B738070E138 -> ../../sda
lrwxrwxrwx 1 root root 10 May 13 14:25 scsi-SATA_KINGSTON_SA400S50026B738070E138-part1 -> ../../sda1
lrwxrwxrwx 1 root root 10 May 13 14:25 scsi-SATA_KINGSTON_SA400S50026B738070E138-part2 -> ../../sda2
lrwxrwxrwx 1 root root  9 May 13 14:25 scsi-SATA_TOSHIBA_MG04ACA_79T3K1YMFTMB -> ../../sdb


SDA is the new xenserver install.



Any help would be most appreciated. I hope sorry if ive posted to the wrong forum.


Thanks Paul.


Link to comment

4 answers to this question

Recommended Posts

  • 0

If everything went correctly you should see your storage with all of your VDI's. You may have to attach

your SR manually, it may not do that part automatically. Without metadata you will have to attach your VDI's

to a VM and see what is what and guess based off VDI size until you get all of your VM's back up and 





Link to comment
  • 0

Hi Alan,

Thank you so much for the response.


Ive followed the steps in https://support.citrix.com/article/CTX136342 and got as far as option 15 Attach the PDB


I now have a local repository in the GUI and it shows the SCSI-ID of the disk to be accessed and state OK but no virtual disks.


LVSCAN shows the VHDs on the drive as inactive but Im a little stuck on how to add them to the "Local Storage" repository.


As it doesn't show any disks yet as I'm a little confused on the the next steps do I need to activate the VHDs?


I never setup the original system so Im not aware of what VM configurations (ram, cpu,etc) all i know there were Windows VMs.


Thanks again for your help


Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...