Now that we have mdadm ready, we can proceed to mount the first version: RAID1. RAID1 is the duplicate between disks where each disks are essentially a clone of one another. This mode of operations allow detachment on the fly.
Some OS like Debian will perform automated mounting upon connection. Hence, you need to determine the pathing for the destination. Under normal circumstances, the pathing should be something like:
/dev/md/<name>
Also, you can use lsblk
to determine the associated mounted disk(s) and its associated partition to the filesystem.
In an unmounted situation, you can mount the drive using the following command:
$ mdadm --assemble --run /dev/md/<name> /dev/<partition>
Example:
$ mdadm --assemble --run /dev/md/m9 /dev/sdc3
Once you're done, you may proceed to use the mounted location in /dev/md/<name>
. This can be anything depending on your partition layering, which is outside of this scope. One simple, non-lvm and non-luks mounting example would be:
$ mount /dev/md/m9 /mnt
That's all for mounting RAID 1 disk.