LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Enterprise (https://www.linuxquestions.org/questions/linux-enterprise-47/)
-   -   Will adding disks to vg help performance in a life system? (https://www.linuxquestions.org/questions/linux-enterprise-47/will-adding-disks-to-vg-help-performance-in-a-life-system-4175648228/)

marcellinus 02-13-2019 09:41 AM

Will adding disks to vg help performance in a life system?
 
Hello,

We have a large db server with lots of iowaits (100% busy) on the dbvg.
I was wondering if adding pv's to the dbvg will help.
Will LVM start distibuting the lv data to the new disks online?

Regards, Marcel

MensaWater 02-13-2019 11:54 AM

By default it doesn't redistribute existing extents. If your LV was created with striping it would balance but on a quick search it appears you can't change the existing linear (extents all on one PV) to striped. You could:
1) Backup everything in the filesystem(s) on the LV(s) now.
2) Unmount the filesystem(s) on the LV(s)
2) Blow away the LV(s)
3) vgextend the Volume Group to add the new disk (ideally same size as the existing)
4) Recreate the LVs using striping so it spreads across the 2 disks/PVs.
5) Recreate the filesystem(s) on the recreated LV(s)
6) Restore the backup to the recreated filesystem(s)

You don't say what kind of storage you're using. Are these internal disks? Are you using a hardware RAID controller or software (metadisk) RAID? SAN disks?

It may be the iowait you're seeing is because of poor performance via an internal RAID or SAN adapter and if so adding another disk or LUN to the same adapter might not help.

If you only have 1 physical disk (or 2 physical disks with LV striping) the failure of a single disk loses all your data. Hopefully you're doing regular backups.

pan64 02-13-2019 12:25 PM

probably helps: https://www.ibm.com/support/knowledg...sk_io_perf.htm

marcellinus 02-14-2019 03:07 AM

My storage is coming from an EMC Compellent (SSD pinned now) , via HBA's connected to an ESX server, provided as luns to a VM. 3 luns of 2 TB each
Rhel 7.6
Maybe it is the way the luns on VMWare were created. I will have a talk with the VM admin.

Thanks for the info .

syg00 02-14-2019 03:35 AM

Did you bother to search this ?. A simple search on "EMC compellent" (not latency or anything related), returned this as the very first hit.

MensaWater 02-14-2019 08:49 AM

Quote:

Originally Posted by pan64 (Post 5961573)

The mention of smitty in that suggests it is related to AIX rather than Linux. LVM on HP-UX and AIX are somewhat similar to the one on Linux but not exactly the same.

pan64 02-14-2019 12:08 PM

Quote:

Originally Posted by MensaWater (Post 5961943)
The mention of smitty in that suggests it is related to AIX rather than Linux. LVM on HP-UX and AIX are somewhat similar to the one on Linux but not exactly the same.

Yes, I know that. But actually there were some tips which could be used to find the reason. At least I thought that.


All times are GMT -5. The time now is 10:24 AM.