大佬教程收集整理的这篇文章主要介绍了linux – 无法挂载LVM快照卷,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
真正奇怪的是,我绝对无法安装LVM快照.
$> mount /dev/guest_images_lvm/cvfunc_vol1_ss /mnt/ops/BACkup/ mount: you must specify the filesystem type
使用mount的-t参数我已经尝试使用ext3和ext4作为文件系统类型,但在每种情况下我都会收到以下错误:
@H_448_18@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 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
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 disklabel Building 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快照卷所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。