Yesterday I had serious problems with one of my VMs, and I was forced to recover from a backup. But the data from the VM are still on my disks, running zfs:
vm-100 is the old VM, vm-101 is a small linux server, vm-102 is the VM installed from the backup. I would like to access data from vm-100, e.g. find emails received between the time of the backup and the time of the crash. I've been able to make the disk available as a "loopback":
But I can't mount any of the two partitions:
lvmdiskscan recognizes the loopback device:
I've done a lot of searching, but not to much avail. How can I mount the /dev/loop1p2 device and get access to my data?
Jesper, Denmark
Code:
lrwxrwxrwx 1 root root 9 Jan 6 12:55 /dev/rpool/data/vm-100-disk-0 -> ../../zd0
lrwxrwxrwx 1 root root 11 Jan 6 12:55 /dev/rpool/data/vm-100-disk-0-part1 -> ../../zd0p1
lrwxrwxrwx 1 root root 11 Jan 6 12:55 /dev/rpool/data/vm-100-disk-0-part2 -> ../../zd0p2
lrwxrwxrwx 1 root root 10 Jan 5 14:47 /dev/rpool/data/vm-101-disk-0 -> ../../zd16
lrwxrwxrwx 1 root root 12 Jan 5 14:47 /dev/rpool/data/vm-101-disk-0-part1 -> ../../zd16p1
lrwxrwxrwx 1 root root 12 Jan 5 14:47 /dev/rpool/data/vm-101-disk-0-part2 -> ../../zd16p2
lrwxrwxrwx 1 root root 12 Jan 5 14:47 /dev/rpool/data/vm-101-disk-0-part3 -> ../../zd16p3
lrwxrwxrwx 1 root root 10 Jan 5 23:13 /dev/rpool/data/vm-102-disk-0 -> ../../zd32
lrwxrwxrwx 1 root root 12 Jan 5 23:13 /dev/rpool/data/vm-102-disk-0-part1 -> ../../zd32p1
lrwxrwxrwx 1 root root 12 Jan 5 23:13 /dev/rpool/data/vm-102-disk-0-part2 -> ../../zd32p2
Code:
# losetup --partscan -f /dev/rpool/data/vm-100-disk-0
Code:
# mount /dev/loop1p1 /mnt/oldsme/
mount: /mnt/oldsme: wrong fs type, bad option, bad superblock on /dev/loop1p1, missing codepage or helper program, or other error.
# mount /dev/loop1p2 /mnt/oldsme/
mount: /mnt/oldsme: unknown filesystem type 'LVM2_member'.
root@sonja:/mnt/oldsme#
Code:
lvmdiskscan
/dev/loop1p1 [ 500.00 MiB]
/dev/loop2 [ 500.00 MiB]
/dev/sda2 [ 512.00 MiB]
/dev/loop1p2 [ 511.51 GiB] LVM physical volume
/dev/loop3 [ 511.51 GiB] LVM physical volume
/dev/sda3 [ 931.01 GiB]
/dev/loop4 [ 500.00 MiB]
/dev/sdb2 [ 512.00 MiB]
/dev/sdb3 [ 931.01 GiB]
/dev/sdc2 [ 512.00 MiB]
/dev/sdc3 [ 931.01 GiB]
/dev/sdd1 [ <1.82 TiB]
/dev/sde1 [ 931.50 GiB]
0 disks
11 partitions
0 LVM physical volume whole disks
2 LVM physical volumes
I've done a lot of searching, but not to much avail. How can I mount the /dev/loop1p2 device and get access to my data?
Jesper, Denmark