我有一个逻辑卷,作为虚拟客户操作系统的文件系统.我很高兴我的客户操作系统的状态,并希望备份它.我使用lvcreate创建了一个快照,我正在尝试安装快照,以便我可以将数据用于备份.
真正奇怪的是,我绝对无法安装LVM快照.
$> mount /dev/guest_images_lvm/cvfunc_vol1_ss /mnt/ops/backup/
mount: you must specify the filesystem type
使用mount的-t参数我已经尝试使用ext3和ext4作为文件系统类型,但在每种情况下我都会收到以下错误:
mount: wrong fs type, bad option, bad superblock on /dev/mapper/guest_images_lvm-cvfunc_vol1
以下是快照卷的lvs输出:
LV VG Attr LSize Origin Snap% Move Log Copy% Convert
cvfunc_vol1_ss guest_images_lvm swi-a- 1.00g cvfunc_vol1 0.00
为安装LVM快照而需要安装的正确参数是什么?还有另一种方法可以确定快照的文件系统类型吗?为了它的价值,我让RedHat KVM virt-manager GUI工具创建了卷.
编辑
更多信息请求.
输出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
输出有问题的卷的lvdisplay
--- 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
下面的评论建议输出dd命令:
# 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