Здравствуйте. Поменял хард и замерял скорость кэширования и буферизации hdparm'ом.
[console]# hdparm -tT /dev/sda
/dev/sda:
Timing cached reads: 1294 MB in 2.00 seconds = 646.27 MB/sec
Timing buffered disk reads: 156 MB in 3.02 seconds = 51.67 MB/sec[/console]
При том, что аналогичниый хард выдавал 2000+ МБ и 60+ МБ соответственно. Только за сегодня с каждым замером (интервал в несколько часов) скорость кэширования упала с 1100 МБ до того, что показано выше. Значит ли это, что хард помалу приказывает долго жить? Спасибо.
hdparm тесты
Для полноты картины посмотрите SMART жесткого диска, это, вероятно, прояснит в чем дело.
yars, подскажите, пожалуйста, каким образом это можно сделать, если физического доступа к серверу нет и на нем установлен только CentOS.
upd: Нашел утилиту smartmontools. Оно?
А по ssh запустить smartctl нельзя?
Получил нечто такое. Пишет что-то об ошибках. Критично ли это?
# smartctl -a /dev/sda
smartctl 5.43 2012-06-30 r3573 [x86_64-linux-2.6.32-358.23.2.el6.x86_64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net
=== START OF INFORMATION SECTION ===
Model Family: Seagate Barracuda 7200.10
Device Model: ST3500630AS
Serial Number: 5QG1P4EX
Firmware Version: 3.AAK
User Capacity: 500.106.780.160 bytes [500 GB]
Sector Size: 512 bytes logical/physical
Device is: In smartctl database [for details use: -P show]
ATA Version is: 7
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Wed Nov 27 22:03:07 2013 EET
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: FAILED!
Drive failure expected in less than 24 hours. SAVE ALL DATA.
See vendor-specific Attribute list for failed Attributes.
General SMART Values:
Offline data collection status: (0x82) Offline data collection activity
was completed without error.
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: ( 430) 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: ( 1) minutes.
Extended self-test routine
recommended polling time: ( 163) minutes.
SMART Attributes Data Structure revision number: 10
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
1 Raw_Read_Error_Rate 0x000f 117 074 006 Pre-fail Always - 148987740
3 Spin_Up_Time 0x0003 094 093 000 Pre-fail Always - 0
4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 518
5 Reallocated_Sector_Ct 0x0033 001 001 036 Pre-fail Always FAILING_NOW 57273
7 Seek_Error_Rate 0x000f 085 060 030 Pre-fail Always - 378047691
9 Power_On_Hours 0x0032 052 052 000 Old_age Always - 42658
10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0
12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 527
187 Reported_Uncorrect 0x0032 097 097 000 Old_age Always - 3
189 High_Fly_Writes 0x003a 001 001 000 Old_age Always - 5803
190 Airflow_Temperature_Cel 0x0022 058 037 045 Old_age Always In_the_past 42 (Min/Max 24/45)
194 Temperature_Celsius 0x0022 042 063 000 Old_age Always - 42 (0 20 0 0 0)
195 Hardware_ECC_Recovered 0x001a 085 051 000 Old_age Always - 225416795
197 Current_Pending_Sector 0x0012 100 100 000 Old_age Always - 0
198 Offline_Uncorrectable 0x0010 100 100 000 Old_age Offline - 0
199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0
200 Multi_Zone_Error_Rate 0x0000 100 253 000 Old_age Offline - 0
202 Data_Address_Mark_Errs 0x0032 100 253 000 Old_age Always - 0
SMART Error Log Version: 1
ATA Error Count: 15 (device log contains only the most recent five errors)
CR = Command Register [HEX]
FR = Features Register [HEX]
SC = Sector Count Register [HEX]
SN = Sector Number Register [HEX]
CL = Cylinder Low Register [HEX]
CH = Cylinder High Register [HEX]
DH = Device/Head Register [HEX]
DC = Device Command Register [HEX]
ER = Error register [HEX]
ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.
Error 15 occurred at disk power-on lifetime: 42328 hours (1763 days + 16 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 00 ba 14 60 e0 Error: UNC at LBA = 0x006014ba = 6296762
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
24 00 01 ba 14 60 e0 00 01:12:09.023 READ SECTOR(S) EXT
42 00 ff 67 14 60 e0 00 01:12:09.019 READ VERIFY SECTOR(S) EXT
42 00 ff 68 13 60 e0 00 01:12:09.018 READ VERIFY SECTOR(S) EXT
42 00 ff 69 12 60 e0 00 01:12:09.016 READ VERIFY SECTOR(S) EXT
42 00 ff 6a 11 60 e0 00 01:12:09.014 READ VERIFY SECTOR(S) EXT
Error 14 occurred at disk power-on lifetime: 42328 hours (1763 days + 16 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 ac ba 14 60 e0 Error: UNC at LBA = 0x006014ba = 6296762
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
42 00 ff 67 14 60 e0 00 01:12:09.023 READ VERIFY SECTOR(S) EXT
42 00 ff 68 13 60 e0 00 01:12:09.019 READ VERIFY SECTOR(S) EXT
42 00 ff 69 12 60 e0 00 01:12:09.018 READ VERIFY SECTOR(S) EXT
42 00 ff 6a 11 60 e0 00 01:12:09.016 READ VERIFY SECTOR(S) EXT
42 00 ff 6b 10 60 e0 00 01:12:09.014 READ VERIFY SECTOR(S) EXT
Error 13 occurred at disk power-on lifetime: 42323 hours (1763 days + 11 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
40 51 c1 ba 14 60 e0 Error: UNC at LBA = 0x006014ba = 6296762
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
42 00 ff 7c 14 60 e0 00 01:42:39.292 READ VERIFY SECTOR(S) EXT
42 00 ff 7d 13 60 e0 00 01:42:39.291 READ VERIFY SECTOR(S) EXT
42 00 ff 7e 12 60 e0 00 01:42:39.319 READ VERIFY SECTOR(S) EXT
42 00 ff 7f 11 60 e0 00 01:42:39.317 READ VERIFY SECTOR(S) EXT
42 00 ff 80 10 60 e0 00 01:42:39.314 READ VERIFY SECTOR(S) EXT
Error 12 occurred at disk power-on lifetime: 17703 hours (737 days + 15 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
10 51 01 ee 57 38 ea
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
37 03 01 ee 57 38 ea 00 00:00:41.690 SET MAX ADDRESS EXT
27 00 01 2f 60 38 e0 00 00:00:41.690 READ NATIVE MAX ADDRESS EXT
29 00 01 2f 60 38 e0 00 00:00:41.689 READ MULTIPLE EXT
27 00 00 00 00 00 e0 00 00:00:41.305 READ NATIVE MAX ADDRESS EXT
25 00 01 00 00 00 e0 00 00:00:41.246 READ DMA EXT
Error 11 occurred at disk power-on lifetime: 17673 hours (736 days + 9 hours)
When the command that caused the error occurred, the device was active or idle.
After command completion occurred, registers were:
ER ST SC SN CL CH DH
-- -- -- -- -- -- --
10 51 01 ee 57 38 ea
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
37 03 01 ee 57 38 ea 00 06:28:16.358 SET MAX ADDRESS EXT
27 00 01 2f 60 38 e0 00 06:28:16.196 READ NATIVE MAX ADDRESS EXT
29 00 01 2f 60 38 e0 00 06:28:16.133 READ MULTIPLE EXT
27 00 00 00 00 00 e0 00 06:28:12.099 READ NATIVE MAX ADDRESS EXT
25 00 01 00 00 00 e0 00 06:28:11.955 READ DMA EXT
SMART Self-test log structure revision number 1
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.
Тег CODE более читабелен для подобных выводов из консоли.
verg
Внимание на reallocated sector count. Да, имхо менять пора...
Благодарю. Значит буду менять.