A mirrored pool exists so one SSD can die without taking your appdata with it. When one does, the repair is short and does not involve the command line.
First check that the pool really is redundant. Open the pool on the Main tab and look at Balance Status for BTRFS or the ZFS pool status. You want a profile like RAID 1. The new disk must be the same size or larger than the one it replaces.
- Stop the array under Array Operation.
- If your hardware cannot hot-swap, take the old disk out and put the new one in.
- Refresh the Main tab, then assign the new disk to the old slot.
- Start the array and watch the rebuild in the web UI.
The docs give about 3 to 6 hours for a 4 TB SSD in RAID 1 as an example. Plan for the pool to be busy during that time.
Caveat: this only works when the pool has redundancy. With a single-device pool there is nothing to rebuild from, so copy the data off first (the Mover or a plain copy to the array works) and set up the pool again.
Further reading: Unraid docs: Cache pools, replace a disk in a pool
Going deeper: Guide: your Unraid cache is full and Docker stopped, how to find out why and fix it