æ¬çªç°å¢ã§åæä¸è¯ã® SSD ãè¸ã¿ã¾ãã
ããã°ãã¯ï¼é害対å¿ç´å¾ã® halfrack ã§ãï¼
ãªãã mysqld ãè½ã¡ãã£ã½ãã¢ã©ã¼ããä¸ãã£ã¦ããã®ã§èª¿ã¹ã¦ã¿ããã Xen DomU ã§ä»¥ä¸ã®ãããªã¡ãã»ã¼ã¸ãã
-bash-3.2# dmesg | tail IPVS: Registered protocols (TCP, UDP, AH, ESP) IPVS: Connection hash table configured (size=4096, memory=64Kbytes) IPVS: ipvs loaded. ip_tables: (C) 2000-2006 Netfilter Core Team Netfilter messages via NETLINK v0.30. ip_conntrack version 2.4 (8192 buckets, 65536 max) - 304 bytes per conntrack IPv4 over IPv4 tunneling driver end_request: I/O error, dev xvda1, sector 282578400 end_request: I/O error, dev xvda1, sector 282578328 end_request: I/O error, dev xvda1, sector 282578416 -bash-3.2#
ããã¤ã¯ SSD ãªãã¹ããªã®ã§ãããã¡ããã¨å¿å½ããããã£ãã®ã§ smartctl ãå©ãã¦ã¿ã¾ããã
æ¡ã®å®ã Reallocated_Sector_Ct ã® RAW ãã«ã¦ã³ãã¢ãããã¾ãã£ã¦ãããã£ããã¼ï¼ï¼ï¼
Reported_Uncorrect, Hardware_ECC_Recovered, Reallocated_Event_Count ãããããéé»æé 151æéã®ãã¹ãã§ãããªã£ã¦ããã®ã¯è¦ããã¨ãæãã¾ããã
[root@x99xxx99x99 ~]# smartctl -a /dev/sda smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: M4-CT512M4SSD2 Serial Number: 00000000111403xxxxxx Firmware Version: 0001 User Capacity: 512,110,190,592 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 9 ATA Standard is: Not recognized. Minor revision code: 0x28 Local Time is: Sat Jul 2 03:02:18 2011 JST SMART support is: Available - device has SMART capability. SMART support is: Enabled (snip) 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 100 100 050 Pre-fail Always - 5 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 28672 9 Power_On_Hours 0x0032 100 100 001 Old_age Always - 153 12 Power_Cycle_Count 0x0032 100 100 001 Old_age Always - 3 (snip) 187 Reported_Uncorrect 0x0032 100 100 001 Old_age Always - 12 (snip) 195 Hardware_ECC_Recovered 0x003c 100 100 001 Old_age Offline - 1226 196 Reallocated_Event_Count 0x0032 100 100 001 Old_age Always - 7 197 Current_Pending_Sector 0x0032 100 100 001 Old_age Always - 0 (snip) SMART Error Log Version: 1 Warning: ATA error count 0 inconsistent with error log pointer 2 (snip) Error 0 occurred at disk power-on lifetime: 151 hours (6 days + 7 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 52 00 fa 9a e0 Error: UNC 82 sectors at LBA = 0x009afa00 = 10156544 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 a8 aa f9 9a e0 00 6d+07:57:00.000 READ DMA EXT 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 00 6d+07:57:00.000 IDENTIFY DEVICE ef 03 45 00 00 00 a0 00 6d+07:57:00.000 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT (snip) [root@x99xxx99x99 ~]#
å§ã㦠SSD ã®åæä¸è¯ã«ééããã®ã¨æ·±å¤ãªã®ã§å¤ã«ãã¤ãã³ã·ã§ã³ã§ãããã¾ãããè¨ããããã¨ã¯ä»¥ä¸ã®ç¹ã§ãï¼
- SSD ã«ãåæä¸è¯ã¯ããããã§ã
- ãã¹ã¿ã¼ã§ä½¿ããªãã¨ã¼ã¸ã³ã°ãããã§ãã by marqs
- å°ãªãã¨ã Intel/Mavell ç³»ã³ã³ããã¼ã©ã 㨠Reallocated_Sector_Ct ã®å¤ã¯æ éå¤å®ã«ä½¿ãã
- SSD å é¨ã® ECC ãæå¹ã«æ©è½ãã¦ãããããå£ãããããã¯ã¯ã¡ãã㨠Medium Error ãè¿ã
HDD ã§ãå½¹ã«ç«ã¤ã®ã§ãä¸è¯ã»ã¯ã¿æ°ã¯ã°ã©ãã«ãã¾ãããããã¨æãã¾ããã
ã¾ãã稼åæéã¨ä»ã®ãã¹ãã®æ¯è¼ãããã©ãè¦ã¦ãåæä¸è¯ã«è¦ããããå
ã®æ©ãã§å
¬éãã¾ãããããã®ã¨ã³ããªã¯åãçªã£èµ°ã£ã¦æ¸ãã¦ããã¾ãã
å¾ã§ãã調ã¹ãããªããééã£ã¦ãããããã¾ãããç¶å ±ã«ãã注æä¸ããã
以ä¸ã¯çãã°ãæå»ã¨ãçã
ããã§ããï¼
[root@x99xxx99x99 ~]# smartctl -a /dev/sda smartctl version 5.38 [x86_64-redhat-linux-gnu] Copyright (C) 2002-8 Bruce Allen Home page is http://smartmontools.sourceforge.net/ === START OF INFORMATION SECTION === Device Model: M4-CT512M4SSD2 Serial Number: 00000000111403xxxxxx Firmware Version: 0001 User Capacity: 512,110,190,592 bytes Device is: Not in smartctl database [for details use: -P showall] ATA Version is: 9 ATA Standard is: Not recognized. Minor revision code: 0x28 Local Time is: Sat Jul 2 03:02:18 2011 JST 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: (0x80) Offline data collection activity was never started. 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: (2380) seconds. Offline data collection capabilities: (0x7b) SMART execute Offline immediate. Auto Offline data collection on/off support. Suspend Offline collection upon new command. Offline surface scan supported. Self-test supported. 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: ( 39) minutes. Conveyance self-test routine recommended polling time: ( 3) minutes. SCT capabilities: (0x003d) 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 0x002f 100 100 050 Pre-fail Always - 5 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 28672 9 Power_On_Hours 0x0032 100 100 001 Old_age Always - 153 12 Power_Cycle_Count 0x0032 100 100 001 Old_age Always - 3 170 Unknown_Attribute 0x0033 100 100 010 Pre-fail Always - 7 171 Unknown_Attribute 0x0032 100 100 001 Old_age Always - 0 172 Unknown_Attribute 0x0032 100 100 001 Old_age Always - 0 173 Unknown_Attribute 0x0033 100 100 010 Pre-fail Always - 0 174 Unknown_Attribute 0x0032 100 100 001 Old_age Always - 0 181 Unknown_Attribute 0x0022 100 100 001 Old_age Always - 1309979312215 183 Unknown_Attribute 0x0032 100 100 001 Old_age Always - 0 184 Unknown_Attribute 0x0033 100 100 050 Pre-fail Always - 0 187 Reported_Uncorrect 0x0032 100 100 001 Old_age Always - 12 188 Unknown_Attribute 0x0032 100 100 001 Old_age Always - 0 189 High_Fly_Writes 0x000e 100 100 001 Old_age Always - 216 195 Hardware_ECC_Recovered 0x003c 100 100 001 Old_age Offline - 1226 196 Reallocated_Event_Count 0x0032 100 100 001 Old_age Always - 7 197 Current_Pending_Sector 0x0032 100 100 001 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 100 100 001 Old_age Offline - 0 199 UDMA_CRC_Error_Count 0x0032 100 100 001 Old_age Always - 0 202 TA_Increase_Count 0x0018 100 100 001 Old_age Offline - 0 206 Flying_Height 0x000e 100 100 001 Old_age Always - 0 SMART Error Log Version: 1 Warning: ATA error count 0 inconsistent with error log pointer 2 ATA Error Count: 0 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 0 occurred at disk power-on lifetime: 151 hours (6 days + 7 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 52 00 fa 9a e0 Error: UNC 82 sectors at LBA = 0x009afa00 = 10156544 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 a8 aa f9 9a e0 00 6d+07:57:00.000 READ DMA EXT 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 00 6d+07:57:00.000 IDENTIFY DEVICE ef 03 45 00 00 00 a0 00 6d+07:57:00.000 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT Error -1 occurred at disk power-on lifetime: 151 hours (6 days + 7 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 52 00 fa 9a e0 Error: UNC 82 sectors at LBA = 0x009afa00 = 10156544 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 a8 aa f9 9a e0 00 6d+07:57:00.000 READ DMA EXT 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 00 6d+07:57:00.000 IDENTIFY DEVICE ef 03 45 00 00 00 a0 00 6d+07:57:00.000 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT Error -2 occurred at disk power-on lifetime: 151 hours (6 days + 7 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 52 00 fa 9a e0 Error: UNC 82 sectors at LBA = 0x009afa00 = 10156544 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 a8 aa f9 9a e0 00 6d+07:57:00.000 READ DMA EXT 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 00 6d+07:57:00.000 IDENTIFY DEVICE ef 03 45 00 00 00 a0 00 6d+07:57:00.000 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT Error -3 occurred at disk power-on lifetime: 151 hours (6 days + 7 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 52 00 fa 9a e0 Error: UNC 82 sectors at LBA = 0x009afa00 = 10156544 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 a8 aa f9 9a e0 00 6d+07:57:00.000 READ DMA EXT 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 00 6d+07:57:00.000 IDENTIFY DEVICE ef 03 45 00 00 00 a0 00 6d+07:57:00.000 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT Error -4 occurred at disk power-on lifetime: 151 hours (6 days + 7 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 52 00 fa 9a e0 Error: UNC 82 sectors at LBA = 0x009afa00 = 10156544 Commands leading to the command that caused the error were: CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name -- -- -- -- -- -- -- -- ---------------- -------------------- 25 00 a8 aa f9 9a e0 00 6d+07:57:00.000 READ DMA EXT 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT ec 00 00 00 00 00 a0 00 6d+07:57:00.000 IDENTIFY DEVICE ef 03 45 00 00 00 a0 00 6d+07:57:00.000 SET FEATURES [Set transfer mode] 27 00 00 00 00 00 e0 00 6d+07:57:00.000 READ NATIVE MAX ADDRESS EXT 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. [root@x99xxx99x99 ~]#
ãã¡ããã¨å¿å½ããããã£ãã®ã§ãã«ã¤ãã¦ã§ãããããã¯ãã¤ãã«æ°æ¥åã«æ®éã«éç¨ãã¦ãã SSD ãæ
éãã¾ããã¨ãã話ã§ãã SSD ã¯ãªããªãå£ããªãã®ã§ããã¤å£ããããªã¼ã¨é·ããæã£ã¦ãããã¤ãã«å£ãããã¨ã
ãã¡ãã«ä»ãã¦ã¯ã¡ããã¨èª¿ã¹ãã¨é¢ç½ãç¥è¦ãå¾ãããã¨æãã®ã§ãå
¬éã¾ã§ããæ«ããå¾
ã¡ä¸ããã¾ãã