When replacing an errored metadevice component, use the metareplace(1M) command.
A replacement slice (or disk) must be available. This could be an existing device that is not in use, or a new device that you have added to the diskset.
You also can return to service drives that have sustained transient errors (for example, as a result of a chassis power failure) by using the metareplace -e command.