Sponsored Content
Top Forums Shell Programming and Scripting Detecting hard or soft disk errors in Solaris Post 302212856 by sunsysadm2003 on Tuesday 8th of July 2008 02:37:36 PM
Old 07-08-2008
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 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. UNIX for Dummies Questions & Answers

The hard disk at channel 2, target 1 had a soft error.

Hi there! I received the following error message The hard disk at channel 2, target 1 had a soft error. The output of a system check reveiled the following (see entry <2,1> ): SWXCR xcr0 error counters: RAID Array 200 Controller Family Information Utility V1.03... (1 Reply)
Discussion started by: Ivo
1 Replies

2. UNIX for Dummies Questions & Answers

Fomatting Solaris Hard Disk.

Hi Friends ! How long does it take to format a hard disk under Solaris ? Once the format starts, what data will be cleared or deleted first ? i.e whether the OS is cleared or all the data other than OS is cleared first ? Then, if the format starts and the power goes off, can i retrieve data?... (1 Reply)
Discussion started by: mrgubbala
1 Replies

3. Solaris

Replacing a hard disk (SVM) with a soft partition?

The following is the summarry:- 1) Four disks in server ie (c1t0d0. c1t1d0, c1t2d0, c1t3d0). c1t2d0 is the disk to be replaced. c1t0d0 and c1t2d0 are mirrors. c1t1d0 and c1t3d0 are mirrors. Metadb to be deleted is in c1t2d0s7 a) Mirror d35 has 2 submirrors d38 and d39 d38 is a stripe... (0 Replies)
Discussion started by: aji1729
0 Replies

4. Solaris

Solaris 8 - Removable hard disk

Hi Gurus, I have difficulty in configuring removable hard disk in Solaris 8. I have connected hard disk to machine but I do not know how to configure it. Kindly tell me, how should I configure it .. so that I can create a mount point on this and write files to them. Regards Srini (7 Replies)
Discussion started by: sri243
7 Replies

5. Linux

C++ Code to Access Linux Hard Disk Sectors (with a LoopBack Virtual Hard Disk)

Hi all, I'm kind of new to programming in Linux & c/c++. I'm currently writing a FileManager using Ubuntu Linux(10.10) for Learning Purposes. I've got started on this project by creating a loopback device to be used as my virtual hard disk. After creating the loop back hard disk and mounting it... (23 Replies)
Discussion started by: shen747
23 Replies

6. Solaris

Hard Errors on Disk Drive

Hi, What are the initial checks needs to be done while observing hard errors on one of the hard disk drive. Thanks, Babu. (1 Reply)
Discussion started by: lbreddy
1 Replies

7. Solaris

Hard disk resizing Solaris

Dear All, I have a task of resizing the Solaris Partitions. This server contains SVM. Kindly let me know the steps in resizing the partitions and precautions. Regards Rj (3 Replies)
Discussion started by: jegaraman
3 Replies

8. Solaris

solaris hard disk not detected

Dear all, I have a Sol 10 server. When I put df -h , it is showing the mount points of all file systems, but when I format the server it is showing the below output bash-3.00# format Searching for disks...done No disks found! Pl let me know what is the problem for this. ... (5 Replies)
Discussion started by: jegaraman
5 Replies

9. Solaris

Solaris with Soft Errors in XIV

Hi guys, I had a solaris box, with veritas controled disk. 1 disc is showing soft errors, how can I repair the soft errors? Please help. Cheers; (4 Replies)
Discussion started by: Mujakol
4 Replies

10. UNIX for Dummies Questions & Answers

How to use a old window hard disk on Solaris ??

Hi, How can i use a old window 200Gb IDE harddisk on Solaris8. At the Solaris 8 install utility, it could only detect 50Mb for space ! Is the format wrong ? Do i need to re-do the partition ? I am using a Sunblade150 with solaris8 Thank u for the help... (1 Reply)
Discussion started by: Snubber
1 Replies
HTML::FormHandler::Manual::Errors(3pm)			User Contributed Perl Documentation		    HTML::FormHandler::Manual::Errors(3pm)

NAME
HTML::FormHandler::Manual::Errors - FormHandler error methods VERSION
version 0.40013 SYNOPSIS
Manual Index Errors and error messages for HTML::FormHandler. DESCRIPTION
Errors are added to field or form objects by the field 'add_error' method or the form 'add_form_error' method. FormHandler will perform the 'add_error' for you for built-in validation or 'apply' actions. When performing your own validation in a validation method, you must do the 'add_error' yourself. Errors, along with 'input' and 'value' attributes, are collected in the FormHandler 'result' objects. A number of error retrieving methods are delegated to the field and form classes. The existence (or not) of errors determines whether or not the form has been 'validated'. Form methods errors Returns an array of localized error strings (both field and form errors): my @errors = $form->errors; has_errors Both 'form' errors and errors from the tree of subfields if( $form->has_errors ) { <do something> } form_errors, all_form_errors Returns an arrayref / array of error strings on the form (not including field errors). foreach my $err ( $self->all_form_errors ) { $output .= "<span class="error">$err</span>"; } has_form_errors Does the form have form_errors? add_form_error Add an error to the form which is not associated with a specific field. sub validate { my $self = shift; unless( <some condition> ) { $self->add_form_error('....'); } } push_form_errors Add a non-localized error to the form. Field methods The most common error method is probably 'add_error', which you use in the validation process. sub validate_foo { my ( $self, $field ) = @_; unless ( <some_condition> ) { $field->add_error('Error condition'); } } errors Returns an array of error strings. has_errors Does the field have errors? Note that a compound field that contains subfields with errors will not return true for this method. If you want to know if there are errors in the subfields, do 'has_error_fields'. num_errors add_error Add an error to the field. Localization is performed. push_errors Add an error without localization. error_fields In a compound field (and its subclasses, like 'Repeatable'), the list of fields with errors. Result methods The input, value, and error attributes are actually stored in the result objects. Although most of the methods are delegated to the form and field classes, there are times, such as when rendering (because you might be rendering a result that's been peeled off of the form object), that you may need to use result methods. These are the main methods that you might need to use. has_errors errors error_results The results with errors; 'error_fields' is a wrapper around this. Messages The base field class and the field subclasses have some 'built-in' error messages. These can be modified by setting the 'messages' hashref in the form or the individual fields. When a message is retrieved in a field with "$field->get_message('upload_file_')" for example, the 'get_message' method will look first in user-set field specific messages, then in user-supplied form messages, finally in messages provided by the field classes. package MyApp::Form; use HTML::FormHandler::Moose; extends 'HTML::FormHandler'; sub build_messages { return { required => '....', my_message => '....' }; } ... my $form = MyApp::Form->new( messages => { required => '...', ...} ); ... has_field 'my_field' => ( messages => { required => 'Please provide a my_field' }, required => 1 ); AUTHOR
FormHandler Contributors - see HTML::FormHandler COPYRIGHT AND LICENSE
This software is copyright (c) 2012 by Gerda Shank. This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. perl v5.14.2 2012-06-25 HTML::FormHandler::Manual::Errors(3pm)
All times are GMT -4. The time now is 08:07 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy