Recovering existing Linux LVM back into cinder after crash

asked 2014-07-09 04:12:43 -0500

GaryC gravatar image

updated 2014-07-11 17:01:14 -0500

smaffulli gravatar image

After a disaster, I have had to re-create my OpenStack.

I have a fresh install of everything, and I can create new instances and volumes etc.

I do though, have a cinder-volumes Volume Group containing the block volumes for the pre-disaster servers.

How can I bring instances online using these (bootable) block devices.

I have for example

  --- Logical volume ---
  LV Name                /dev/stack-volumes/volume-f8d74d46-e61c-4f90-b842-768e313aa050
  VG Name                stack-volumes
  LV UUID                hEjRQN-USyK-uUYG-oMhf-RtOO-0Qbi-rwksYr
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                80.00 GiB

But I can't see how I can get cinder to use this. All my cinder and openstack databases were lost.

I have mounted the LV read only, and copied out the file system, and taken a 'dd' dump of the LV so I do have a backup of the contents.

It would be much faster though, if I could attach this LV into cinder and create an instance from it.

edit retag flag offensive close merge delete