Version 1.02.141 -
===============================
+ Reset array with dead rimage devices once raid gets in sync.
Drop unneeded --config option from raid dmeventd plugin.
dm_get_status_raid() handle better some incosistent md statuses.
Accept truncated files in calls to dm_stats_update_regions_from_fd().
* This is simply the way the kernel works...
*/
if (!strcmp(status->sync_action, "idle") &&
- strchr(status->dev_health, 'a')) {
+ (status->dev_health[0] == 'a') &&
+ (status->insync_regions < status->total_regions)) {
log_error("Primary sources for new RAID, %s, have failed.",
device);
dead = 1; /* run it through LVM repair */
}
} else {
state->failed = 0;
+ if (status->insync_regions == status->total_regions)
+ memset(&state->raid_devs, 0, sizeof(state->raid_devs));
log_info("%s array, %s, is %s in-sync.",
status->raid_type, device,
(status->insync_regions == status->total_regions) ? "now" : "not");