IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2017, 3:19:07 PM (9 years ago)
Author:
watersc1
Message:

Better handle instances on volumes that are temporarily unavailable.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippScripts/scripts/rawcheck_mddb.pl

    r40203 r40222  
    153153my $mounts = $neb->mounts();
    154154my %volume_fill_factors = ();
     155my %down_volume = ();
    155156foreach my $vol_row (@$mounts) {
    156157    my ($mount_point, $total, $used, $vol_id, $name, $host, $path, $allocate, $available, $xattr) = @{ $vol_row };
     
    162163        $acceptable_volume{$name} = 0;
    163164    }
     165
     166    if (($available != 1)&&($xattr != 5)) {
     167        $down_volume{$name} = 1;
     168    }
     169
    164170    if (($name =~ /ippb05/)||($name =~ /ippb02/)) {
    165171        $acceptable_volume{$name} = 0;
     
    334340            # Identify orphans, and push their handling until later.
    335341            unless (exists($unified_list{$f}{neb_host})) {
    336                 # Handle this.
    337                 $orphans{$f} = $unified_list{$f};
     342                if ($down_volume{$unified_list{$f}{md_vol}} != 1) {
     343                    # Handle this.
     344                    $orphans{$f} = $unified_list{$f};
     345                    warn "No neb entry for $orphans{$f}{md_ins_id} $exp_id $class_id $f \n";
     346                }
     347                else {
     348                    warn "No neb entry for likely due to host issue $exp_id $class_id $f \n";
     349                }
    338350                delete($unified_list{$f});
    339                 warn "No neb entry for $orphans{$f}{md_ins_id} $exp_id $class_id $f \n";
    340351                next;
    341352            }
Note: See TracChangeset for help on using the changeset viewer.