We just had a server with a failed hard disk, thanks to smartmon which sent a mail:
This email was generated by the smartd daemon running on: host name: hostN.rootaid.de DNS domain: rootaid.de NIS domain: [None] The following warning/error was logged by the smartd daemon: Device: /dev/ad6, not capable of SMART self-check Device info: XX3000XX001-1XX166, S/N:X1X0X1XX, WWN:5-000X50-04XXX9347, FW:CC43, 3.00 TB For details see host's SYSLOG. You can also use the smartctl utility for further investigation. No additional email messages about this problem will be sent.
Ok, hey it’s Friday and… after my provider replaced the disk and booted the system we just have to tell
GEOM to use the new disk:
Mirror is degraded
root@host # gmirror status Name Status Components mirror/gm DEGRADED ad4 (ACTIVE)
Forget failed disks
root@host # gmirror forget gm0
root@host # gmirror status Name Status Components mirror/gm COMPLETE ad4 (ACTIVE)
Insert new disk drive into mirror
root@host # gmirror insert gm/dev/ad6
The RAID-1 is rebuilding!
root@host # gmirror status Name Status Components mirror/gm DEGRADED ad4 (ACTIVE) ad6 (SYNCHRONIZING, 0%)