2 ms·
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/first /dev/second Strangely, I think it was exactly the same 3 years ago. At least I don't remember doi
by viraptor 16y ago
mdadm --create /dev/md0 --level=1 --raid-devices=2 /dev/first /dev/second
Strangely, I think it was exactly the same 3 years ago. At least I don't remember doing anything complicated then. Although I did go via /etc/raidtab and mkraid.
(I'm skipping over all the required apt-get / yum installs and creating the partitions with fdisk - this are of course standard simple dependencies)
Edit: just noticed that there was a link to the previous post... where the guy did exactly this. The rest of the post is formatting the partitions, installing needed software, configuring grub, etc. I see his point, but I'm not sure I agree with it. Part of the original title "... To Run RAID-1 When You Didn't Plan For That Originally" sums it up. If you know how to handle partitions and how to configure your system in general, raid is just a one line difference. If someone gave me a windows box, I'd probably spend just as much time clicking around trying to figure out how to manage disks :)
- skorgu 16y agoHe has the running / on /dev/first, he's migrating that to a degraded array of just /dev/second then bringing /dev/first in to complete the array.