Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I attached two identical hard drives to my linux machine. Then using gparted I formated the first 1024 mb at the beginning of each drive as linux swap space.

Then I went into system->administration->disk utility. In there I went to file->create->RAID array. I selected the remaining space in each of the two identical hard drives and created a striped raid array.

After the array was created, a warning message appeared. It said "The partition is misaligned by 522240 bytes. This may result in very poor performance. Repartitioning is suggested."

What do I do now? As far as I can tell, the partitions are identical.

share|improve this question
    
What made you decide to put swap space on your RAID0 disks? This sounds counter-intuitive if you want good stripe performance... and assumes you actually need swap in the first place which many systems today do NOT. –  hotei Aug 23 '10 at 1:31
add comment

2 Answers

I found the solution. Apparently the gui does something wrong when it creates the raid array. The way I did it was to format the partitions in gparted. Then I went into the terminal and typed the following:

mdadm --create /dev/md0 --chunk=4 --level=0 --raid-devices=2 /dev/sda1 /dev/sdb1

I used this as a guide: http://ubuntuforums.org/showthread.php?t=408461

When I went back to the gui it didn't have the warning message anymore.

share|improve this answer
add comment

I believe it's saying that the partition is not aligned on a cylinder boundary. fdisk -l should show it, but I'm not sure.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.