My 1st Attempt at Software RAID on Debian
OK - I decided to play around today and re-try this software RAID as a (RAID1) configuration and here is what I did.
I am using two identical 250 GB S-ATA drives from Western Digital but obviously I lose one to mirroring in a RAID1 array. I decided to keep my swap space outside of the RAID1 array since mostly all test show that swap perfroms better alone than in a RAID configuration. Code:
Disk /dev/sda: 250.0 GB, 250059350016 bytes Then I made a RAID partition for sda2 and sdb2 and made them both bootable. ( I have no idea if making them both bootable was the right thing to do but it seemed logical at the time) So when it asked me to select the two partitions for RAID1, I selected sda2 and sdb2 for a RAID1 mirror and left sda1 and sdb1 as the 1GB total swap space on the system. Then I formated the RAID1 array as ext3 and set a mount point of / to it and now I am posting from her. Did I do this correctly? |
what is the problem then?
as long as it works, all is fine. my system also complains about the partition table, but as I run lvm ontop of my /dev/md1 I don't care. |
There is no problem. I have never done this before and I am simply asking for someone to review my steps and actions and let me know if I messed up. I RAID is obviously not something you can test unless you know a way to magically make a drive fail so I can make sure the mirror works.
|
"RAID is obviously not something you can test unless you know a way to magically make a drive fail so I can make sure the mirror works."
What if you unplug it before you boot? |
Quote:
Code:
cwilliams@maverick:~$ su |
well, you've checked that your raid1 is operational by viewing /proc/mdstat and your system obviously boots.
to verify that hdd 2 will boot the best way ist to unplug disk 1 and put disk 2 in its place. a 2nd method would be to compare the first few sectors of the 2 disks which is where your bootmanager resides. for example: Code:
dd if=/dev/hda of=/tmp/file1.txt bs=2048 count=10 but the only REAL test is to actually unplug the disks. better safe than sorry ! |
Thanks! Seems to be working.
|
All times are GMT -5. The time now is 10:03 AM. |