On PVE 8.3, I have a VM running TrueNAS Scale, which generally works great. It runs an iSCSI target for which I have iSCSI storage configured in PVE to serve as a boot disk for that guest.
I have set startup orders set for the VMs in PVE such that the Truenas VM starts before those that depend on its iSCSI storage, and conversely the Truenas VM is stopped after the shutdown of those VMs that depend on its iSCSI storage. However, shutdown still takes a long time, and I see the following on the console:
So it looks like the iSCSI initiator is still running/connected at this point and worse, is still trying to write to the offline iSCSI device. How can I cleanly close open iSCSI connections ahead of shutting down the VM that serves them?
Thanks.
I have set startup orders set for the VMs in PVE such that the Truenas VM starts before those that depend on its iSCSI storage, and conversely the Truenas VM is stopped after the shutdown of those VMs that depend on its iSCSI storage. However, shutdown still takes a long time, and I see the following on the console:
Code:
[** ] Job open-iscsi.service/stop running (5min 13s / 6min 26s)
[ 6930.664224] session1: session recovery timed out after 120 secs
[ 6930.670307] sd 2:0:0:0: rejecting I/O to offline device
[ 6930.670861] sd 2:0:0:1: rejecting I/O to offline device
[ 6930.675574] I/O error, dev sda, sector 0 op 0x0:(READ) flags 0x0 phys_seg 32 prio class 0
[ 6930.680837] I/O error, dev sdb, sector 0 op 0x0:(READ) flags 0x0 phys_seg 32 prio class 0
So it looks like the iSCSI initiator is still running/connected at this point and worse, is still trying to write to the offline iSCSI device. How can I cleanly close open iSCSI connections ahead of shutting down the VM that serves them?
Thanks.