Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I don't immediately understand why they would want to create a two-disk raid1 with a missing member and then add the 2nd member (sdc1) after, when you can do it all in a single step. Either way it will synch...
I think you can create a raid array with a missing unit, copy the data to the disk and see everything works well, then add the second disk to the array if there weren't any problems...
If you are configuring RAID on a pre-existing machine, you want to ensure that you don't loose your data, therefore it makes sense to create the raid set with one disk, copy the data and then add the second disk to the raid set.
But I would have thought that the initial install would be using /dev/sda rather than /dev/sdc
I have never had much luck with software raid personally and always prefer to use hardware raid where possible
Ahhh, could it be that this way you determine the direction of the sync? Always from existing --> added? You wouldn't need to manually copy and you wouldn't run the risk of the array "syncing" an empty disk over your precious data.
No, you cannot create an array with a mounted volume (to prevent accidental data loss)
Therefore if your machine has two drives, and you want to have a RAID 1 setup, you first create the raid on the unmounted (presumably empty) disk, then copy the data to the RAID disk, then change the fstab entries to use the raid set remount the / partition and add the original disk to the raid set.
I would always suggest trying this out on a testlan before doing this in a production environment (and always have a backup before you start)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.