시스템 충돌로 인해 문제가 발생했습니다. proxmox GUI에서 생성된 LVM-THIN을 사용하고 있습니다. 모든 lvs가 비활성 상태이고 lvm이 손상된 것 같습니다. 시스템 로그에서 수동으로 수정해야 한다는 사실을 발견했습니다.
인터넷 검색 후 이 명령을 사용하여 시스템을 복구해 보았습니다.
lvconvert --repair data/data
내 동영상:
root@cn-hk1:~# vgs
VG #PV #LV #SN Attr VSize VFree
data 3 456 0 wz--n- <8.41t <1.82t
현재 일부 LV가 활성화되어 있는 것을 볼 수 있습니다.
inactive '/dev/data/vm-12966-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13005-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13011-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13014-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13017-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13038-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13059-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13060-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13071-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13081-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13082-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13088-disk-0' [20.00 GiB] inherit
inactive '/dev/data/vm-13090-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13095-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13109-disk-0' [40.00 GiB] inherit
ACTIVE '/dev/data/vm-13134-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13141-disk-0' [30.00 GiB] inherit
ACTIVE '/dev/data/vm-13151-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13152-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13178-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13179-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13183-disk-0' [30.00 GiB] inherit
ACTIVE '/dev/data/vm-13222-disk-0' [30.00 GiB] inherit
ACTIVE '/dev/data/vm-13223-disk-0' [20.00 GiB] inherit
ACTIVE '/dev/data/vm-13229-disk-0' [20.00 GiB] inherit
하지만 그 외에는 다음 오류가 발생합니다.
root@cn-hk1:/dev/mapper# lvchange -ay /dev/data/vm-13090-disk-0
device-mapper: reload ioctl on (253:4) failed: No data available
dmesg에서:
[ 76.381436] device-mapper: ioctl: error adding target to table
[ 76.398883] device-mapper: table: 253:93: thin: Couldn't open thin internal device
돌아가서 Thin_check 명령을 사용하여 lvconvert --repair를 통해 메타데이터 백업을 확인했는데 다음과 같이 표시되었습니다.
root@cn-hk1:/dev/mapper# thin_check /dev/mapper/data-data_meta0
examining superblock
TRANSACTION_ID=930
METADATA_FREE_BLOCKS=4145151
examining devices tree
missing devices: [236, 347]
bad checksum in btree node (block 398964)
missing devices: [484, -]
parent key mismatch: parent was 484, but lowest in node was 1 (block 398963)
examining mapping tree
missing all mappings for devices: [1, 292]
bad checksum in btree node (block 27584)
누구든지 도와줄 수 있나요? 정말 감사합니다. 감사합니다.