Sponsored Content
Full Discussion: Detecting Harddrive Errors
Operating Systems Solaris Detecting Harddrive Errors Post 302213173 by sunsysadm2003 on Wednesday 9th of July 2008 11:24:04 AM
Old 07-09-2008
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.
sunsysadm2003
 

10 More Discussions You Might Find Interesting

1. Filesystems, Disks and Memory

Supplemental harddrive.

Am planning on adding a secodary SCSI hardrive to the existing 20gb drive., that I have. The old drive has Linux on it. Once, the new drive is added, I am planning on having windows on it. Firstly, could this be done ? Has anyone build a system with a similar configuration ? What is requried,... (1 Reply)
Discussion started by: matvrix
1 Replies

2. Programming

detecting errors in writing to syslog

I am calling "void syslog(int, const char *, ...);" from my c++ application (definition taken from man page for syslog.h". Is there any way to detect that the syslog is not working, so that I can re-direct logging information to stderr? Thanks in advance. David (2 Replies)
Discussion started by: dmirza
2 Replies

3. Linux

Mount a harddrive in linux.

Hey people i'm very new to linux. I just put a extra 200 gig maxtor HD in my computer. Linux can tell it's there...but it says it cant mount it. How do i mount it manually? thanks, John (2 Replies)
Discussion started by: RKJV
2 Replies

4. UNIX for Dummies Questions & Answers

Copying a file to my harddrive

I'm loged on to a unix sever over the internet and i want to copy a file from there to my harddrive. How would i go about this because cp does not seem to work. (1 Reply)
Discussion started by: zoolz
1 Replies

5. UNIX for Dummies Questions & Answers

Adding an additional harddrive in solaris 9

Hello, I have a system which a new harddrive was installed for additional space. I now need to mount the drive and transfer data from /home to the new drive with a mount point named /home. How do I go about doing this? Thanks in advance. (5 Replies)
Discussion started by: GLJ@USC
5 Replies

6. UNIX for Dummies Questions & Answers

booting from which harddrive

Hi, both of my /dev/hda and my /dev/hdb contain /boot partition. I'm wondering how to tell which harddrive's /boot is actually being read? Thanks (2 Replies)
Discussion started by: onthetopo
2 Replies

7. Solaris

installing second harddrive

This is my first post i am a solaris newbie. I just purchased my first sun system. It is a sunblade 1000. It had a fcal 36gb hdd in it already so i purchased a secondary 36gb fcal harddrive to increase my harddrive space however, how do i get it to detect the second harddrive? I have tried boot -r... (2 Replies)
Discussion started by: crzywut
2 Replies

8. Shell Programming and Scripting

Detecting hard or soft disk errors in Solaris

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... (1 Reply)
Discussion started by: sunsysadm2003
1 Replies

9. UNIX for Dummies Questions & Answers

How to copy MBR from old harddrive to new harddrive?

How do I copy the master boot record from one harddrive to another or how to install just the MBR? (7 Replies)
Discussion started by: shorty
7 Replies

10. Shell Programming and Scripting

need help in detecting errors

Hi All , I need a script to find errors in a particular and in a particular path Actually in my logs i`ve so many kinds of errors(i can even say as 100 types also).if i run the script i need to know the error (some errors can aviod ) so finally the script o/p should be a numeric... (3 Replies)
Discussion started by: radha254
3 Replies
create_sysfile(1M)														create_sysfile(1M)

NAME
create_sysfile - create a kernel system file SYNOPSIS
[outfile] DESCRIPTION
The command creates a kernel configuration description file (system file) which can be used as input to the commands kconfig(1M) or mk_ker- nel(1M). The system file that is generated is of type version 1 (see system(4)) and is built according to the drivers required by the cur- rent system hardware. This command is intended for use during the install process when the system does not have a system file. The command uses the ioscan(1M) command to scan the system hardware and adds all drivers it can identify to run the existing hardware. If outfile is specified, the resulting system file is sent to outfile. If outfile is not specified, the output is placed in the file RETURN VALUE
Upon completion, returns with one of the following exit values: 0 Successful. 1 One or more errors were reported. DIAGNOSTICS
Errors are sent to stderr. Most of the diagnostic messages from are self-explanatory. Errors cause to halt immediately. WARNINGS
is obsolete and will be removed in a future version of HP-UX. AUTHOR
was developed by HP. SEE ALSO
ioscan(1M), kconfig(1M), mk_kernel(1M), system(4), kconfig(5). create_sysfile(1M)
All times are GMT -4. The time now is 02:15 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy