iscsi issue conn_close(101) in the target

  • Thread starter Thread starter Josegar
  • Start date Start date
J

Josegar

Guest
Hi;

I have this scenario:

Centos 6.3 fresh install, configured has iscsi target.

Proxmox 2.2

Whent try to conect one iscsi target from the webIU, the log/messages from centos make a recursive error every 9-10 sg.

teststorage tgtd: conn_close(101) connection closed, 0xb7e258 1

But, if added the iscsi iniciator for de cmd, no problem happends.
I thing are some bug in the system to make the iscsi conections in the webIU, somebody have ant solution ?

I see that function in the ISCSIPlugin.pm :
sub iscsi_session_rescan {
my $session_list = shift;

check_iscsi_support();

my $rstat = stat($rescan_filename);

if (!$rstat) {
if (my $fh = IO::File->new($rescan_filename, "a")) {
utime undef, undef, $fh;
close($fh);
}
} else {
my $atime = $rstat->atime;
my $tdiff = time() - $atime;
# avoid frequent rescans
return if !($tdiff < 0 || $tdiff > 10);
utime undef, undef, $rescan_filename;
}


The time condition is similar to the fault i experience. Can be the problem ?.
 
Last edited by a moderator:
Well, i founf a bypass solution to this error.
I change the storage.cfg from :

iscsi: TestStorage
target iqn.XXXX-XX.com.SOMEDOMAIN:teststorage.data
portal 192.168.1.20
content images

dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir
maxfiles 0

lvm: TestVol
vgname TestVol
base TestStorage:0.0.1.scsi-1IET_00010001
shared
content images
To :
dir: local
path /var/lib/vz
content images,iso,vztmpl,rootdir
maxfiles 0

lvm: TestVol
vgname TestVol
shared
content images

With this, the VM are works fine, and the error in the iscsi target don´t happens.

There´s not a perfect solution, but for the moment are good. Maybe the best solution is found the bug in the proxmox code, but perl is not my espacialty.