You can use the disk replace command to replace disks that are part of an aggregate without disrupting data service. You do this to swap out mismatched disks from a RAID group. Keeping your RAID groups homogenous helps optimize storage system performance.
You should already have an appropriate hot spare disk of the correct type, size, speed and checksum type installed in your storage system. This spare must be assigned to the same system and pool as the disk it will replace.