I have a logical volume which serves as the filesystem for a virtual guest OS. I'm happy with the state of my guest OS and would like to make a backup of it. I created a snapshot using lvcreate
and I'm attempting to mount the snapshot so I can tar up the data for backup.
What's really weird is that I absolutely cannot get the LVM snapshot mounted.
$> mount /dev/guest_images_lvm/cvfunc_vol1_ss /mnt/ops/backup/
mount: you must specify the filesystem type
Using the -t
parameter of mount I've tried ext3 and ext4 for the file system type, but in each case I get the following error:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/guest_images_lvm-cvfunc_vol1
Here's the output from lvs
for the snapshot volume:
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
cvfunc_vol1_ss guest_images_lvm swi-a- 1.00g cvfunc_vol1 0.00
What is the right parameters I need to give to mount to get the LVM snapshot mounted? Is there another way I can determine the filesystem type of the snapshot? For what it's worth, I let the RedHat KVM virt-manager GUI tool create the volume.
EDIT More info as requested.
Output of lvs
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
cvfunc_vol1 guest_images_lvm owi-a- 20.00g
cvfunc_vol1_ss guest_images_lvm swi-a- 1.00g cvfunc_vol1 0.00
cvfunc_vol2 guest_images_lvm -wi-ao 20.00g
lv_home vg_softrekcvdev0100 -wi-ao 25.68g
lv_root vg_softrekcvdev0100 -wi-ao 32.34g
lv_swap vg_softrekcvdev0100 -wi-ao 9.81g
Output of lvdisplay
for the volume in question
--- Logical volume ---
LV Name /dev/guest_images_lvm/cvfunc_vol1_ss
VG Name guest_images_lvm
LV UUID YA4m5i-yf7R-hO95-gb0F-iXqQ-PQjU-tXhAp0
LV Write Access read/write
LV snapshot status active destination for /dev/guest_images_lvm/cvfunc_vol1
LV Status available
# open 0
LV Size 20.00 GiB
Current LE 5120
COW-table size 1.00 GiB
COW-table LE 256
Allocated to snapshot 0.00%
Snapshot chunk size 4.00 KiB
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 253:5
Output of dd
command suggested by comment below:
# dd if=/dev/guest_images_lvm/cvfunc_vol1_ss bs=1024 count=1 | file -
1+0 records in
1+0 records out
1024 bytes (1.0 kB) copied, 1.6909e-05 s, 60.6 MB/s
/dev/stdin: x86 boot sector; GRand Unified Bootloader, stage1 version 0x3, boot drive 0x80, 1st sector stage2 0x19041; partition 1: ID=0x83, active, starthead 1, startsector 63, 208782 sectors; partition 2: ID=0x8e, starthead 0, startsector 208845, 41720805 sectors, code offset 0x48