It depends a lot on the situation.
The best way to recover data is usually to hook the drive(s) up to a computer running linux, reassemble the raid array (if it’s a raid volume), mount the xfs file system, and copy the data off like normal.
The specifics of how to do this and what other recovery options exist depend on your configuration.