我继承的运行Xencenter的旧服务器出现了严重问题。VM将不再以VDI不可用错误引导。我开始尽可能多地进行故障排除,但我对LVM知之甚少,真的不想引起任何额外的问题。我希望在座的一些专家能帮助我或指出正确的方向。我知道如何使用linux,但是LVM,我真的不明白下面的输出是怎么看的。我要试着把所有我能找到的东西移到ESX.我当时正在构建一个新的服务器来承载这个特定的VM,并将它安装在一些我使用得更舒服的东西上。
谢谢你的任何建议,你可以得到这个安装,甚至RO,以便我可以复制它。如果我错过了什么,我很抱歉。我真的不知道我在看什么,据我所知,其中一个磁盘是熄火的,但是如果它是一面镜子,我应该能以某种方式安装这个卷吗?或者将磁盘映像转到nfs服务器以安装到其他地方?
Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/sdc: 640.1 GB, 640135028736 bytes, 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
WARNING: fdisk GPT support is currently new, and therefore in an experimental phase. Use at your own discretion.
Disk /dev/sda: 640.1 GB, 640135028736 bytes, 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
# Start End Size Type Name
1 46139392 83888127 18G Microsoft basic
2 8390656 46139391 18G Microsoft basic
3 83888128 84936703 512M BIOS boot parti
5 2048 8390655 4G Microsoft basic
6 84936704 87033855 1G Linux swap
Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes, 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk /dev/mapper/VG_XenStorage--17d1d6ae--7b5b--d2e6--ffa9--34f42e56bb48-MGT: 4 MB, 4194304 bytes, 8192 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
fdisk: cannot open /dev/mapper/VG_XenStorage--17d1d6ae--7b5b--d2e6--ffa9--34f42e56bb48-VHD--694760ca--8e18--451b--9c47--8b42922c6a5c-missing_0_0: Input/output error[root@xen1 xenstored]# vgchange -ay
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
Couldn't find device with uuid 1nDNEE-3cTf-lq02-Bdj8-xHOu-Qrce-j0leJQ.
Refusing activation of partial LV VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c. Use '--activationmode partial' to override.
2 logical volume(s) in volume group "VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48" now active
[root@xen1 xenstored]# vgchange -ay --activationmode partial
PARTIAL MODE. Incomplete logical volumes will be processed.
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
Couldn't find device with uuid 1nDNEE-3cTf-lq02-Bdj8-xHOu-Qrce-j0leJQ.
2 logical volume(s) in volume group "VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48" now active
[root@xen1 xenstored]#[root@xen1 xenstored]# pvscan -v
Wiping cache of LVM-capable devices
Wiping internal VG cache
Walking through all physical volumes
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/etc/lvm/cache/.cache is empty
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 1nDNEE-3cTf-lq02-Bdj8-xHOu-Qrce-j0leJQ.
There are 1 physical volumes missing.
PV /dev/sdb VG VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 [931.50 GiB / 931.50 GiB free]
PV /dev/sdc VG VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 [596.16 GiB / 596.16 GiB free]
PV /dev/sdd VG VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 [931.50 GiB / 931.50 GiB free]
PV unknown device VG VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 [2.73 TiB / 790.59 GiB free]
Total: 4 [5.13 TiB] / in use: 4 [5.13 TiB] / in no VG: 0 [0 ]
[root@xen1 xenstored]#/etc/lvm/backup/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48
[root@xen1 xenstored]# pvs
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
Couldn't find device with uuid 1nDNEE-3cTf-lq02-Bdj8-xHOu-Qrce-j0leJQ.
PV VG Fmt Attr PSize PFree
/dev/sdb VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 a-- 931.50g 931.50g
/dev/sdc VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 a-- 596.16g 596.16g
/dev/sdd VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 a-- 931.50g 931.50g
unknown device VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 lvm2 a-m 2.73t 790.59g
[root@xen1 xenstored]#[root@xen1 xenstored]# lvs -v
Using logical volume(s) on command line.
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
Found same device /dev/sdb with same pvid 1SiYGvLHwC10Iz2aV8pHg3KvC5f6QQaD
Found same device /dev/sdc with same pvid LPdOu2nmcVWuOKsXpsSRoFfaYh6BiM5M
Found same device /dev/sdd with same pvid FVD2cqj4I5xvPptAdB1lwaHglNhR7M2G
/etc/lvm/cache/.cache is empty
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
Couldn't find device with uuid 1nDNEE-3cTf-lq02-Bdj8-xHOu-Qrce-j0leJQ.
There are 1 physical volumes missing.
There are 1 physical volumes missing.
LV VG #Seg Attr LSize Maj Min KMaj KMin Pool Origin Data% Meta% Move Cpy%Sync Log Convert LV UUID LProfile
MGT VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 1 -wi-a----- 4.00m -1 -1 253 0 wkOhxx-6WJm-vEfK-NM7Q-f8qr-EwN6-bqcbRz
VHD-694760ca-8e18-451b-9c47-8b42922c6a5c VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48 1 -wi-a---p- 1.96t -1 -1 253 2 vY8Q6w-EWXs-d29t-wNSb-oAtf-0KjE-Zz4hdZ
[root@xen1 xenstored]#**编辑**添加一些xen疑难解答,这里显示了许多相同的信息和错误消息。我读过删除SR和rescan的帖子,但我认为我的问题比这更严重。
[root@xen1 xenstored]# xe vm-start vm="Windows Server 2012 R2 (64-bit)"
Error code: SR_BACKEND_FAILURE_46
Error parameters: , The VDI is not available [opterr=Command ['/sbin/lvchange', '-ay', '/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c'] failed (5): /dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 0: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686275072: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 2151686332416: Input/output error
/dev/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c: read failed after 0 of 4096 at 4096: Input/output error
Couldn't find device with uuid 1nDNEE-3cTf-lq02-Bdj8-xHOu-Qrce-j0leJQ.
Refusing activation of partial LV VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48/VHD-694760ca-8e18-451b-9c47-8b42922c6a5c. Use '--activationmode partial' to override.],
[root@xen1 xenstored]# list_domains
id | uuid | state
0 | 5947d140-648b-438b-96e3-b167c0fa5edd | R
[root@xen1 xenstored]# xe vm-disk-list uuid=5947d140-648b-438b-96e3-b167c0fa5edd
Error: No matching VMs found
[root@xen1 xenstored]#[root@xen1 xenstored]# list_domains
id | uuid | state
0 | 5947d140-648b-438b-96e3-b167c0fa5edd | R
[root@xen1 xenstored]# xe vm-disk-list uuid=5947d140-648b-438b-96e3-b167c0fa5edd
Error: No matching VMs found
[root@xen1 xenstored]# xe vm-list
uuid ( RO) : a1a34843-beeb-e570-fef8-ada496efbb73
name-label ( RW): Windows Server 2012 R2 (64-bit)
power-state ( RO): halted
uuid ( RO) : 5947d140-648b-438b-96e3-b167c0fa5edd
name-label ( RW): Control domain on host: xen1
power-state ( RO): running
[root@xen1 xenstored]# xe vm-reset-powerstate force=true vm="Windows Server 2012 R2 (64-bit)"
[root@xen1 xenstored]# xe vm-list
uuid ( RO) : a1a34843-beeb-e570-fef8-ada496efbb73
name-label ( RW): Windows Server 2012 R2 (64-bit)
power-state ( RO): halted
uuid ( RO) : 5947d140-648b-438b-96e3-b167c0fa5edd
name-label ( RW): Control domain on host: xen1
power-state ( RO): running
[root@xen1 xenstored]#发布于 2020-12-01 14:19:27
看上去好像缺了一张磁盘:
vgchange命令中,LVM抱怨设备1nDNEE-3cTf-lq02-Bdj8-xHOu-Qrce-j0leJQ丢失。/etc/lvm/backup/VG_XenStorage-17d1d6ae-7b5b-d2e6-ffa9-34f42e56bb48文件中,我们可以看到丢失的设备存储在/dev/sde磁盘中。fdisk -l不报告任何/dev/sde设备。就这样..。
https://unix.stackexchange.com/questions/622352
复制相似问题