Koozali.org: home of the SME Server

How to align RAID5 to 4k sector size of WD15EARDS harddisk?

smeHH

How to align RAID5 to 4k sector size of WD15EARDS harddisk?
« on: February 06, 2010, 04:11:36 PM »
Hi,
i have set up SME with three WD15EARS using RAID5 (with nospare option).
the first partitions on each harddisk (sda, sdb, sdc) are
sdx1 from sector 63 to sector 208.844
sdx2 from sector 208.845 to 2.930.272.064

For best write performance the start sector of each partition should be a straight multiple of 4.
e.g. sector 64 (iso. 63) for sdx1 and sector 208848 (iso. 208845) for sdx2.

Is there a convenient method to install SME manually (still with full RAID5 and LVM) ?

I know it should be possible to re-align partitions manually, but I guess with LVM and RAID on top it would be quite some effort and bear the risk of data loss.
Any suggestions would be welcom!


For future SME release I would like to ask developers to take care of 4k sectors...

Online Stefano

  • *
  • 10,894
  • +3/-0
Re: How to align RAID5 to 4k sector size of WD15EARDS harddisk?
« Reply #1 on: February 06, 2010, 04:23:07 PM »
Hi,

Hi, welcome here

Quote
i have set up SME with three WD15EARS using RAID5 (with nospare option).
the first partitions on each harddisk (sda, sdb, sdc) are
sdx1 from sector 63 to sector 208.844
sdx2 from sector 208.845 to 2.930.272.064

For best write performance the start sector of each partition should be a straight multiple of 4.
e.g. sector 64 (iso. 63) for sdx1 and sector 208848 (iso. 208845) for sdx2.

I think that the loss of performance (if present) is  negligible

Quote
Is there a convenient method to install SME manually (still with full RAID5 and LVM) ?

no

Quote
I know it should be possible to re-align partitions manually, but I guess with LVM and RAID on top it would be quite some effort and bear the risk of data loss.

exactly

Quote
Any suggestions would be welcom!

buy 2 small hds, install SME in raid1, then put your 3 big ones, create a raid5 array and mount it under /home/e-smith/files

in this way your users and ibays will reside on a big array..

search in the wiki, you should find something about it

Quote
For future SME release I would like to ask developers to take care of 4k sectors...

if you think this is a missing feature, open a NFR in bugzilla; anyway, I think that you would not see any difference between the two approach

my 2c