LVM 精简快照不可用

ner*_*dis 4 lvm fedora-22

为了在将精简配置快照应用于生产系统以进行备份之前对其进行测试,我执行了以下操作:

lvcreate -L1G -T storage/thinpool
lvcreate -V10M -T storage/thinpool -n thinvol1
lvcreate -V10M -T storage/thinpool -n thinvol2
# [create ext4 fs on thinvol1, mount it, add some files]
lvcreate -s --name snap1 storage/thinvol1
Run Code Online (Sandbox Code Playgroud)

所有命令都成功了,但是当lvdisplay storage/snap1作为状态给出NOT available并且\dev\storage\snap1不是由设备映射器创建时: --- Logical volume --- LV Path /dev/storage/snap1 LV Name snap1 VG Name storage LV UUID csDP34-HlpY-Rd8x-yJgr-99PW-jHZu-T7wsUJ LV Write Access read/write LV Creation host, time localhost.localdomain, 2015-11-24 10:01:43 +0100 LV Pool name thinpool LV Thin origin name thinvol1 LV Status NOT available LV Size 12.00 MiB Current LE 3 Segments 1 Allocation inherit Read ahead sectors auto

lvchange -a y storage/snap1也没什么区别。我是否错过了使快照可访问的最后一步?或者这里还有什么问题?

操作系统:Fedora 22 (x64) 内核:4.2.6-200.fc22.x86_64 LVM2:2.02.116

sho*_*hok 6

默认情况下,精简快照设置为不可用并设置了“跳过激活”位。

尝试发布lvchange -ay -Ky storage/snap1,您的精简快照应该可用。

要永久设置“跳过激活”标志,请发出 lvchange -kn storage/snap1