Index: trunk/Nebulous/bin/whichnode
===================================================================
--- trunk/Nebulous/bin/whichnode	(revision 40386)
+++ trunk/Nebulous/bin/whichnode	(revision 40387)
@@ -31,5 +31,5 @@
 my $dbh = getDBHandle();
 
-my $query = "SELECT  volume.name AS volname, uri, mountedvol.*"
+my $query = "SELECT  volume.name AS volname, uri, mountedvol.*, volume.xattr AS volxattr"
     . " FROM storage_object JOIN instance USING(so_id)"
     . " JOIN volume using(vol_id)"
@@ -53,8 +53,12 @@
         my $volname = $instance->{volname};
         my $uri = $instance->{uri};
+	my $volxattr = $instance->{volxattr};
+	
         $num_instances++;
         if ($instance->{available}) {
             $num_available++;
             print "$volname available\n";
+	} elsif ($volxattr == 5) {
+	    print "$volname permanently offline\n";
         } else {
             print "$volname not available\n";
Index: trunk/ippScripts/scripts/chip_imfile.pl
===================================================================
--- trunk/ippScripts/scripts/chip_imfile.pl	(revision 40386)
+++ trunk/ippScripts/scripts/chip_imfile.pl	(revision 40387)
@@ -632,4 +632,5 @@
                 if ($gone) {
                     carp "WARNING: photometry sources storage object exists but all instances are permanently gone";
+		    $ipprc->file_rename($outputSources,$outputSources . ".gone");
                     $make_sources = 1;
                 }
@@ -657,4 +658,5 @@
             if ($gone) {
                 carp "WARNING: PSF storage object exists but all instances are permanently gone";
+		$ipprc->file_rename($outputPsf,$outputPsf . ".gone");
                 $make_psf = 1;
             }
@@ -742,4 +744,6 @@
             print STDERR "$file is on $volume which is gone\n";
             $numGone++;
+	} elsif ($answer eq 'permanently') {
+	    $numGone++;
         } elsif ($answer eq 'available') {
             $numNotGone++;
