LLNL / lmt

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

Fix _find_all_fs() so it finds all the filesystems #25

Closed ofaaland closed 9 years ago

ofaaland commented 9 years ago

Modified _match_mdtstat() and _match_oststat() to compare both the filesystem and the numeric portion of the target name. The prior code compared only the numeric portion. If the cerebro polling data included >1 mdt with the same number but different filesystem names, _update_mdt() would create an mdt_data record for the first mdt encountered in the poll results, and then modify it for each subsequent mdt found with that number. This then meant that those mdt's did not appear in the list built by_find_all_fs(). This change results in each mdt having a record in mdt_data. The same logic applies to the _match_oststat() and _update_ost, except that the impact of the bug was inaccurate OST counts for each filesystem.