真正奇怪的是,我绝对无法安装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% Convertcvfunc_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% Convertcvfunc_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_ssVG name guest_images_lvmLV UUID YA4m5i-yf7R-hO95-gb0F-iXqQ-PQjU-tXhAp0LV Write Access read/writeLV snapshot status active destination for /dev/guest_images_lvm/cvfunc_vol1LV Status available# open 0LV Size 20.00 GiBCurrent LE 5120COW-table size 1.00 GiBCOW-table LE 256Allocated to snapshot 0.00% Snapshot chunk size 4.00 KiBSegments 1Allocation inheritRead ahead sectors auto- currently set to 256Block device 253:5
下面的评论建议输出dd命令:
# dd if=/dev/guest_images_lvm/cvfunc_vol1_ss bs=1024 count=1 | file -1+0 records in1+0 records out1024 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解决方法 随着我对kvm不太了解的警告,我猜这个分区是一个完整的磁盘映像.如果是这种情况,如果您这样做,您应该获得一个有意义的分区表:
fdisk -l /dev/guest_images_lvm/cvfunc_vol1
如果是这种情况,您需要执行类似本文建议的 *** 作:http://www.andremiller.net/content/mounting-hard-disk-image-including-partitions-using-linux
如果它确实只是一个分区,fdisk会这样抱怨:
Device contains neither a valID DOS partition table,nor Sun,sgi or OSF disklabelBuilding a new DOS disklabel with disk IDentifIEr 0xe3a5124c.Changes will remain in memory only,until you decIDe to write them.After that,of course,the prevIoUs content won't be recoverable.
编辑:根据安德烈的建议使用-l选项,以减少未来读者的悲痛.
总结以上是内存溢出为你收集整理的linux – 无法挂载LVM快照卷全部内容,希望文章能够帮你解决linux – 无法挂载LVM快照卷所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)