为了在将这些快照应用到生产系统进行备份之前,测试它们的配置情况,我执行了以下操作:
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所有命令都成功了,但是当lvdisplay 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没有创建NOT available和\dev\storage\snap1
lvchange -a y storage/snap1也没有什么区别。我是不是错过了使快照可访问的最后一步?或者这里还有什么问题?
操作系统: Fedora 22 (x64)内核: 4.2.6-200.fc22.x86_64 LVM2: 2.02.116
发布于 2015-11-24 11:00:49
默认情况下,瘦快照设置为不可用,并设置为“跳过激活”位。
尝试发出lvchange -ay -Ky storage/snap1,您的瘦快照就可以使用了。
若要永久启动“跳过激活”标志,请发出lvchange -kn storage/snap1
https://serverfault.com/questions/738587
复制相似问题