Print this page
8074 need to add FMA event for SSD wearout
*** 425,434 ****
--- 425,442 ----
if (nvlist_lookup_boolean_value(fault, FM_SUSPECT_RETIRE,
&retire) == 0 && retire == 0)
continue;
+ if (fmd_nvl_class_match(hdl, fault,
+ "fault.io.disk.ssm-wearout") &&
+ fmd_prop_get_int32(hdl, "ssm_wearout_skip_retire") ==
+ FMD_B_TRUE) {
+ fmd_hdl_debug(hdl, "zfs-retire: ignoring SSM fault");
+ continue;
+ }
+
/*
* While we subscribe to fault.fs.zfs.*, we only take action
* for faults targeting a specific vdev (open failure or SERD
* failure). We also subscribe to fault.io.* events, so that
* faulty disks will be faulted in the ZFS configuration.
*** 559,568 ****
--- 567,577 ----
NULL, /* fmdo_gc */
};
static const fmd_prop_t fmd_props[] = {
{ "spare_on_remove", FMD_TYPE_BOOL, "true" },
+ { "ssm_wearout_skip_retire", FMD_TYPE_BOOL, "true"},
{ NULL, 0, NULL }
};
static const fmd_hdl_info_t fmd_info = {
"ZFS Retire Agent", "1.0", &fmd_ops, fmd_props