The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Detecting hard or soft disk errors in Solaris sunsysadm2003 Shell Programming and Scripting 1 07-09-2008 11:45 AM
installing second harddrive crzywut SUN Solaris 2 04-13-2008 07:06 AM
How to copy MBR from old harddrive to new harddrive? shorty UNIX for Dummies Questions & Answers 5 02-01-2006 09:06 PM
detecting errors in writing to syslog dmirza High Level Programming 2 10-17-2005 06:24 PM
Supplemental harddrive. matvrix Filesystems, Disks and Memory 1 03-06-2005 01:04 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-09-2008
sunsysadm2003's Avatar
Registered User
 

Join Date: Oct 2007
Posts: 10
Stumble this Post!
Detecting Harddrive Errors

I am looking for some tips or suggestions in how to do the following.

1) From a Solaris server, I run the command iostat -En and receive output that is similiar to the following which shows your disks along with the cdrom/dvdrom:

c0t2d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: Maxtor 6E040L0 Revision: NAR61590 Serial No: E1FECWNE
Size: 41.11GB <41110142976 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c0t0d0 Soft Errors: 0 Hard Errors: 0 Transport Errors: 0
Model: WDC WD200BB-75DE Revision: 05.03E05 Serial No: WD-WMAFD1500835
Size: 20.00GB <20000000000 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 0
c0t1d0 Soft Errors: 2 Hard Errors: 0 Transport Errors: 1
Vendor: PIONEER Product: 12X DVD-ROM Revision: 1.16 Serial No:
Size: 0.00GB <0 bytes>
Media Error: 0 Device Not Ready: 0 No Device: 0 Recoverable: 0
Illegal Request: 2 Predictive Failure Analysis: 0

2) My question is this, how can I parse out the DVD-ROM drive and then with the two internal disks, I want to check the: "Soft Errors", "Hard Errors" and "Transport Error" fields for any number other than zero which would indicate a need for a fsck of the drive, drive replacement, etc.

3) If possible, I would also want to add the funtionality of excluding any SAN attached storage which may or may not be present as I am not concerned with the SAN drives.

Any help would be greatly appreciated.
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 07-10-2008
Registered User
 

Join Date: May 2008
Location: s'pore
Posts: 706
Stumble this Post!
iostat -En |grep -v c0t1d0 |grep Hard |grep -v 0
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 04:46 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0