You are not logged in.
I have a RAID 1 mirror setup with 2 external USB drives. How do I configure Arch to assemble the RAID and mount the drives when they are powered up.
Right now, here's what I do:
1. Power on the drives.
2. Determine the device files
fdisk -l | grep raid
/dev/sdc1 1 60801 488384001 fd Linux raid autodetect
/dev/sdd1 1 60801 488384001 fd Linux raid autodetect3. Assemble the array
mdadm --assemble /dev/md0 /dev/sdc1 /dev/sdd14. Mount the array
mount /dev/md0 /mnt/md0
I tried using UDEV rules to create specific device files. However, the mdadm utility complains that the files don't have valid superblock. So mdadm only works with the actual device file as listed above.
Any ideas?
Offline
You're doing step number 3 wrong.
Offline
To have a raid 1 array requires three drives. What you have outlined is a raid0 array with two drives.
To cause that to automount use /etc/rc.local wherein you enter the assemble command and the mount -t ext3 /mnt/md0 /mnt/md command.
Works like a charm for raid0.
My ailment? Lackatesla!
Tesla fails smog test..no gas!
Favorite song...Tesla On My Mind....
Offline
To have a raid 1 array requires three drives. What you have outlined is a raid0 array with two drives.
To cause that to automount use /etc/rc.local wherein you enter the assemble command and the mount -t ext3 /mnt/md0 /mnt/md command.
Works like a charm for raid0.
Nope. Raid 1 is a mirror array with at least 2 drives.
Offline
I stand corrected. Thank you. I recommend the /etc/rc.local setup for your scheme.
My ailment? Lackatesla!
Tesla fails smog test..no gas!
Favorite song...Tesla On My Mind....
Offline
Also, one could simply add the scheme to mdadm.conf, then mount the device (/dev/md0) using fstab. Easy peasy, no rc.local involved.
Offline