Update Debian Squeeze (6.0) to Wheezy (7.0) with iscsi

Since June, 15th 2013, debian released the new stable Version 7.0 , called wheezy. Fortunately, the upgrade process is quite simple .. If don’t have any special combinations.

The normal upgrade Process is good explained here.

If you do have a iscsitarget running, you will notice that the upgrade process installs two new packages for iscsitarget & iscsitarget-dkms.
But the compiling of the dkms module “iscsi_trgt” Fails with some strange block_io error (found in the make.log):
/var/lib/dkms/iscsitarget/1.4.20.2/build/kernel/block-io.c: In function ‘blockio_make_request’:
/var/lib/dkms/iscsitarget/1.4.20.2/build/kernel/block-io.c:59:18: error: storage size of plugin isn't known

After some research, I found a solution here.
The definition of struct blk_plug is missing. You can read the details under the link above. In short, you have to
add a patch to the file /var/lib/dkms/iscsitarget/1.4.20.2/source/dkms.conf.

After you added the patch in the dkms.conf file, execute dkms autoinstall and the iscsitarget will be build without any Troubles.

[UPDATE August, 09 2013 00:38]
Unfortunately, this patch doesn’t solve the problem. After some connections, a kernel panic occurs – Details here. So you have to compile it manualy to make it work. I hope, it work’s now, otherwise, all my ESXi Hosts are gone ;-).

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.