Create a RAID-1 of the boot disk and a new disk
Hello,
I had one disk before (/dev/sda) with two partitions, one swap and one ext3 where all the files are located. Now I've added a second disk (/dev/sdb) and want to create a RAID-1 disk of the two disks (based on the current /dev/sda disk). How can I do that? I've installed mdadm but I can't figure out how to create the RAID-1 since I'm running the system on /dev/sda. Best Regards Oskar R |
partition your /dev/sdb similar to /dev/sda. I personally would use fdisk
Code:
fdisk /dev/sdb Code:
sfdisk -d /dev/sda1 | sfdisk /dev/sdb1 Code:
mdadm --create --verbose /dev/md0 --level=1 --raid-devices=2 /dev/sda1 Code:
mdadm /dev/md0 --add /dev/sdb1 Code:
cat /proc/mdstat Code:
man mdadm You can also google up this question as there are tons of articles online that will explain this |
OK, I'll try that, however, I created /dev/md0 and /dev/md1 now by misstake when I tried another guide and now I can't remove them... They are (or should be) based on /dev/sdb1 and /dev/sdb2. How can I remove /dev/md0 and /dev/md1 now to be able to continue without reinstalling the system again?
|
try
Code:
mdadm /dev/md0 --manage --stop |
All times are GMT -5. The time now is 12:39 AM. |