[CentOS] iostat a partition

Thu Feb 19 17:27:25 UTC 2015
Tim Dunphy <bluethundr at gmail.com>

Hey guys,

 I need to use iostat to diagnose a disk latency problem we think we may be
having.

 So if I have this disk partition:


[root at uszmpdblp010la mysql]# df -h /mysql
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/MysqlVG-MysqlVol
                      9.9G  1.1G  8.4G  11% /mysql


And I want to correlate that to the output of fdisk -l, so that I can feed
the disk partition I want to iostat, how would I go about that?

Here is my output from fdisk -l

[root at uszmpdblp010la mysql]# fdisk -l

Disk /dev/cciss/c0d0: 146.7 GB, 146778685440 bytes
255 heads, 32 sectors/track, 35132 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d0p1   *           1         120      488281   83  Linux
Partition 1 does not end on cylinder boundary.
/dev/cciss/c0d0p2             121       35131   142841947+  8e  Linux LVM
Partition 2 does not end on cylinder boundary.

Disk /dev/cciss/c0d1: 1199.8 GB, 1199865640960 bytes
255 heads, 32 sectors/track, 287192 cylinders
Units = cylinders of 8160 * 512 = 4177920 bytes

           Device Boot      Start         End      Blocks   Id  System
/dev/cciss/c0d1p1               1      287192  1171743344   8e  Linux LVM

Disk /dev/dm-0: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-3 doesn't contain a valid partition table

Disk /dev/dm-4: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-4 doesn't contain a valid partition table

Disk /dev/dm-5: 6442 MB, 6442450944 bytes
255 heads, 63 sectors/track, 783 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-5 doesn't contain a valid partition table

Disk /dev/dm-6: 17.1 GB, 17179869184 bytes
255 heads, 63 sectors/track, 2088 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-6 doesn't contain a valid partition table


Thanks,
Tim

-- 
GPG me!!

gpg --keyserver pool.sks-keyservers.net --recv-keys F186197B