LVM 精简池处于非活动状态并失败,并显示:无可用数据

LVM 精简池处于非活动状态并失败,并显示:无可用数据

由于系统崩溃,我遇到了问题,我正在使用在 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)

任何人都可以帮忙吗?我非常感激,谢谢。

相关内容