Heads up: ESXi 5.5 crashes Linux iscsi_trgt

If you’re running a standard Linux on your homelab storage box with iSCSI (ietd, iscsi_trgt), you need to take some actions before deploying ESXi 5.5 in your environment. It seems the new ESXi release issues some SMART command on iSCSI targets, which hits a bug in iscsi_trgt. I’m using Debian 7.2 on my lab NAS which comes with iscsitarget Once an ESXi 5.5 tried to access an iSCSI LUN, the iSCSI subsystem crashed completely. You’ll see messages like these:

kernel: [17963.766648] iscsi_trgt: BUG at /var/lib/dkms/iscsitarget/ assert(req->tio)
kernel: [17963.766714] Pid: 2487, comm: istiod1 Tainted: G           O 3.2.0-4-amd64 #1 Debian 3.2.46-1+deb7u1
kernel: [17963.766820] kernel BUG at /var/lib/dkms/iscsitarget/!

While not referencing ESXi, the bug itself is already known to the Debian maintainers as #685422. Other distributions like Ubuntu are most likely also affected if they use an unpatched iscsitarget You need to check if fix-send-data-rsp.patch was already applied to the specific version of your Linux. On my Debian 7.2 I updated by downloading iscsitarget_1.4.20.3+svn496-1 from http://packages.debian.org/de/jessie/iscsitarget-dkms and compiled the kernel module as well as the userland tools (otherwise you’ll hit a “version mismatch” problem). ESXi 5.5 runs fine with several iSCSI LUNs now.

Leave a Reply

Your email address will not be published. Required fields are marked *