LLNL / lmt

Lustre Monitoring Tools
GNU General Public License v2.0
67 stars 21 forks source link

lmtsh "clr agg" command does not clear all aggregate tables #19

Closed haasken closed 10 years ago

haasken commented 11 years ago

The lmtsh "clr agg" command does not clear all aggregate tables. It only clears the OST_AGGREGATE_HOUR table. According to the lmtsh usage information:

clr table           : Clear contents of table; 'agg' to clear all agg tables

Here is the output of the "clr agg" command followed immediately by a listing of the tables.

test> clr agg
Are you sure you want to clear contents of these tables: agg ? (yes/no): yes
Clearing contents of tables: OST_AGGREGATE_HOUR OST_AGGREGATE_DAY OST_AGGREGATE_WEEK OST_AGGREGATE_MONTH OST_AGGREGATE_YEAR
test> t
Available tables for rind1:
                        Table Name   Row Count
                        EVENT_DATA   0
                        EVENT_INFO   0
          FILESYSTEM_AGGREGATE_DAY   36
         FILESYSTEM_AGGREGATE_HOUR   612
        FILESYSTEM_AGGREGATE_MONTH   9
         FILESYSTEM_AGGREGATE_WEEK   18
         FILESYSTEM_AGGREGATE_YEAR   9
                   FILESYSTEM_INFO   1
                 MDS_AGGREGATE_DAY   20
                MDS_AGGREGATE_HOUR   340
               MDS_AGGREGATE_MONTH   5
                MDS_AGGREGATE_WEEK   10
                MDS_AGGREGATE_YEAR   5
                          MDS_DATA   48228
                          MDS_INFO   1
                      MDS_OPS_DATA   1012851
                 MDS_VARIABLE_INFO   7
                    OPERATION_INFO   81
                          OSS_DATA   96423
                          OSS_INFO   2
                OSS_INTERFACE_DATA   0
                OSS_INTERFACE_INFO   0
                 OSS_VARIABLE_INFO   7
                 OST_AGGREGATE_DAY   216
                OST_AGGREGATE_HOUR   0
               OST_AGGREGATE_MONTH   54
                OST_AGGREGATE_WEEK   108
                OST_AGGREGATE_YEAR   54
                          OST_DATA   289248
                          OST_INFO   6
                      OST_OPS_DATA   0
                 OST_VARIABLE_INFO   11
              ROUTER_AGGREGATE_DAY   0
             ROUTER_AGGREGATE_HOUR   0
            ROUTER_AGGREGATE_MONTH   0
             ROUTER_AGGREGATE_WEEK   0
             ROUTER_AGGREGATE_YEAR   0
                       ROUTER_DATA   0
                       ROUTER_INFO   0
              ROUTER_VARIABLE_INFO   4
                    TIMESTAMP_INFO   116585
                           VERSION   0