[SOLVED] iscsi error : "Could not find lu_name for zvol"

RobFantini

Famous Member
May 24, 2012
2,042
107
133
Boston,Mass
Hello
I had to replace a bad HBA at a iscsi server.

the zfs is OK at the server.

However when trying to start a kvm this error occurs:

Code:
 qm start 5109
Could not find lu_name for zvol vm-5109-disk-1 at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 105.

I searched forum and found this: https://forum.proxmox.com/threads/solved-pve-3-2-zfs-plugin-with-zfs-on-linux.18054/#post-92862 . that gives clues, but config files are not the same in pve4 .

any suggestions to fix this?
 
from syslog
Code:
May 16 10:41:00 sys3 qm[11171]: start VM 5109: UPID:sys3:00002BA3:00007C58:5739DBFC:qmstart:5109:root@pam:
May 16 10:41:00 sys3 qm[11170]: <root@pam> starting task UPID:sys3:00002BA3:00007C58:5739DBFC:qmstart:5109:root@pam:
May 16 10:41:00 sys3 qm[11171]: Could not find lu_name for zvol vm-5109-disk-1 at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 105.
May 16 10:41:00 sys3 qm[11170]: <root@pam> end task UPID:sys3:00002BA3:00007C58:5739DBFC:qmstart:5109:root@pam: Could not find lu_name
for zvol vm-5109-disk-1 at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 105.
 
the iscsi storage is usable, I can restore a backup ,
the zfs is created .
but there is still a LU error.
Code:
restore vma archive: lzop -d -c /mnt/pve/bkup/dump/vzdump-qemu-77995-2016_05_14-00_20_51.vma.lzo|vma extract -v -r /var/tmp/vzdumptmp21288.fifo - /var/tmp/vzdumptmp21288
CFG: size: 547 name: qemu-server.conf
DEV: dev_id=1 size: 8589934592 devname: drive-virtio0
CTIME: Sat May 14 00:20:53 2016
new volume ID is 'iscsi-sys5:vm-77996-disk-1'
map 'drive-virtio0' to 'iscsi://10.2.2.21/iqn.2010-09.org.napp-it:1462812439/7' (write zeros = 1)
progress 1% (read 85917696 bytes, duration 5 sec)
progress 2% (read 171835392 bytes, duration 12 sec)
progress 3% (read 257753088 bytes, duration 14 sec)
..
progress 98% (read 8418164736 bytes, duration 229 sec)
progress 99% (read 8504082432 bytes, duration 238 sec)
progress 100% (read 8589934592 bytes, duration 248 sec)
total bytes read 8589934592, sparse bytes 793489408 (9.24%)
space reduction due to 4K zero blocks 0.162%
Could not find lu_name for zvol vm-77996-disk-1 at /usr/share/perl5/PVE/Storage/ZFSPlugin.pm line 105.
TASK OK

*at iscsi server
Code:
zfs list data/vm-77996-disk-1
NAME  USED  AVAIL  REFER  MOUNTPOINT
data/vm-77996-disk-1  8.25G  895G  8.07G  -

I was able to start that kvm.

PS:
i had made a change to replace a degraded disk on the zfs. .
i'll retry a restore to see if lu issue persists.

the 2ND restore did not have the lu issue.

the the issue may be on the iscsi server side..
 
Last edited:
solved,

the issue was due to a degraded zfs on omnios.

due to degraded zfs , iscsi had issues.

after fixing the zfs, iscsi worked for new zfs, not older ones.

i rebooted omnios . then the kvm;s started.

this is probably a better way to deal with services then reboot... more to learn.