Tente executar partprobe
ou até mesmo reinicialize seu dispositivo.
Eu apaguei acidentalmente o volume thin de pve / data no proxmox. Muito próximo segundo eu percebi isso e eu tentei recuperá-lo como abaixo
lvremove /dev/pve/data
ls -lrt /etc/lvm/archive
head /etc/lvm/archive/pve_00059-189435924.vg
vgcfgrestore pve --test -f /etc/lvm/archive/pve_00059-189435924.vg
TEST MODE: Metadata will NOT be updated and volumes will not be (de)activated.
Consider using option --force to restore Volume Group pve with thin volumes.
Restore failed.
vgcfgrestore pve -f /etc/lvm/archive/pve_00059-189435924.vg --force
achei que foi restaurado corretamente, aqui está a saída
lvdisplay
--- Logical volume ---
LV Name data
VG Name pve
LV UUID xBjmdE-1l8m-LGM2-EC6g-MNrO-15O1-v6eaxb
LV Write Access read/write
LV Creation host, time proxmox, 2018-09-12 21:21:59 +0530
LV Pool metadata data_tmeta
LV Pool data data_tdata
LV Status NOT available
LV Size 758.52 GiB
Current LE 194181
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/pve/data_meta0
LV Name data_meta0
VG Name pve
LV UUID TFIfYP-W54R-dPgd-8c1c-GQsv-uCRE-TmwfRl
LV Write Access read/write
LV Creation host, time proxmox, 2018-09-12 21:21:59 +0530
LV Status NOT available
LV Size 7.74 GiB
Current LE 1982
Segments 1
Allocation inherit
Read ahead sectors auto
--- Logical volume ---
LV Path /dev/pve/data_meta1
LV Name data_meta1
VG Name pve
LV UUID UUe3oN-HBjQ-bcua-TW2O-vEpL-k2Vc-MUdWeP
LV Write Access read/write
LV Creation host, time proxmox, 2018-09-12 21:21:59 +0530
LV Status NOT available
LV Size 7.74 GiB
Current LE 1982
Segments 1
Allocation inherit
Read ahead sectors auto
Mas está inativo e não pode ser usado. Não consigo criar nenhuma VM nesse espaço. Mostra erro
Using default stripesize 64.00 KiB. Thin pool pve-data-tpool (253:4) transaction_id is 0, while expected 54. TASK ERROR: create failed - lvcreate 'pve/vm-107-disk-1' error: Aborting. Failed to locally activate thin pool pve/data.
lvscan
ACTIVE '/dev/pve/swap' [8.00 GiB] inherit
ACTIVE '/dev/pve/root' [96.00 GiB] inherit
inactive '/dev/pve/data' [758.52 GiB] inherit
inactive '/dev/pve/data_meta0' [7.74 GiB] inherit
inactive '/dev/pve/data_meta1' [7.74 GiB] inherit
Estou tentando ativá-lo, mas não tenho sucesso.
lvchange -a y pve/data
Thin pool pve-data-tpool (253:4) transaction_id is 0, while expected 54.
Alguém pode me ajudar a resolver esse erro.
Tente executar partprobe
ou até mesmo reinicialize seu dispositivo.