Restore LVM Snapshot

ChrisHD

Active Member
Sep 6, 2017
8
1
43
49
Hello,
unfortunately i delete a VM, but not the lvm Data.

Code:
lvs:
snap_vm-106-disk-1_pre_ica_update ssd1 Vri---tz-k    32,00g ssd1_thin vm-106-disk-1
vm-106-disk-1                     ssd1 Vwi-aotz--    32,00g ssd1_thin

with kpartx it was possible to mount vm-106-disk-1, but not the snap_vm-106-disk-1_pre_ica_update.

My Questions:
1.) Is it possible to create a .raw File from the lvm-snapshot vm-106-disk-1
2.) Is it possible to restore the Data from snap_vm-106-disk-1_pre_ica_update
Code:
lvdisplay:
-- Logical volume ---
LV Path /dev/ssd1/snap_vm-106-disk-1_pre_ica_update
LV Name snap_vm-106-disk-1_pre_ica_update
VG Name ssd1
LV UUID G0T6HI-ogYV-awrC-6gXt-HNlQ-KUFz-81oerC
LV Write Access read only
LV Creation host, time zilla, 2018-10-25 15:13:58 +0200
LV Pool name ssd1_thin
LV Thin origin name vm-106-disk-1
LV Status NOT available
LV Size 32,00 GiB
Current LE 8192
Segments 1
Allocation inherit
Read ahead sectors auto

at the Moment is the Disk not availble.
Thank you
 
I solved the Problem :-)
1) dd if=/dev/ssd1/ssd2 of=/backup/zilla_vm/images/111/vm-111-disk-4.raw
2.) lvcreate -kn -n 'ssd2' -s /dev/ssd1/snap_vm-106-disk-1_pre_ica_update
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!