Changeset 42447 for trunk/tools
- Timestamp:
- Apr 11, 2023, 11:00:58 AM (3 years ago)
- Location:
- trunk/tools/eam/rawfix.20230221/src
- Files:
-
- 6 edited
-
check_md5s_dateobs.pl (modified) (3 diffs)
-
fix_chip_locations.pl (modified) (2 diffs)
-
rawfix.ckchip.pt (modified) (2 diffs)
-
rawfix.fixchip.pt (modified) (1 diff)
-
rawfix.md5chk.pt (modified) (2 diffs)
-
rawfix.pt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/eam/rawfix.20230221/src/check_md5s_dateobs.pl
r42444 r42447 59 59 60 60 # if these do not match, complain and move on 61 # we are allowed to have more MD5s than instances: some instances 62 # may have been culled during this process (but the MD5s stay behind) 61 63 my $N1 = @md5data; 62 64 my $N2 = @instdata; 63 if ($N1 !=$N2) {64 print STDOUT " inconsistent number of lines in$md5match : $N1 vs $N2\n";65 if ($N1 < $N2) { 66 print STDOUT "not enough MD5s $md5match : $N1 vs $N2\n"; 65 67 $Nfail ++; 66 68 next; 67 69 } 68 70 71 # set up an empty hash for the instance names: 72 my %instfound = (); 73 foreach my $line (@instdata) { 74 chomp $line; 75 my @words = split (/\s+/,$line); 76 my $inst = $words[0]; 77 $instfound{$inst} = 0; 78 } 79 69 80 # check for mismatched MD5sums 81 # we are not checking that all instances in the inst file are in the MD5 file 70 82 foreach my $line (@md5data) { 71 83 … … 80 92 my $md5tru = $words[2]; 81 93 my $md5obs = $words[3]; 94 95 unless (defined $instfound{$inst}) { print "skip md5 for removed instance $inst\n"; next; } 96 $instfound{$inst} = 1; 82 97 83 98 if ($md5tru ne $md5obs) { … … 88 103 if ($DEBUG > 2) { print STDOUT "$inst $state $md5tru = $md5obs\n"; } 89 104 } 105 } 106 107 my @instfoundKEYS = keys %instfound; 108 foreach my $inst (@instfoundKEYS) { 109 unless ($instfound{$inst}) { die "missing MD5 for instance $inst\n"; } 90 110 } 91 111 } -
trunk/tools/eam/rawfix.20230221/src/fix_chip_locations.pl
r42446 r42447 195 195 my $NcullTotal = @$cull_list_r; 196 196 foreach my $instance (@$cull_list_r) { 197 print "state $state : checking instance $instance ... "; 197 198 my ($volname) = $instance =~ m|file:///data/([0-9a-zA-Z]*\.[0-9])/\S*|; 199 print "volname $volname\n"; 198 200 unless (defined $vol_good{$volname}) { die "ERROR: invalid volume name $volname\n"; } 199 201 # print STDERR "neb-cull $state: $ext_id $volname ($main_keep $back_keep)\n"; … … 321 323 if (($xattr == 1) && ($back_keep eq "")) { $back_keep = $instance; next; } 322 324 325 if ($xattr > 1) { print "ignore lost instance $instance\n"; next; } 326 323 327 # if we make it here, we already have an instance at this location 324 328 push (@cull_list, $instance); -
trunk/tools/eam/rawfix.20230221/src/rawfix.ckchip.pt
r42445 r42447 58 58 periods -exec $REXEC 59 59 periods -timeout 60 60 host anyhost60 host -required $HOST_CKCHIP 61 61 npending 1 62 62 … … 89 89 sprintf FULLDATE "%s/%s/%s" $YEAR $MONTH $DAY 90 90 91 # this command accesses the Nebulous and GPC databases, so it must run at ITC. 91 92 command $mypath/check_chip_locations.pl --topdir $mypath --dateobs $FULLDATE --chiplist gpc1.chips.txt --stage $ITER 92 93 end -
trunk/tools/eam/rawfix.20230221/src/rawfix.fixchip.pt
r42445 r42447 57 57 periods -exec $REXEC 58 58 periods -timeout 1800 59 host anyhost59 host -required $HOST_FIXCHIP 60 60 npending 1 61 61 -
trunk/tools/eam/rawfix.20230221/src/rawfix.md5chk.pt
r42445 r42447 53 53 54 54 task nights.md5chk.run 55 host anyhost56 55 periods -poll $RPOLL 57 56 periods -exec $REXEC 58 57 periods -timeout 60 58 host anyhost 59 59 npending 1 60 60 … … 85 85 stderr $mypath/$DATEOBS/log.md5chk.v$ITER 86 86 87 ## this command does NOT use Nebulous or GPC so it can run anywhere 87 88 command $mypath/check_md5s_dateobs.pl --topdir $mypath --dateobs $FULLDATE --stage $ITER 88 89 end -
trunk/tools/eam/rawfix.20230221/src/rawfix.pt
r42446 r42447 15 15 $mypath = /data/ippb07.0/home/eugene/rawfix.20230221 16 16 17 # I need to avoid ATRC machines for jobs which try to access Nebulous or GPC 18 # I cannot define an avoidance list for a job, so I need to specify the 19 # required host 20 21 $HOST_CKCHIP = ipp060 22 $HOST_FIXCHIP = ipp070 23 17 24 if (not($?LOGDIR)) 18 25 $LOGDIR = $mypath/pantasks_logs … … 28 35 input rawfix.md5sum.pt 29 36 input rawfix.md5chk.pt 37 38 if (not($?INIT_RAWFIX)) 39 control host add $HOST_CKCHIP 40 control host add $HOST_FIXCHIP 41 $INIT_RAWFIX = 1 42 end 30 43 31 44 ######################### UTILITIES #################################
Note:
See TracChangeset
for help on using the changeset viewer.
