Install and Use Pt-ioprofile

Source: Internet
Author: User
Tags install perl percona

Pt-ioprofile is a percona performance analysis tool that allows you to view process output, input, and print some table files and active Io files. Pt-ioprofile is a read-only tool, so there is no risk for data. Many of your friends have no instructions on installing Pt-ioprofile on the Internet. ^. ^

The following describes how to install Pt-ioprofile:

#!/bin/bashtoolkit(){version=$(cat /etc/redhat-release | awk ‘{print $3}‘ | awk -F ‘.‘ ‘{print $1}‘)if [ $version -eq 6 ]then   rpm -ivh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmelse   rpm -ivh http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpmfiyum install perl-IO-Socket-SSL perl-DBD-MySQL perl-Time-HiRes -ywget http://www.percona.com/downloads/percona-toolkit/LATEST/RPM/percona-toolkit-2.2.11-1.noarch.rpmrpm -ivh percona-toolkit-2.2.11-1.noarch.rpm}toolkit

If the following error is reported during installation

Error: Cannot retrieve metalink for repository: epel. Please verify its path and try againerror: Failed dependencies:        perl(DBI) >= 1.13 is needed by percona-toolkit-2.2.11-1.noarch        perl(DBD::mysql) >= 1.0 is needed by percona-toolkit-2.2.11-1.noarch        perl(Time::HiRes) is needed by percona-toolkit-2.2.11-1.noarch        perl(IO::Socket::SSL) is needed by percona-toolkit-2.2.11-1.noarch

The reason is that after rpm-uvh has an epel extension, yum cannot be installed. The solution is to edit/etc/yum. repos. d/epel. repo: comment out the basic recovery and image address,

# Change baseurlmirrorlist to baseurl # upload list

Run the script to install it.
See http://www.cnblogs.com/cenalulu/archive/2013/04/12/3016714.html

See http://www.percona.com/doc/percona-toolkit/2.0/pt-ioprofile.html

Install and Use Pt-ioprofile

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.