PVEPERF and multipath bug?

Kaya

Member
Jun 20, 2012
111
2
18
Digging into my test, I think that I found a small bug in pverperf, but not sure.

running pveperf on machine with multipath enabled get this error:
Code:
root@proxmox1:/etc/pve# pveperf
CPU BOGOMIPS:      114920.76
REGEX/SECOND:      917416
HD SIZE:           236.08 GB (/dev/mapper/222310001555f77ef)
unable to open HD at /usr/bin/pveperf line 149.
with strace i saw that line:
Code:
write(1, "HD SIZE:           236.08 GB (/d"..., 61HD SIZE:           236.08 GB (/dev/mapper/222310001555f77ef)
) = 61

[cut]
open("/dev/mapper/222310001555f77ef", O_RDONLY) = -1 ENOENT (No such file or directory)
write(2, "unable to open HD at /usr/bin/pv"..., 48unable to open HD at /usr/bin/pveperf line 149.


an ls on that directory show that this kind of guid id not present:
Code:
root@proxmox1:/etc/pve# ls -l /dev/mapper/total 0
crw------- 1 root root  10, 61 Aug 13 04:00 control
brw-rw---- 1 root disk 253,  0 Aug 13 04:00 system
brw------- 1 root root 253,  2 Aug 13 04:00 system-part1
brw------- 1 root root 253,  3 Aug 13 04:00 system-part2
brw------- 1 root root 253,  4 Aug 13 04:00 system-part5
brw-rw---- 1 root disk 253,  1 Aug 13 04:00 vmdata
brw------- 1 root root 253,  5 Aug 13 04:09 vmdata-part1
lrwxrwxrwx 1 root root       7 Aug 13 05:37 VM-vm--100--disk--1 -> ../dm-6

and multipath show it correctly:
Code:
# multipath -lvmdata (222310001555f77ef) dm-1 Intel,Multi-Flex
size=558G features='1 queue_if_no_path' hwhandler='1 alua' wp=rw
|-+- policy='round-robin 0' prio=-1 status=active
| `- 0:0:0:1 sdb 8:16 active undef running
`-+- policy='round-robin 0' prio=-1 status=enabled
  `- 0:0:1:1 sdd 8:48 active undef running

I suppose that this is by the multipath that remove the guid by using the alias, as expected from the conf:
Code:
multipaths {        multipath {
                wwid    222310001555f77ef
                alias   vmdata
        }
}

Did I found a bug or I'm doing something wrong?

Thanks!
 
You can either:

- send me a patch to fix the bug (preferred method)
- or file a bug at bugzilla.proxmox.com