iostat output
We have complaints from the users that there are read write issues in our VPS server. This is the sample output of the iostat command.
Device: rrqm/s wrqm/s r/s w/s rMB/s wMB/s avgrq-sz avgqu-sz await svctm %util sda 0.14 6.86 0.54 2.48 0.01 0.04 32.02 0.63 206.76 6.24 1.89 sdb 56.84 41.72 73.37 133.98 1.56 1.52 30.42 3.25 15.66 1.65 34.19 dm-0 0.00 0.00 0.00 0.00 0.00 0.00 9.05 0.00 25.89 24.28 0.00 where dm-0 indicated an LVM partition in the server. Each VPS server is created as a separate LVM. There is a LVM partition which always shows more than 90% disk usage. dm-21 0.00 0.00 416.00 0.00 8.25 0.00 40.60 15.53 36.72 2.35 97.60 Is there any way to find out the details of this dm-21? I want to know which VPS is causing the problem. The lvdisplay command does not show id dm-21. So I am unable to track the exact VPS causing the problem. Any ideas? |
I don't really know if this'll work, but try "cat /sys/class/block/dm-21/dev", then "dmsetup ls" to see what LV it is.
An example Code:
[root@athlonz devices]# cd /sys/class/block/ |
Thank you for the details.. it really helped. Can you please let me know what does (253, 3) indicate? I checked the man pages and could not find any helping details.
|
(253,3) are the major and minor number of the fourth LVM Logical Volume that you created.
The explanation that I've seen is that the major number is associated with a software driver for a certain type of device and the minor numbers represent the actual devices under it. (If you Google "linux major device numbers" you can see quite a few articles trying to explain it. It's a simple concept, but few of these articles give a simple explanation, and I can't either...) If you cat /proc/devices you can see under the block devices (disks are block devices) that '8' is 'sd' (scsi device) and '253' is device-mapper (which LVM uses -- see the Wikipedia article on "device mapper"). Your real /dev/sda device is probably 8,0; /dev/sda1 is probably 8,1; etc. While your LVM logical volumes are 253,nn. If you had a hardware RAID array controller, you'd have a different major number and different names for the devices.) Here is a display from a simple home x86 machine with IDE drives, software RAID (MD devices), and LVM2. You can see the major and minor numbers with an 'ls -l'. Code:
[root@athlonz ~]# ls -l /dev/sd* Code:
[root@athlonz ~]# ls -l /dev/root |
Hello tommylovell,
Thanx for the explanation and the tips to get more details. I managed to use the minor number details and find out the exact VPS :-). thanx a lot again :-) |
All times are GMT -5. The time now is 11:35 PM. |