在 proxmox 上启动虚拟机时,我们遇到了一个问题,出现以下错误
kvm:-drive file=/dev/pve/vm-130-disk-0,if=none,id=drive-virtio0,format=raw,cache=none,aio=native,detect-zeroes=on:无法打开‘/dev/pve/vm-130-disk-0’:没有此文件或目录
我们尝试去了解这个问题,并且尝试了几个线索来理解它,但没有成功。
以下是有关系统的一些信息
lvs:
LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert
base-129-disk-0 pve Vri---tz-k 600.00g data
data pve twi---tz-- 18.03t
data_meta0 pve -wi------- 16.00g
root pve -wi-ao---- 96.00g
swap pve -wi-ao---- 20.00g
vm-100-disk-0 pve Vwi---tz-- 100.00g data
vm-103-disk-0 pve Vwi---tz-- 250.00g data
vm-105-disk-0 pve Vwi---tz-- 610.00g data
vm-106-disk-0 pve Vwi---tz-- 500.00g data
vm-110-disk-0 pve Vwi---tz-- 800.00g data
vm-116-disk-0 pve Vwi---tz-- 600.00g data
vm-118-disk-0 pve Vwi---tz-- 650.00g data
vm-120-disk-0 pve Vwi---tz-- 1.17t data
vm-127-disk-0 pve Vwi---tz-- 150.00g data
vm-130-disk-0 pve Vwi---tz-- 250.00g data
vm-131-disk-0 pve Vwi---tz-- 150.00g data
vm-137-disk-0 pve Vwi---tz-- 50.00g data
vm-138-disk-0 pve Vwi---tz-- 100.00g data
vm-141-disk-0 pve Vwi---tz-- 800.00g data
vm-144-disk-0 pve Vwi---tz-- 100.00g data
vm-148-disk-0 pve Vwi---tz-- 1000.00g data
vm-152-disk-0 pve Vwi---tz-- 500.00g data
vm-156-disk-0 pve Vwi---tz-- 600.00g data
vm-210-disk-0 pve Vwi---tz-- 1.29t data
vm-215-disk-0 pve Vwi---tz-- 250.00g data
vm-220-disk-0 pve Vwi---tz-- 574.00g data
vm-222-disk-0 pve Vwi---tz-- 250.00g data
vm-227-disk-0 pve Vwi---tz-- 625.00g data
vm-227-disk-1 pve Vwi---tz-- 100.00g data
vm-229-disk-0 pve Vwi---tz-- 625.00g data
vm-229-disk-1 pve Vwi---tz-- 100.00g data
vm-264-disk-0 pve Vwi---tz-- 500.00g data
VGS:
VG #PV #LV #SN Attr VSize VFree
pve 2 32 0 wz--n- 18.24t 65.96g
lsblk:
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 18.2T 0 disk
|-sda1 8:1 0 1007K 0 part
|-sda2 8:2 0 512M 0 part
`-sda3 8:3 0 18.2T 0 part
|-pve-swap 253:0 0 20G 0 lvm [SWAP]
|-pve-root 253:1 0 96G 0 lvm /
|-pve-data_tmeta 253:2 0 15.8G 0 lvm
`-pve-data_tdata 253:8 0 18T 0 lvm
sdb 8:16 0 4.6T 0 disk
`-sdb1 8:17 0 50G 0 part
sr0 11:0 1 1024M 0 rom
/etc/pve/storage.conf 的内容
dir: local
path /var/lib/vz
content vztmpl,backup,iso
lvmthin: local-lvm
vgname pve
thinpool data
content rootdir,images
lvscan:
ACTIVE '/dev/pve/swap' [20.00 GiB] inherit
ACTIVE '/dev/pve/root' [96.00 GiB] inherit
inactive '/dev/pve/data' [18.03 TiB] inherit
inactive '/dev/pve/vm-120-disk-0' [1.17 TiB] inherit
inactive '/dev/pve/vm-105-disk-0' [610.00 GiB] inherit
inactive '/dev/pve/vm-116-disk-0' [600.00 GiB] inherit
inactive '/dev/pve/vm-130-disk-0' [250.00 GiB] inherit
inactive '/dev/pve/vm-103-disk-0' [250.00 GiB] inherit
inactive '/dev/pve/vm-127-disk-0' [150.00 GiB] inherit
inactive '/dev/pve/base-129-disk-0' [600.00 GiB] inherit
inactive '/dev/pve/vm-131-disk-0' [150.00 GiB] inherit
inactive '/dev/pve/vm-137-disk-0' [50.00 GiB] inherit
inactive '/dev/pve/vm-141-disk-0' [800.00 GiB] inherit
inactive '/dev/pve/vm-144-disk-0' [100.00 GiB] inherit
inactive '/dev/pve/vm-156-disk-0' [600.00 GiB] inherit
inactive '/dev/pve/vm-118-disk-0' [650.00 GiB] inherit
inactive '/dev/pve/vm-210-disk-0' [1.29 TiB] inherit
inactive '/dev/pve/vm-138-disk-0' [100.00 GiB] inherit
inactive '/dev/pve/vm-215-disk-0' [250.00 GiB] inherit
inactive '/dev/pve/vm-220-disk-0' [574.00 GiB] inherit
inactive '/dev/pve/vm-106-disk-0' [500.00 GiB] inherit
inactive '/dev/pve/vm-152-disk-0' [500.00 GiB] inherit
inactive '/dev/pve/vm-222-disk-0' [250.00 GiB] inherit
inactive '/dev/pve/vm-227-disk-0' [625.00 GiB] inherit
inactive '/dev/pve/vm-227-disk-1' [100.00 GiB] inherit
inactive '/dev/pve/vm-229-disk-0' [625.00 GiB] inherit
inactive '/dev/pve/vm-229-disk-1' [100.00 GiB] inherit
inactive '/dev/pve/vm-148-disk-0' [1000.00 GiB] inherit
inactive '/dev/pve/vm-110-disk-0' [800.00 GiB] inherit
inactive '/dev/pve/vm-100-disk-0' [100.00 GiB] inherit
inactive '/dev/pve/vm-264-disk-0' [500.00 GiB] inherit
由于 /dev/pve/data 未激活,我们尝试使用 lvchange -ay /dev/pve 激活
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
当我尝试使用详细日志运行相同的命令时 lvchange -ay -v /dev/pve/data
Activating logical volume pve/data exclusively.
activation/volume_list configuration setting not defined: Checking only host tags for pve/data.
Loading pve-data_tmeta table (253:2)
Suppressed pve-data_tmeta (253:2) identical table reload.
Loading pve-data_tdata table (253:8)
Suppressed pve-data_tdata (253:8) identical table reload.
Executing: /usr/sbin/thin_check -q --clear-needs-check-flag /dev/mapper/pve-data_tmeta
Creating pve-data-tpool
Loading pve-data-tpool table (253:3)
Resuming pve-data-tpool (253:3)
device-mapper: resume ioctl on (253:3) failed: Invalid argument
Unable to resume pve-data-tpool (253:3)
Removing pve-data-tpool (253:3)
我们正在尝试恢复这个缺失的 pve-data-tpool,这导致了无法恢复 pve-data-tpool 的问题。我们遗漏了什么吗?由于这个问题,我们无法启动 proxmox 服务器中的任何虚拟机。不幸的是,我们没有虚拟机的最新备份。
请针对此问题提出任何解决方案。