サッカーワールドカップを見ながら、ふと、サーバーのSSDの寿命がきになったんです。 HDDの時は全く気にしなかった寿命、 寿命の前にスペック、容量、規格が変わるほうが多かったからだけども、 SSDになってからは寿命はわかるものになったし、必ずくるものになった。 でPCならば、CrystalDiskInfoで簡単に見れて、ここの E8 利用可能予備領域[寿命] E9 メディア消耗指数 でわかる。100からどんどん少なくなっていくので、それで判断なんだけども、 サーバーでFreebsdだと smartmontools でわかるらしい。 早速、インストールしてみた。 /usr/ports/sysutils/smartmontools
make install インストール終わったら、 SSDのデバイス名を dmesg | more 等でしらべて。 確認コマンドをで表示 smartctl --smart=on -a /dev/ada0 smartctl 6.0 2012-10-10 r3643 [FreeBSD 9.1-RELEASE amd64] (local build) Copyright (C) 2002-12, Bruce Allen, Christian Franke, www.smartmontools.org === START OF INFORMATION SECTION === Device Model: INTEL SSDSC2CT240A4 Serial Number: CVKI304300F5240DGN LU WWN Device Id: 5 001517 8f3695779 Firmware Version: 335t User Capacity: 240,057,409,536 bytes [240 GB] Sector Size: 512 bytes logical/physical Rotation Rate: Solid State Device Device is: Not in smartctl database [for details use: -P showall] ATA Version is: ACS-2 (minor revision not indicated) SATA Version is: SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s) Local Time is: Fri Jun 27 01:21:04 2014 JST SMART support is: Available - device has SMART capability. SMART support is: Disabled === START OF ENABLE/DISABLE COMMANDS SECTION === SMART 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: ( 5860) seconds. Offline data collection capabilities: (0x7f) SMART execute Offline immediate. Auto Offline data collection on/off support. Abort 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: ( 1) minutes. Extended self-test routine recommended polling time: ( 48) minutes. Conveyance self-test routine recommended polling time: ( 2) minutes. SCT capabilities: (0x0021) SCT Status supported. SCT Data Table supported. 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 5 Reallocated_Sector_Ct 0x0032 100 100 000 Old_age Always - 0 9 Power_On_Hours 0x0032 100 100 000 Old_age Always - 9868 (119 108 0) 12 Power_Cycle_Count 0x0032 100 100 000 Old_age Always - 31 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 14 225 Unknown_SSD_Attribute 0x0032 100 100 000 Old_age Always - 324005 232 Available_Reservd_Space 0x0033 100 100 010 Pre-fail Always - 0 233 Media_Wearout_Indicator 0x0032 100 100 000 Old_age Always - 0 241 Total_LBAs_Written 0x0032 100 100 000 Old_age Always - 324005 242 Total_LBAs_Read 0x0032 100 100 000 Old_age Always - 65002 249 Unknown_Attribute 0x0013 100 100 000 Pre-fail Always - 6379 SMART Error Log not supported 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 0 Note: revision number not 1 implies that no selective self-test has ever been run 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.
で、 E8にあたる 232 Available_Reservd_Space が予約領域の残っている数 100 から始まって、 10 までなら安全らしいよ。 E9にあたる 233 Media_Wearout_Indicator が使用率 100 から 1 まで減っていくらしいよ まだ、まだ大丈夫っぽい。ほ。
|