Changeset 40387 for trunk/Nebulous/bin/whichnode
- Timestamp:
- Apr 11, 2018, 2:15:43 PM (8 years ago)
- File:
-
- 1 edited
-
trunk/Nebulous/bin/whichnode (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Nebulous/bin/whichnode
r33971 r40387 31 31 my $dbh = getDBHandle(); 32 32 33 my $query = "SELECT volume.name AS volname, uri, mountedvol.* "33 my $query = "SELECT volume.name AS volname, uri, mountedvol.*, volume.xattr AS volxattr" 34 34 . " FROM storage_object JOIN instance USING(so_id)" 35 35 . " JOIN volume using(vol_id)" … … 53 53 my $volname = $instance->{volname}; 54 54 my $uri = $instance->{uri}; 55 my $volxattr = $instance->{volxattr}; 56 55 57 $num_instances++; 56 58 if ($instance->{available}) { 57 59 $num_available++; 58 60 print "$volname available\n"; 61 } elsif ($volxattr == 5) { 62 print "$volname permanently offline\n"; 59 63 } else { 60 64 print "$volname not available\n";
Note:
See TracChangeset
for help on using the changeset viewer.
