Linux -Blue forest free software | Return to home page | Site Map | Search WWW | Contact Us |
Your current position : Homepage > Free Software > Technological exchanges >System Management


    

Blue Forest http://www.lslnet.com at 20:18 on April 6, 2006


Bad Sectors FreeBSD how to detect the hard disk?

What should be the order?

Bad Sectors FreeBSD how to detect the hard disk?

I do not know

Bad Sectors FreeBSD how to detect the hard disk?

Http://www.linuxsir.org/bbs/showthread.php?s=&threadid=81020

Werix


Monitoring your hard disk-SMART early warning system
Foreword :
Psychological fear most is not that we install a system, but hard to install, bad hard disk suddenly one day,
No backup (DAT, DLT tape like you have scary). How you will be able to know whether a new hard disk
Years? (Hard disk state? ), Especially if the early warning, telling us not stand a fast hard disk,
Nice.

Solution :
SMART
SMART (SFF-8035i) is a hard disk manufacturers have established industry standards, the standard is a hard disk protection
With the implementation of a deposit, reliability, error rate and other attributes of time to find form. All attributes have a 1byte (the
The small-scale 1-253), the value of standardization, it also includes another 1byte critical stage of value, if certain attributes form
Data values close to or less reached a critical stage, then your hard drive quickly with you forever, or at least more than it
Limit the use of the design - and the worst case scenario is to do a backup.

After ATA-3 SFF-8035i industry standards, the ATA-5 ATA-4 adding an erroneous message (error
Log), and self-rated series hard disk SMART orders. SMART meet with IDE and SCSI hard disks.

I used to do the experimental FreeBSD 5.2, and Debian, has been pretty good, can be directly used atactl OPENBSD Now, let us look at the man atactl or below the message. No other Linux system, we can see the end of this paper to the official website inquiries
Your system.


1. Installation smartmontools
FreeBSD :

#/usr/ports/sysutils/smartmontools
#make Install clean
#cp /usr/local/etc/rc.d/smartd.sh.sample /usr/local/etc/rc.d/smartd.sh
#cp /usr/local/etc/smartd.conf.sample /usr/local/etc/smartd.conf
#chmod 555 /usr/local/etc/rc.d/smartd.sh

Debian :
Apt-get install smartmontool*
/etc/smartd.conf

FreeBSD document /usr/local/etc/smartd.conf
Debian document /etc/smartd.conf

:
Never forget the rewritten document! ! ! !
IDE hard disk is a FreeBSD anyway ad0, SCSI hard disk is da0
IDE hard disk is a Debian anyway /dev/hda, SCSI hard disk is /dev/sda

Now I use FreeBSD as an example, the hard disk is IDE, SCSI, if you are, you go the official website

Initiated guardianship proceedings :

/usr/local/etc/rc.d/smartd.sh Start

First, let us look at your hard disk support SMART :

Bash-2.05b# smartctl -i /dev/ad0

Smartctl version 5.26 Copyright (C) 2002-3 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

If so, if so, START OF INFORMATION SECTION
Device Model : IBM-DJSA-220
Serial Number : 44K443Z0103
Firmware Version : JS4OAC3A
Device is : Not in smartctl database use : P showall] [for details
ATA Version 5 is :
ATA Standard is : ATA/ATAPI-5 till 1321D revision 1
Local Time is : Mon Dec 22 21:04:38 CET 2003
SMART support is : Available-device has SMART capability.
Enable SMART support is :

The SMART RETURN STATUS return value (smartmontools option/Directive H)
Can not be retrieved with this version of ATAng, please do not rely on this value


I look at the site health tests, if your test result is FAILING self-assessment, which means
It must be done immediately back! ! !

Bash-2.05b# smartctl -Hc /dev/ad0

Smartctl version 5.26 Copyright (C) 2002-3 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

The SMART RETURN STATUS return value (smartmontools option/Directive H)
Can not be retrieved with this version of ATAng, please do not rely on
This value
Read SMART START OF DATA SECTION if so, if so,
SMART overall-health self-assessment test result : PASSED

General SMART Values :
Offline data collection status : (0x00) Offline data collection activity
Was
Never started.
Auto Offline Data Collection : Disabled.

自 execution status : (0) The previous routine completed self-test
Without error or has no self-test
Ever
Been run.
Total time to complete Offline
Data collection : (650) seconds.
Offline data collection
Capabilities : (0x1b) SMART execute Offline immediate.
Auto Offline data collection on/off
Support.
Suspend Offline collection upon
New
Command.
Offline surface scan supported.
自 supported.
No Conveyance 自 supported.
No Selective 自 supported.
SMART capabilities : (0x0003) Saves SMART data before entering
Power-saving mode.
Supports SMART auto save timer.
Error logging capability : (0x01) Error logging supported.
No General Purpose Logging support.
Short self-test routine
Recommended polling time : (2) minutes.
Extended self-test routine
Recommended polling time : (29) minutes.


According to the attribute table below gives you a different hard disk manufacturers, the most important thing is to understand each vertical
The significance : If there is a standard value (VALUE) less than or equal to the key value (THRESH), WHEN_FAILED Bank
Information will be given, I WHEN_FAILED vertical space trip is that all right. If WHEN_FAILED being given.
Disk may be a problem. . . . WORST is the standard value (VALUE) minimum.

A /dev/ad0 bash-2.05b# smartctl
Smartctl version 5.26 Copyright (C) 2002-3 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

The SMART RETURN STATUS return value (smartmontools option/Directive H)
Can not be retrieved with this version of ATAng, please do not rely on
This value
Read SMART START OF DATA SECTION if so, if so,
SMART Attributes Data Structure revision number : 16
Vendor Specific Attributes with Thresholds : SMART
ID# ATTRIBUTE_NAME FLAG regimen VALUE WORST THRESH TYPE UPDATED
WHEN_FAILED RAW_VALUE
Always one Pre-fail Raw_Read_Error_Rate 0x000b 100 100 062
- 0
2 Throughput_Performance 0x0005 100 100 040 Pre-fail Offline
- 0
Always Pre-fail 3 Spin_Up_Time 0x0007 113 113 033
- 1
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always
- 985
Always Pre-fail 5 Reallocated_Sector_Ct 0x0033 100 100 005
- 0
7 Seek_Error_Rate 0x000b Pre-fail Always 100 100 067
- 0
8 Seek_Time_Performance 0x0005 100 100 040 Pre-fail Offline
- 0
9 Power_On_Hours 0x0012 097 097 000 Old_age Always
- 1642
Always Pre-fail 10 Spin_Retry_Count 0x0013 100 100 060
- 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always
- 914
191 Old_age Always G-Sense_Error_Rate 0x000a 100 100 000
- 0
192 Power-Off_Retract_Count Old_age Always 0x0032 100 100 000
- 8
193 Old_age Always Load_Cycle_Count 0x0012 096 096 050
- 45262
196 Old_age Always Reallocated_Event_Count 0x0032 100 100 000
- 17
197 Old_age Always Current_Pending_Sector 0x0022 100 100 000
- 1
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline
- 0
199 UDMA_CRC_Error_Count 0x000a Old_age Always 200 200 000
- 0



Disk Order is given below historical wrong message (error log), because I do not give the length relationship.
Smartctl-l error /dev/ad0

Disk Order is given below Exercises
Smartctl-l selftest /dev/ad0

Exercises end hard disk.
Smartctl X /dev/ad0

Smartd.conf : rewrite document, a "m" option is very useful, it can use information
Mail to you.

Postscript : Editor
SMART can remind you that it can help you to make a copy. To truly allow SMART to serve you, we should make good reading and writing smartd.conf smartd & Notes background procedures allow, under certain circumstances, to remind you (mail) are some key value reached a dangerous region, given the number of orders is more than you started to feel bad time for manual testing. This article is based on an English magazine "Linux Journal January 2004" - Monitor drive health with SMART, author Bruce Allen is a professor of physics. I wrote the article because of better times than my own notes, so I decided to refer to some examples of the original order.


Brief :
Man smartd
Man smartctl
Smartd.conf
Http://www.linuxjournal.com/article.php?sid=6983
Official website http://smartmontools.sourceforge.net

Bad Sectors FreeBSD how to detect the hard disk?

Because of this I could not install PORT install their own translation of this document was not smartd.sh
Shortly after the implementation of any show /usr/sbin/smartd
/dev/ad0 In smartctl -i
Revealed
[19:53/158] Root#km ";smartctl -i /dev/ad0
Smartctl version 5.26 Copyright (C) 2002-3 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Smartctl open device : /dev/ad0 failed : Inappropriate ioctl for device
This is a question I ask, what is 5.1
In another one on the lift 4.9 root#hosix>;/usr/sbin/smartd
Smartd : cam_lookup_pass : couldn 't open /dev/xpt0
Cam_lookup_pass : Device not configured
Smartd : cam_lookup_pass : couldn 't open /dev/xpt0
Cam_lookup_pass : Device not configured
Smartd : cam_lookup_pass : couldn 't open /dev/xpt0
Cam_lookup_pass : Device not configured
Smartd : cam_lookup_pass : couldn 't open /dev/xpt0
Cam_lookup_pass : Device not configured

This is the mastermind of what the country : (

Bad Sectors FreeBSD how to detect the hard disk?

Smartd.sh trouble is the mastermind who posted about this document : (

Bad Sectors FreeBSD how to detect the hard disk?

";smartd D-/dev
Smartd version 5.26 Copyright (C) 2002-3 Bruce Allen
Home page is http://smartmontools.sourceforge.net/

Opened configuration file /etc/smartd.conf
Drive : DEVICESCAN, implied '-' Directive on line 21 of file /etc/smartd.conf
Configuration file /etc/smartd.conf was parsed, found DEVICESCAN, scanning devices
Glob (3) found no matches for patterns (/dev/da[0-9]), (/dev/da[0-9][0-9])
Device : /dev/ad0, Inappropriate ioctl for device, open () failed
Unable to register ATA device /dev/ad0 at line 21 of file /etc/smartd.conf
Unable to monitor any SMART enabled devices. Exiting. . .

Bad Sectors FreeBSD how to detect the hard disk?

: (Up

Bad Sectors FreeBSD how to detect the hard disk?

Smartmontools ATAng need support in FreeBSD 5.1 and later versions only ATAng Lane before.

Bad Sectors FreeBSD how to detect the hard disk?

That is to say, do not be 5.1? ? : (



 Privacy Policy  Copyright © 1999-2000 LSLNET.COM. All rights reserved. Blue Forest website owners. E-mail : Webmaster@lslnet.com