freenas-proxmox
freenas-proxmox copied to clipboard
Missing LUN removal from kernel after removal of disk
trafficstars
Hi all, I'm not sure if this is more a Proxmox than a plugin problem, but when (for some reason, I'm still having trouble because qemu and vma as of Proxmox usage does not support CHAP auth), a disk is removed, the kernel is not notified. This yields lots(!) of error messages all 10 seconds when Proxmox does a rescan of the iscsi target. Example:
new volume ID is 'truenas-113:vm-100-disk-0'
new volume ID is 'truenas-113:vm-100-disk-1'
Rescanning session [sid: 3, target: iqn.xxx:storage01, portal: xxx,3260]
sh: 1: /usr/sbin/multipath: not found
map 'drive-scsi0' to 'iscsi://xxx/iqn.xxx:storage01/1' (write zeros = 1)
Rescanning session [sid: 3, target: iqn.xxx:storage01, portal: xxx,3260]
sh: 1: /usr/sbin/multipath: not found
map 'drive-scsi1' to 'iscsi://xxx/iqn.xxx:storage01/2' (write zeros = 1)
vma: can't open file iscsi://xxx/iqn.xxx:storage01/1 - iSCSI: Failed to connect to LUN : Failed to log in to target. Status: Authentication failure(513)
/bin/bash: line 1: 1870707 Broken pipe zstd -q -d -c /var/lib/vz/dump/vzdump-qemu-102-2024_01_30-19_41_59.vma.zst
1870708 Trace/breakpoint trap | vma extract -v -r /var/tmp/vzdumptmp1870698.fifo - /var/tmp/vzdumptmp1870698
temporary volume 'truenas-113:vm-100-disk-1' sucessfuly removed
temporary volume 'truenas-113:vm-100-disk-0' sucessfuly removed
will give
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Unit Not Ready
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Sense Key : Illegal Request [current]
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Add. Sense: Logical unit not supported
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Sense Key : Illegal Request [current]
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Add. Sense: Logical unit not supported
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Sense Key : Illegal Request [current]
Jan 31 21:44:17 pve-118 kernel: sd 4:0:0:1: [sdh] Add. Sense: Logical unit not supported
for each LUN and every 10 seconds.