Software RAID5 with 2tb drives

Installing, Configuring, Troubleshooting server daemons such as Web and Mail
nosebreaker
Posts: 72
Joined: 2010/08/09 16:10:26

Re: Software RAID5 with 2tb drives

Post by nosebreaker » 2011/03/31 01:24:16

I added the hdparm -B 255 /dev/sda command to my startup, along with that script to tune the HDD's. Seems to work for now, but I was hoping for something better. That is apparently new firmware for the drive, I'll try that as well.

User avatar
AlanBartlett
Forum Moderator
Posts: 9345
Joined: 2007/10/22 11:30:09
Location: ~/Earth/UK/England/Suffolk
Contact:

Re: Software RAID5 with 2tb drives

Post by AlanBartlett » 2011/03/31 01:36:19

I am surprised that [i]APM[/i] is even active on your system.

I would expect to see the following --

[code]
[b][ajb@Build32R5 ~]$ /sbin/chkconfig --list | grep -iE 'apm|acpi'
acpid 0:off 1:off 2:on 3:on 4:on 5:on 6:off
apmd 0:off 1:off 2:off 3:off 4:off 5:off 6:off[/b]
[/code]

nosebreaker
Posts: 72
Joined: 2010/08/09 16:10:26

Re: Software RAID5 with 2tb drives (update)

Post by nosebreaker » 2011/11/23 16:59:00

I just checked using your example, and apm is active!

For an update, I added 3 more 2tb drives into my array (same brand, same specs, but the "green" label drives instead). I basically followed this guide:
http://allintech.info/2008/06/mdadm-growing-raid5-array-ubuntu/

Basically you create new partitions on the drive the same size as the others, mark them as type raid, then add them into the array, grow the filesystem, then finally resize the filesystem to use the new space.

I did not have to unmount the filesystem, resize2fs now works with online drives. It took about 50 hours to grow the filesystem (due to its large size), and apparently about 16 hours to resize2fs. Now I have 6 2tb drives in total, for a total usable space of 9.3TB. resize2fs did see them as 4K block sizes.

When it was done, read speeds were still ~160MB/s as before, but write speeds were abysmally slow (12.5MB/s). I edited the tune_raid.sh script to turn off apm on these new drives, but it looks like they don't support this command (they give an error only on the new drives). To get proper write speeds all I had to do was reboot the box, and then read speeds also went up. Just re-running the tune_raid.sh didn't seem to help for some reason.

Now with 6 drives in raid5 I get:
Read speed: 330MB/s
Write speed: 125MB/s

Post Reply