Lvm

LVM 精簡快照不可用

  • November 24, 2015

為了在將精簡配置的快照應用到生產系統以進行備份之前測試它們,我執行了以下操作:

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給出狀態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

預設情況下,精簡快照設置為不可用並設置了“跳過啟動”位。

嘗試發布lvchange -ay -Ky storage/snap1,您的精簡快照應該可用。

要永久設置“跳過啟動”標誌,請發出lvchange -kn storage/snap1

引用自:https://serverfault.com/questions/738587