Proxmox 报错clone failed:“x.x.x”Failed to wipe start of new LV.

在Proxmox虚拟化平台克隆虚机时,出现克隆失败,尝试新建虚拟机,同样报错WARNING: dos signature detected on /dev/vgms3kg2/vm-119-disk-0 at offset 510. Wipe it? [y/n]: [n],具体报错日志如下:

create full clone of drive scsi0 (lvms3kg2:vm-118-disk-0)WARNING: dos signature detected on /dev/vgms3kg2/vm-119-disk-0 at offset 510. Wipe it? [y/n]: [n] Aborted wiping of dos. 1 existing signature left on the device. Failed to wipe signatures on logical volume vgms3kg2/vm-119-disk-0.TASK ERROR: clone failed: lvcreate ‘vgms3kg2/vm-119-disk-0’ error: Aborting. Failed to wipe start of new LV.

经过一番排查和日志分析,lsblk命令列出所有可用设备的信息

root@pve1:~# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sdp 8:240 0 3T 0 disk

mpathc 253:12 0 3T 0 mpath

sdq 65:0 0 5T 0 disk

mpathd 253:13 0 5T 0 mpath

vgms3kg2-lv123 253:19 0 10G 0 lvm

至此,可能是创建虚机、克隆时,空间分配到mpathc 253:12 0 3T 0 mpath,导致报错,手动创建一块测试lvm,lvcreate -L 10G -n lv1234 vgms3kg2 /dev/mapper/mpathc,然后重新执行克隆和虚机创建操作,恢复正常。

正常后,移除创建的测试逻辑卷:lvremove /dev/vgms3kg2/lv1234