HP-Mini-5103
-
začal mi hlasitě cvakat WD HDD na NTB s Kubuntu 12 - neustálé cvakání WD HDD na notebooku s Ubuntu (kubuntu)
-
pokud je HDD krátkou dobu neaktivní cvakne
Opravdu již nevím, jestli mi začal disk cvakat až po instalaci Kubuntu nebo za to může moje lehkovážnost a provoz ntb "mini HP" jako mp3 přehrávače v autě (jel jsem po D1 :-( )
Jisté nicméně je, že disk mi teď cvaká a to dost hlasitě. Téměrř pokaždé když slyším "cvak-dhrm", ztuhne mi krev v žitách, že je po disku a tak sem se rozhodnul o cvakání něco zjistitt (vizte odkazy dole).
A teď chystám:
- zjistit servisní paramatry disku pomocí: sudo smartctl -d ata -a /dev/sda,
případně: sudo smartctl -d ata -a /dev/sda | grep Load_Cycle
- změnit/kontrolovat nastavení, "laptop mode = 0" v /etc/laptop-mode/laptop-mode.conf
- změnnit nastavení parkování disku: sudo hdparm -S120 /dev/sda (zastavení disku po 10min)
verze systému
v Kubuntu ubuntu 12.04 verze:
ladislav@ladislav-HP-Mini-5103:~$: lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise
nainstalováno KDE 4.8.4
hardware
- hp mini 5103
- WDC WD3200BEKT-60PVMT0
postup
27.8.2012
v "K:>system>správce balíčků Muon" nalezen a nainsatalován Gsmartcontrol pro KDE (tím se nainstaloval i základní smastcontrol dostupný uživateli z konzole)
zvolil jsem disk dev/sda po rozkliknutí byl na kartě "attributes" výpis:
z toho lze dopočítat např: (řádek 193/ řádek 9) 214948/3387/60 = +1 cycle/min. Podle mě stašně moc vysoké číslo
smartctl 5.41 2011-06-09 r3365 [i686-linux-3.2.0-29-generic-pae] (local build)
Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Scorpio Black Serial ATA
Device Model: WDC WD3200BEKT-60PVMT0
Serial Number: WD-WXN1A81V0919
LU WWN Device Id: 5 0014ee 6570f5a31
Firmware Version: 01.01A01
User Capacity: 320,072,933,376 bytes [320 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Mon Aug 27 21:12:46 2012 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
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.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 6000) seconds.
Offline data collection
capabilities: (0x51) SMART execute Offline immediate.
No Auto Offline data collection support.
Suspend Offline collection upon new
command.
No Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 62) minutes.
SCT capabilities: (0x703d) SCT Status supported.
SCT Error Recovery Control supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x002f 200 200 051 Pre-fail Always - 0
3 Spin_Up_Time 0x0027 163 153 021 Pre-fail Always - 833
4 Start_Stop_Count 0x0032 100 100 000 Old_age Always - 264
5 Reallocated_Sector_Ct 0x0033 200 200 140 Pre-fail Always - 0
7 Seek_Error_Rate 0x002f 100 253 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 096 096 000 Old_age Always - 3387
10 Spin_Retry_Count 0x0033 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0032 100 100 000 Old_age Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 258
183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0
184 End-to-End_Error 0x0033 100 100 097 Pre-fail Always - 0
187 Reported_Uncorrect 0x0032 100 100 000 Old_age Always - 0
188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0
190 Airflow_Temperature_Cel 0x0022 068 055 040 Old_age Always - 32 (Min/Max 26/32)
191 G-Sense_Error_Rate 0x0032 001 001 000 Old_age Always - 279
192 Power-Off_Retract_Count 0x0032 200 200 000 Old_age Always - 36
193 Load_Cycle_Count 0x0032 129 129 000 Old_age Always - 214948
194 Temperature_Celsius 0x0022 111 098 000 Old_age Always - 32
196 Reallocated_Event_Count 0x0032 200 200 000 Old_age Always - 0
197 Current_Pending_Sector 0x0032 200 200 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0030 100 253 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x0032 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0009 100 253 051 Pre-fail Offline - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
z toho speciálně řádek s ID 193: 193 Load_Cycle_Count 0x0032 129 129 000 Old_age Always - 214948 , hodnota 214 948x zaparkované hlavy, vzhledem k tomu, že je miniHP jen 1/2 roku starý, hodně špatně (v odkazech výše píšou o cca 600k jako začátek pre-fail). Ostatně o tom svěcčí i fakt, že ostatní hodnoty jsou nízké (ale údaje "Norm-ed value" jsou zřejmě nesmysly, proto hází výsledky Old_age a Pre-fail = starý a před selháním).
Teď , když jsem psal článek viděl jsem, že je disk občas v činnosti a v disku necvaklo. Potvrdilo se tím, že cvaknutíí "cvak-drhm" je parkování snad vyvolané řízením spotřeby disku. Spotřeba disku je ovlivněna nastavením v KDE, kubuntu, BIOSu. Seřazeno podle významností, tak jak jdou vrstvy po sobě.
Později vložená poznámka: v grafickém prostředí Windows je snadné nastavit vypínání HDD, v linuxu je nutné pracovat v textovém prostředí. Pozor, spojení HDD Western Digital s OS Linux (Ubuntu, Mandriva) nastaví parkování velmi brzy
v konzoli zobrazit informace o disku (APM 254) a nastavitl jsem čas parkování na 10minut
ladislav@ladislav-HP-Mini-5103:~$ sudo hdparm -S120 -B255 /dev/sda
/dev/sda:
setting Advanced Power Management level to disabled
setting standby to 120 (10 minutes)
APM_level = off takhle je úplně vypnuté
ladislav@ladislav-HP-Mini-5103:~$ sudo hdparm -S120 -B254 /dev/sda
/dev/sda:
setting Advanced Power Management level to 0xfe (254)
setting standby to 120 (10 minutes)
APM_level = 254
Pokud zabere omezení parkování hlav je potíž v tom, že se musí limit pokaždé nastavit, nebo spouštět skriptem, v odkazech o tom píšou
ještě juknu do správy napájení v KDE
Ve správě napájení jsem vypnul ve všech modech (v síti, na baterii, nízká baterie) možnost ukončit sezení (ta byla 10 minut) a ponechal jsem ztmavení a vypnutí monitoru. Akce nastavny: při zavření víka - vypnout monitor a při zmáčknutí on/off tlačítka - odhlašovací dialog . Výborné je, že zde viddím i možnost spustit skript nastavit pro každý mód a to jak při načtení tak při ukončení profilu nebo je zde ještě možnost po x minutách činnosti v módu, faj :-).. Možnost po načtení profilu se bude hodit pro spouštění skriptu nastavujího čas parkování.
počítač po ukončení práce vypnut. Load_Cycle_Count +1
28.8.2011
2.9.2012
- ze zoufalosti sem nainstaloval notebook-mode balík a nestačil se divit. Přes veškerou snahu (nastavení v .conf) narůstalo 193 - parkování (o jedna) každých pár vteřin (cca 10s).Uninstal balíčku notebook-mode nepomohlo ani smazat adresar v etc.
- naistalován idle3-tools
- nastaveno
idle3ctl -s255 /dev/sda #Idle3 timer set to 255 (0xff)
Please power cycle your drive off and on for the new setting to be taken into account. A reboot will not be enough!
idle3ctl -g103 /dev/sda #Idle3 timer set to 3810.0s (0xff)
#nejsme si jist ze je nutne
- zastaven a spuštěn disk
- od té doby se chová HDD řádně (mám ho pod kontrolou) a spolu s novou politikou používání NTB je funkčním řešenmí - nenavyšuje 193 - Load_Cycle_Count.
HP Compaq nc6320
Potom co jsem zjistil obrovské hodnoty 193 - cycles na HP mini byl jsem zvědav jak je na tom tento stoj s cca 1.5 roku starým HDD s linuxem Mandriva a Win XP (na hraní nainstalován do první partition)
verze systému
v Mandriva 2010.2 verze:
[root@localhost /]# lsb_release -a
LSB Version: lsb-4.0-ia32:lsb-4.0-noarch:core-3.0-ia32:core-3.0-noarch:core-3.2-ia32:core-3.2-noarch:core-4.0-ia32:core-4.0-noarch:cxx-3.2-ia32:cxx-3.2-noarch:graphics-3.2-ia32:graphics-3.2-noarch:lsb-3.0-ia32:lsb-3.0-noarch:lsb-3.2-ia32:lsb-3.2-noarch:lsb-4.0-ia32:lsb-4.0-noarch
Distributor ID: MandrivaLinux
Description: Mandriva Linux 2010.2
Release: 2010.2
Codename: Henry_Farman
nainstalováno KDE 4.4
hardware
- HP Compaq nc6320
- Seagate Momentus 7200.4 series
postup
2.9.2012
- zjistit 193 - Load_Cycle_Count
- případne instalce s.m.a.r.t. tools
[root@localhost /]# smartctl -a /dev/sda | grep Load_Cycle_Count
193 Load_Cycle_Count 0x0032 001 001 000 Old_age Always - 594323
[root@localhost /]# sudo smartctl -i /dev/sda
smartctl 5.39.1 2010-01-28 r3054 [i586-mandriva-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net</li>
</ul>
=== START OF INFORMATION SECTION ===
Model Family: Seagate Momentus 7200.4 series
Device Model: ST9500420ASG
Serial Number: 5VJ9GQNQ
Firmware Version: 0002SDM1
User Capacity: 500 107 862 016 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 8
ATA Standard is: ATA-8-ACS revision 4
Local Time is: Sun Sep 2 14:57:57 2012 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
[root@localhost /]# sudo smartctl -I /dev/sda
smartctl 5.39.1 2010-01-28 r3054 [i586-mandriva-linux-gnu] (local build)
Copyright (C) 2002-10 by Bruce Allen, http://smartmontools.sourceforge.net
=======> UNRECOGNIZED OPTION: I
Use smartctl -h to get a usage summary
[root@localhost /]# sudo hdparam -I /dev/sda
sudo: hdparam: command not found
[root@localhost /]# sudo hdparm -I /dev/sda
/dev/sda:
ATA device, with non-removable media
Model Number: ST9500420ASG
Serial Number: 5VJ9GQNQ
Firmware Revision: 0002SDM1
Transport: Serial
Standards:
Used: unknown (minor revision code 0x0029)
Supported: 8 7 6 5
Likely used: 8
Configuration:
Logical max current
cylinders 16383 17475
heads 16 15
sectors/track 63 63
--
CHS current addressable sectors: 16513875
LBA user addressable sectors: 268435455
LBA48 user addressable sectors: 976773168
Logical/Physical Sector size: 512 bytes
device size with M = 1024*1024: 476940 MBytes
device size with M = 1000*1000: 500107 MBytes (500 GB)
cache/buffer size = 16384 KBytes
Nominal Media Rotation Rate: 7200
Capabilities:
LBA, IORDY(can be disabled)
Queue depth: 32
Standby timer values: spec'd by Standard, no device specific minimum
R/W multiple sector transfer: Max = 16 Current = 16
Advanced power management level: 128
Recommended acoustic management value: 208, current value: 208
DMA: mdma0 mdma1 mdma2 udma0 udma1 udma2 udma3 udma4 udma5 *udma6
Cycle time: min=120ns recommended=120ns
PIO: pio0 pio1 pio2 pio3 pio4
Cycle time: no flow control=120ns IORDY flow control=120ns
Commands/features:
Enabled Supported:
* SMART feature set
Security Mode feature set
* Power Management feature set
* Write cache
* Look-ahead
* Host Protected Area feature set
* WRITE_BUFFER command
* READ_BUFFER command
* NOP cmd
* DOWNLOAD_MICROCODE
* Advanced Power Management feature set
SET_MAX security extension
* Automatic Acoustic Management feature set
* 48-bit Address feature set
* Device Configuration Overlay feature set
* Mandatory FLUSH_CACHE
* FLUSH_CACHE_EXT
* SMART error logging
* SMART self-test
* General Purpose Logging feature set
* WRITE_{DMA|MULTIPLE}_FUA_EXT
* WRITE_DMA_QUEUED_FUA_EXT
* 64-bit World wide name
* IDLE_IMMEDIATE with UNLOAD
Write-Read-Verify feature set
* WRITE_UNCORRECTABLE_EXT command
* {READ,WRITE}_DMA_EXT_GPL commands
* Segmented DOWNLOAD_MICROCODE
* Free-fall Control feature set
* Gen1 signaling speed (1.5Gb/s)
* Gen2 signaling speed (3.0Gb/s)
* Native Command Queueing (NCQ)
* Host-initiated interface power management
* Phy event counters
Device-initiated interface power management
* Software settings preservation
* SMART Command Transport (SCT) feature set
* SCT Long Sector Access (AC1)
* SCT LBA Segment Access (AC2)
* SCT Error Recovery Control (AC3)
* SCT Features Control (AC4)
* SCT Data Tables (AC5)
unknown 206[12] (vendor specific)
Security:
Master password revision code = 65534
supported
not enabled
not locked
frozen
not expired: security count
supported: enhanced erase
104min for SECURITY ERASE UNIT. 104min for ENHANCED SECURITY ERASE UNIT.
Logical Unit WWN Device Identifier: 5000c5002ed8eea4
NAA : 5
IEEE OUI : 000c50
Unique ID : 02ed8eea4
Checksum: correct
po zjistění vysokých hodnot instalace nalíčku "gsmartcontrol - GSmartControl - nástroj pro kontrolu stavu pevného disku
nastavrní HDD pomocí smart:
[root@localhost /]# hdparm -S0 -B254 /dev/sda
/dev/sda:
setting Advanced Power Management level to 0xfe (254)
setting standby to 0 (off)
APM_level = 254
- od té doby se chová HDD řádně (mám ho pod kontrolou) a spolu s novou politikou používání NTB je funkčním řešenmí - nenavyšuje 193 - Load_Cycle_Count.
HP Compaq nc6320
r.2017 Nový disk WD, zapomněl jsem udělat opatření a po cca měsíci vysoká hodnota #193 Load_Cycle_Count : 24064x
verze systému
v Kubuntu 14.04 verze:
ladislav@ladislav-HP-Compaq-nc6320-EV073AV:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04.5 LTS
Release: 14.04
Codename: trusty
nainstalováno KDE 4.8.6
hardware
- HP Compaq nc6320
- WD 2.5" Black Mobile 1TB 32MB cache
smartctl:
smartctl 6.2 2013-07-26 r3841 [i686-linux-3.13.0-108-generic] (local build)
Copyright (C) 2002-13, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Device Model: WDC WD10JPLX-00MBPT0
Serial Number: JR1000D3023XYF
LU WWN Device Id: 5 000cca 8c8c0f782
Firmware Version: 01.01H01
User Capacity: 1,000,204,886,016 bytes [1.00 TB]
Sector Sizes: 512 bytes logical, 4096 bytes physical
Rotation Rate: 7200 rpm
Device is: Not in smartctl database [for details use: -P showall]
ATA Version is: ATA8-ACS T13/1699-D revision 6
SATA Version is: SATA 3.0, 6.0 Gb/s (current: 1.5 Gb/s)
Local Time is: Sun Feb 26 09:47:41 2017 CET
SMART support is: Available - device has SMART capability.
SMART support is: Enabled
=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
General SMART Values:
Offline data collection status: (0x85) Offline data collection activity
was aborted by an interrupting command from host.
Auto Offline Data Collection: Enabled.
Self-test execution status: ( 0) The previous self-test routine completed
without error or no self-test has ever
been run.
Total time to complete Offline
data collection: ( 45) seconds.
Offline data collection
capabilities: (0x5b) SMART execute Offline immediate.
Auto Offline data collection on/off support.
Suspend Offline collection upon new
command.
Offline surface scan supported.
Self-test supported.
No Conveyance Self-test supported.
Selective Self-test supported.
SMART capabilities: (0x0003) Saves SMART data before entering
power-saving mode.
Supports SMART auto save timer.
Error logging capability: (0x01) Error logging supported.
General Purpose Logging supported.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 175) minutes.
SCT capabilities: (0x0035) SCT Status supported.
SCT Feature Control supported.
SCT Data Table supported.
SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000b 100 100 062 Pre-fail Always - 0
2 Throughput_Performance 0x0005 163 163 040 Pre-fail Offline - 92
3 Spin_Up_Time 0x0007 121 121 033 Pre-fail Always - 2
4 Start_Stop_Count 0x0012 100 100 000 Old_age Always - 123
5 Reallocated_Sector_Ct 0x0033 100 100 005 Pre-fail Always - 0
7 Seek_Error_Rate 0x000b 100 100 067 Pre-fail Always - 0
8 Seek_Time_Performance 0x0005 138 138 040 Pre-fail Offline - 34
9 Power_On_Hours 0x0012 100 100 000 Old_age Always - 341
10 Spin_Retry_Count 0x0013 100 100 060 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 113
191 G-Sense_Error_Rate 0x000a 100 100 000 Old_age Always - 0
192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 13
193 Load_Cycle_Count 0x0012 098 098 000 Old_age Always - 24064
194 Temperature_Celsius 0x0002 146 146 000 Old_age Always - 41 (Min/Max 17/45)
196 Reallocated_Event_Count 0x0032 100 100 000 Old_age Always - 0
197 Current_Pending_Sector 0x0022 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0008 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x000a 200 200 000 Old_age Always - 0
223 Load_Retry_Count 0x000a 100 100 000 Old_age Always - 0
SMART Error Log Version: 1
No Errors Logged
SMART Self-test log structure revision number 1
No self-tests have been logged. [To run self-tests, use: smartctl -t]
SMART Selective self-test log data structure revision number 1
SPAN MIN_LBA MAX_LBA CURRENT_TEST_STATUS
1 0 0 Not_testing
2 0 0 Not_testing
3 0 0 Not_testing
4 0 0 Not_testing
5 0 0 Not_testing
Selective self-test flags (0x0):
After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.
informace o počtu parkovní a vypnutí disku
ladislav@ladislav-HP-Compaq-nc6320-EV073AV:~$ sudo smartctl -a /dev/sda | grep Load_Cycle_Count ; sudo smartctl -a /dev/sda | grep Power_Cycle_Count
193 Load_Cycle_Count 0x0012 098 098 000 Old_age Always - 24064
12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 113
hdparm
nastavit
ladislav@ladislav-HP-Compaq-nc6320-EV073AV:~$ sudo hdparm -B 254 /dev/sda
/dev/sda:
setting Advanced Power Management level to 0xfe (254)
APM_level = 254
balík idle3-tools (0.9.1-1)
informace u balíku idle3-tools (0.9.1-1) v KDE ve sprácvi Muon:
Idle3-tools provides a linux/unix utility that can disable, get and set the value of the infamous idle3 timer found on recent Western Digital Hard Disk Drives. It can be used as an alternative to the official wdidle3.exe proprietary utility, without the need to reboot in a DOS environment. A power off/on cycle of the drive will still be mandatory for new settings to be taken into account. Modern Western Digital "Green" Drives include the Intellipark feature that stops the disk when not in use. Unfortunately, the default timer setting is not perfect on linux/unix systems, including many NAS, and leads to a dramatic increase of the Load Cycle Count value (SMART attribute #193). With the default timer setting, the drive will spin down *every eight seconds* if idle and this may get the spindle motor to burn out in a few months or so. If you have a Western Digital EADS or EARS drive, please check you SMART information before it's too late by running the following command: sudo smartctl -A /dev/sda | grep "^193" If the Load cycle count (which is in the last column) exceeds 1000, you're probably affected by the idle3 timer problem.Canonical pro idle3-tools neposkytuje aktualizace. Některé aktualizace mohou být poskytovány komunitou Ubuntu.
nainstalovat, ale nejde nastavit timer na všech nových WD, mě to na black(mobile) taky nejde a příkaz idlectl končí chybou
ladislav@ladislav-HP-Compaq-nc6320-EV073AV:~$ sudo idle3ctl -s255 /dev/sda
[sudo] password for ladislav:
sg16(VSC_SENDKEY) failed: Input/output error
sg16(VSC_SENDKEY) failed: Input/output error hledat google: wd black idle3 linux sg16(VSC_SENDKEY) failed: Input/output error
Všimněte si rozdílu, u HP mini s hdd WD (Wester Digital) bylo nutné nainstalovat a nastavit idle3ctl!
U nových HDD WD nejde nastavit timer tam se radí nastavit 255, já mám 254 a ok
https://forums.lime-technology.com/topic/54150-wdidle3-does-not-work-on-new-blue-drives/
sudo hdparm -B 254 /dev/sda
odkazy
|