Disaster recovery exercize: mounting a volume backup

Bonjour,

A libvirt hypervisor can keep copies of the volumes downloaded from OpenStack on a regular basis. Such volumes can be mounted to recover a specific file as follows:

  • sudo cryptsetup open --type luks --key-file ~/.enough/example.com//volume-keys/cloud-volume.key --readonly ~/.enough/example.com/backups/cloud-volume cloud-volume
  • sudo mount -o ro,noload /dev/mapper/cloud-volume /mnt
  • sudo umount /mnt
  • sudo cryptsetup close /dev/mapper/cloud-volume