LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   from which file does iostat -E reads? (https://www.linuxquestions.org/questions/linux-newbie-8/from-which-file-does-iostat-e-reads-852771/)

balakodoth 12-28-2010 04:03 AM

from which file does iostat -E reads?
 
Can anyone tell me from which file iostat -E command reads? iostat -E lists the device error details. which directory or file does Linux stores device error details ?

colucix 12-28-2010 04:11 AM

According to the iostat man page, the relevant files are:
  • /proc/stat contains system statistics.
  • /proc/partitions contains disk statistics (for pre 2.5 kernels that have been patched).
  • /proc/diskstats contains disks statistics (for post 2.5 kernels).
  • /sys contains statistics for block devices (post 2.5 kernels).

balakodoth 12-28-2010 04:43 AM

in solaris iostat -E command displays as below in solaris, but not sure from which directory it is reading this information. I checked the directories specified in man pages but i could get any data as below.

sd0 Soft Errors: 0 Hard Errors: 5 Transport Errors: 0
Vendor: TOSHIBA Product: DVD-ROM SD-C2612 Revision: 1011 Serial No: 04/17/02
Size: 18446744073.71GB <-1 bytes>
Media Error: 0 Device Not Ready: 5 No Device: 0 Recoverable: 0
Illegal Request: 0 Predictive Failure Analysis: 0
sd1 Soft Errors: 42 Hard Errors: 0 Transport Errors: 0
Vendor: LSILOGIC Product: 1030 IM IM Revision: 1000 Serial No:
Size: 73.40GB <73400057856 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 42 Predictive Failure Analysis: 0

colucix 12-28-2010 05:49 AM

Usually iostat translates system info in a human readable form. I don't know which are the relevant files in Solaris, anyway.


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