Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to tune my NAS, running openfiler, and wondering why I'm getting relatively poor read performance from 4 WD RE3 drives in RAID 5.

When I run hdparm on the meta device I get the levels of performance I'd expect, drop to the volume and it's a third the speed !

Any one any idea why ? Is LVM that bad ?

[root@nas2 etc]# hdparm -t /dev/md0

 Timing buffered disk reads:  524 MB in  3.01 seconds = 174.04 MB/sec

[root@nas2 etc]# hdparm -t /dev/mapper/vg1-vol1

 Timing buffered disk reads:  200 MB in  3.01 seconds =  66.43 MB/sec
share|improve this question

No, LVM shouldn't perform that bad. Maybe your RAID striping doesn't mach LVM chunking? It's not enough to have LVM chunk size divided evenly by RAID chunk size. For starters you might want to look at this mailing list about aligning RAID and LVM.

And, as hdparm is not a performance tool, I might suggest any testing to be done with e.g. Bonnie++.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .