how do i check i/o in server?

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat how do i check i/o in server?
# 1  
Old 04-08-2010
how do i check i/o in server?

Hello, I am using linux OS. I want to check I/0 performance and CPU load on the server. CPU load can be seen by using TOP command.

How do i check the I/O performance? I want to see which file system is hitting more I/O wait.. How do i see this...

I tried to use iostat?

Quote:
Linux 2.6.9-78.0.13.ELlargesmp (dtdir900 04/08/2010

avg-cpu: %user %nice %sys %iowait %idle
1.20 0.00 0.23 0.31 98.26

Device: tps Blk_read/s Blk_wrtn/s Blk_read Blk_wrtn
cciss/c0d0 3.48 10.53 157.44 147162613 2200819507
cciss/c0d0p1 0.00 0.00 0.00 6138 398
cciss/c0d0p2 3.48 10.52 157.44 147095915 2200819109
cciss/c0d1 0.00 0.04 0.04 627956 608480
cciss/c0d1p1 0.00 0.04 0.04 566972 608480
sda 4.10 275.53 204.92 3851609404 2864467310
sda3 4.10 275.53 204.92 3851608036 2864467310
sdb 2.72 155.63 8.16 2175572408 114112354
sdb3 2.72 155.63 8.16 2175571040 114112354
sdc 9.07 123.96 46.78 1732853508 653883186
sdc3 9.07 123.96 46.78 1732852140 653883186
sdd 8.72 54.53 39.57 762219102 553174900
sdd3 8.72 54.53 39.57 762217734 553174900
sde 5.22 84.08 19.53 1175303442 273033422
sde3 5.22 84.08 19.53 1175302074 273033422
sdf 1.77 151.81 154.67 2122151621 2162138679
sdf3 1.77 151.81 154.67 2122150253 2162138679
sdg 12.64 107.89 78.11 1508234366 1091816162
sdg3 12.64 107.89 78.11 1508232998 1091816162

Above first column is device name? if so, then how can i map the above one with below file system?

Quote:
dtdir900 *xyz899-/home/oracle
>df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/systemvg-rootvol
9.7G 6.3G 2.9G 69% /
tmpfs 4.0K 0 4.0K 0% /dev/vx
tmpfs 4.0K 0 4.0K 0% /dev/vx
/dev/cciss/c0d0p1 251M 24M 215M 10% /boot
none 7.9G 0 7.9G 0% /dev/shm
/dev/mapper/systemvg-oravol
20G 4.6G 14G 25% /ora
/dev/mapper/systemvg-tmpvol
4.9G 66M 4.6G 2% /tmp
/dev/mapper/systemvg-workvol
97G 58G 34G 64% /work
/dev/vx/dsk/datadg/data01vol
59G 29G 29G 51% /data01
/dev/vx/dsk/datadg/data02vol
59G 24G 33G 43% /data02
/dev/vx/dsk/datadg/data03vol
59G 36G 22G 63% /data03
/dev/vx/dsk/datadg/data04vol
59G 25G 33G 43% /data04
/dev/vx/dsk/datadg/data05vol
59G 30G 28G 52% /data05
/dev/vx/dsk/datadg/data06vol
59G 37G 22G 63% /data06
/dev/vx/dsk/datadg/data07vol
59G 30G 27G 53% /data07
/dev/vx/dsk/datadg/data08vol
59G 47G 12G 80% /data08
/dev/vx/dsk/datadg/data09vol
I tried with sar command. But it is not giving iowait with file system...

Quote:
>sar -u 2 20
Linux 2.6.9-78.0.13.ELlargesmp (itil399) 04/08/2010

04:37:58 PM CPU %user %nice %system %iowait %idle
04:38:00 PM all 0.19 0.00 0.12 0.03 99.66
04:38:02 PM all 0.34 0.00 0.28 0.34 99.03
04:38:04 PM all 0.09 0.00 0.16 0.22 99.53
04:38:06 PM all 0.25 0.00 0.12 0.09 99.53

Any help is appreciated.
# 2  
Old 04-08-2010
does your distribution include iotop? you can run iostat in repeat mode.
# 3  
Old 04-09-2010
Native command which can be used for it for RedHat is vmstat.

It will provide you enough details about what's going on with your system (help to define performance problems as well). However output won't be as 'nice' as one from top with % numbers and it's not as specialized as iostat

I strongly advice to read man page - let us know if you have any questions about it.

Going back to iostat - it's very powerful tool.
As you are using RAID - you need to understand difference between naming conventions. Eg:
cciss/c0d0p1 should be extended to /dev/cciss/c0d0p1

cX == controler number
dX == disk number
pX == partition number

You can read about it more eg. here: HP Smart Array CCISS driver

On top of it you are using LVM. To get more information about your devices you can use commands like:
vgdisplay (you will see volume groups)
lvdisplay (you will see logical volumes)
pvdisplay (you will see phisical volumes - which you probably want to get at this moment).

Regards,
-Artur.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Script to check server-name and come out

Hello, I am not efficient in script, so need some help to create a small script. I have file, which have list of all IPs. All those IPs can be connected from a gateway server with "sudo ssh 10.63.xx.xx". We do not have reverse lookup for IPs, so I want script to login to each server, return... (1 Reply)
Discussion started by: solaris_1977
1 Replies

2. Red Hat

How to check LDEV in server?

Hi , There is one task to provide 50 GB space to the disk group ORABACK and Storage team have confirmed saying allocated below LDEV with 50 GB 03:90. How to check LDEV with 50 GB is created in server ?Could you please guide me ? $ cat /etc/redhat-release Red Hat Enterprise Linux Server... (6 Replies)
Discussion started by: Maddy123
6 Replies

3. Shell Programming and Scripting

Check fastest server and using it

hello we have upload some data in 15 servers in usa asia ... i consider to add new feature , script can detect download speed between localhost and destination and use fastest server, i have cut this part from a script which have this feature, download a xx MB file from all its source and... (0 Replies)
Discussion started by: nimafire
0 Replies

4. Shell Programming and Scripting

Linux Server Check

Hi, Is there a way to check linux server is up or not from my desktop (windows 7)? from the command prompt or powershell script. I have about 100 servers which I have to check daily..right now, i ssh to terminal with my login to verify. Thanks, vasu (2 Replies)
Discussion started by: myguess21
2 Replies

5. Shell Programming and Scripting

to check if a remote server is up

I need to check if a remote server is up before i send a file to it through FTP. I thought of using "ping" command to check it. But the problem is, my script needs to run from 2 different servers, one is Solaris and other is HP-UX. And ping works in different way in each of them when I do -... (3 Replies)
Discussion started by: Vidhyaprakash
3 Replies

6. Shell Programming and Scripting

check for file in another server

Hi, I want to check for existence of a file in another server. Is it possible to use if loop and check for the file existence after connecting via ftp. After connecting via ftp in the script if I use if command it is throwing an error saying invalid command.if command is also not there in... (1 Reply)
Discussion started by: ashwin3086
1 Replies

7. UNIX for Dummies Questions & Answers

How to check if the server is on a Cluster

Hi im connecting to a datacenter remotely. is there a command to know if the server is on a cluster? i want to know the command to use in these OS(hp-ux,solaris,linux) Thanks (6 Replies)
Discussion started by: jinslick25
6 Replies

8. Shell Programming and Scripting

Check the size of the file on different server

Hello, I have two servers A and B, My script is written on Server A. I am picking up the file say "abc.txt" from Server B using sftp command and putting it in a directory at Server A. Now the catch is, If the file size of "abc.txt" is greater thn the available size on Server A, thn an email... (5 Replies)
Discussion started by: Prashant Jain
5 Replies

9. Shell Programming and Scripting

Check Time/Date on a server

I have two servers which are not in sync. I need to write a script that checks the time on the corresponding server and another script to call the above script on both the servers simulataneously to check if there is a time difference. Can anyone provide me with such scripts as I am new to... (3 Replies)
Discussion started by: ravneet123
3 Replies

10. Cybersecurity

check ports on server

Hi All, I've been using this to verify if ports is open on a server. For example I would like to check port 5887, "telnet ip.of.server 5887" using on dos. If there's response on it then I can say it's open, if not then it's close. Is that assumption accurate? Thanks for any comments you... (4 Replies)
Discussion started by: itik
4 Replies
Login or Register to Ask a Question