[pve-devel] iscsi, some hang : pvestatd always do iscsi_session_rescan

Alexandre DERUMIER aderumier at odiso.com
Thu Apr 26 16:57:55 CEST 2012


Hi Dietmar,
I have some problem today with pvestatd.

my iscsi san had some read queues (no so much),
but proxmox interface was hanging,blocking.

So I see that the problem was pvestatd



in update_storage_status()
-> my $info = PVE::Storage::storage_info($cfg);

storage_info()
->eval { activate_storage_list ($cfg, $slist, $session); };

activate_storage_list()
-> __activate_storage_full


__activate_storage_full()
->

} elsif ($type eq 'iscsi') {

        return if !check_iscsi_support(1);

        $session->{iscsi_sessions} = iscsi_session_list()
            if !$session->{iscsi_sessions};

        my $iscsi_sess = $session->{iscsi_sessions}->{$scfg->{target}};
        if (!defined ($iscsi_sess)) {
            eval { iscsi_login ($scfg->{target}, $scfg->{portal}); };
            warn $@ if $@;
        } else {
            # make sure we get all devices
            iscsi_session_rescan ($iscsi_sess);
        }



then I can see a

/usr/bin/iscsiadm --mode session -r 1 -R 
then
/usr/bin/iscsiadm --mode session -r 2 -R 

running each minute.

As my san was a little slow, iscsiadm was hanging (40sec),normal time is around 6sec.


Do you know why it's always rescan the iscsi sessions ?





More information about the pve-devel mailing list