Error removing backup snapshots using lvm over multipath and iscsi

kirrmann

Member
Nov 25, 2009
7
0
21
Germany, Freiburg
I'm currently testing a Proxmox 2.1 HA setup with LVM on top of multipath iscsi devices (Equallogic SAN).

The snapshot backup job cannot remove the created lvm snapshot volume and so new job will fail, because of the already existing snapshot (interessing fact that the first backup final status will report as ok, altough he couldn't remove the snapshot).

I also tried to remove the snapshot by hand:

Code:
lvremove /dev/equallogic/vzsnap-st00001-0

but this causes the IO to infinitely hang, which I found out was the fault of the multipath features "1 queue_if_no_path" option. So all the paths fail and cannot be rebuild, because the devices are still listed as busy.

Code:
# multipath -v4
May 22 10:56:16 | libdevmapper: ioctl/libdm-iface.c(1705): device-mapper: reload ioctl on mpath0 failed: Device or resource busy
May 22 10:56:16 | libdevmapper: ioctl/libdm-iface.c(1705): device-mapper: reload ioctl on mpath0 failed: Device or resource busy

After I removed this option the command immediately fails with following output:

Code:
# lvremove /dev/equallogic/vzsnap-st00001-0
/dev/disk/by-id/scsi-mpath1: BLKDISCARD ioctl at offset 61242081280 size 10737 41824 failed: Input/output error.
/dev/disk/by-id/scsi-mpath1: read failed after 0 of 4096 at 4096: Input/output error

If I connect to the same iscsi target on some other machine without multipath, I'm able to remove the volumes. Therefore I guess the error lies within multipath.

So my question is ... does anybody have hints how to deal with this error? Are there any known bugreports (couldn't find any)? Or is there anything in my configuration which is faulty?

Thanks.
 
Last edited:
post also the output of 'pveversion -v'
 
Code:
root@st00001:~# pveversion -v
pve-manager: 2.1-1 (pve-manager/2.1/f9b0f63a)
running kernel: 2.6.32-11-pve
proxmox-ve-2.6.32: 2.0-66
pve-kernel-2.6.32-11-pve: 2.6.32-66
lvm2: 2.02.95-1pve2
clvm: 2.02.95-1pve2
corosync-pve: 1.4.3-1
openais-pve: 1.1.4-2
libqb: 0.10.1-2
redhat-cluster-pve: 3.1.8-3
resource-agents-pve: 3.9.2-3
fence-agents-pve: 3.1.7-2
pve-cluster: 1.0-26
qemu-server: 2.0-39
pve-firmware: 1.0-15
libpve-common-perl: 1.0-27
libpve-access-control: 1.0-21
libpve-storage-perl: 2.0-18
vncterm: 1.0-2
vzctl: 3.0.30-2pve5
vzprocps: 2.0.11-2
vzquota: 3.0.12-3
pve-qemu-kvm: 1.0-9
ksm-control-daemon: 1.1-1