Quote:
Originally Posted by
ukatru
We have a filesystem which contains 8 hard disks but i am facing disk I/O issue becuase data is not spreading across all the disks.Is there any way i can check how data is spreading and any parameter we need to change to spread ata across all disks.
OS--AIX 5.3
Spreading of data across several (up to 1024 depending on VG type) hdisk devices can be done by creating Logical Volumes LV with an inter policy of maximum (lslv <yourlv>). The LV's upper bound needs to go along with the number of disks you use.
In case your LV was initially set up with an inter policy of minimum you could change the LV settings with
# chlv -ex <yourlv>
followed by a reorgainisation of the LV or Volume Group VG.
# reorgvg <yourvg> <yourlv>
You need free Physical Partitions PP in you VG to be able to reorg though. Mind that reorganising LV/VG that are mirrored over several storage systems might lead to copies being spread over those storage boxes in a way that makes the LVM mirror less reliable.
(In case you don't want to use the commandline you can use the AIX System Managment Interface Tool SMIT with the command as a fastpath e.g.
# smitty chlv
to access the chlv menu. )
Two more hints on sensibly using LV
- AIX uses its LVs in the order in which they are created. I.e. it uses the filesystems that are created in theses LVs in this order. Therefore it may make sense to create different LV on different disks. You can control where an LV is placed with the mklv command: Creating an 4PP LV on hdisk3 hdisk4 hdisk2 hdisk1 would make AIX use the LV/FS in this order. Creating LV without telling LVM where to place it would lead to all LV (with an inter policy of maximum) being created in the order hdisk1 hdisk2 hdisk3 hdisk4. Such a design leads to hdisk1 being more utilised than the other hdisks. I.e. you created a hot spot that way.
- It makes sense to not place LV with a high I/O on the same physical disks. E.g. keep loging LV on different physical disks. Use migratepv to move LV from one disk to another (of the same VG).
# migratepv -l <yourlv> <fromdisk> <todisk>
Mind that spreading the LV over several disks was meant originally to spread data over physical disks. In case you use SAN LUNs those virtual disks might already be placed on several real disks making the inter policy superfluous.
To hype the LVM performance to the max you would then use stripe sets on several disks but that can be done during inital FS setup only, is more difficult to maintain/update and therefore is a different cattle of fish.