* java in Ubuntu https://launchpad.net/~webupd8team/+archive/ubuntu/java http://www.webupd8.org/2012/01/install-oracle-java-jdk-7-in-ubuntu-via.html * 3TB Seaga HD failure {{{ Error in /var/log/syslog Dec 30 14:26:23 homeserver kernel: [43971969.493019] ata3.00: BMDMA stat 0x25 Dec 30 14:26:23 homeserver kernel: [43971969.494077] ata3.00: failed command: READ DMA EXT Dec 30 14:26:23 homeserver kernel: [43971969.495077] ata3.00: cmd 25/00:00:d8:1f:6c/00:04:28:00:00/e0 tag 0 dma 524288 in Dec 30 14:26:23 homeserver kernel: [43971969.495078] res 51/40:00:d8:1f:6c/40:00:28:00:00/00 Emask 0x9 (media error) Dec 30 14:26:23 homeserver kernel: [43971969.497103] ata3.00: status: { DRDY ERR } Dec 30 14:26:23 homeserver kernel: [43971969.498060] ata3.00: error: { UNC } Dec 30 14:26:23 homeserver kernel: [43971969.560353] ata3.00: configured for UDMA/133 Dec 30 14:26:23 homeserver kernel: [43971969.560491] ata3: EH complete Dec 30 14:26:26 homeserver kernel: [43971972.396372] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Dec 30 14:26:26 homeserver kernel: [43971972.397036] ata3.00: BMDMA stat 0x25 Dec 30 14:26:26 homeserver kernel: [43971972.397892] ata3.00: failed command: READ DMA EXT Dec 30 14:26:26 homeserver kernel: [43971972.398649] ata3.00: cmd 25/00:00:d8:1f:6c/00:04:28:00:00/e0 tag 0 dma 524288 in Dec 30 14:26:26 homeserver kernel: [43971972.398650] res 51/40:00:d8:1f:6c/40:00:28:00:00/00 Emask 0x9 (media error) Dec 30 14:26:26 homeserver kernel: [43971972.399956] ata3.00: status: { DRDY ERR } Dec 30 14:26:26 homeserver kernel: [43971972.400612] ata3.00: error: { UNC } Dec 30 14:26:26 homeserver kernel: [43971972.464001] ata3.00: configured for UDMA/133 Dec 30 14:26:26 homeserver kernel: [43971972.464179] ata3: EH complete Dec 30 14:26:29 homeserver kernel: [43971975.317253] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Dec 30 14:26:29 homeserver kernel: [43971975.318240] ata3.00: BMDMA stat 0x25 Dec 30 14:26:29 homeserver kernel: [43971975.319236] ata3.00: failed command: READ DMA EXT Dec 30 14:26:29 homeserver kernel: [43971975.320220] ata3.00: cmd 25/00:00:d8:1f:6c/00:04:28:00:00/e0 tag 0 dma 524288 in Dec 30 14:26:29 homeserver kernel: [43971975.320222] res 51/40:00:d8:1f:6c/40:00:28:00:00/00 Emask 0x9 (media error) Dec 30 14:26:29 homeserver kernel: [43971975.322228] ata3.00: status: { DRDY ERR } Dec 30 14:26:29 homeserver kernel: [43971975.323210] ata3.00: error: { UNC } Dec 30 14:26:29 homeserver kernel: [43971975.387507] ata3.00: configured for UDMA/133 Dec 30 14:26:29 homeserver kernel: [43971975.387667] ata3: EH complete Dec 30 14:26:32 homeserver kernel: [43971978.415242] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Dec 30 14:26:32 homeserver kernel: [43971978.416184] ata3.00: BMDMA stat 0x25 Dec 30 14:26:32 homeserver kernel: [43971978.417089] ata3.00: failed command: READ DMA EXT Dec 30 14:26:32 homeserver kernel: [43971978.417991] ata3.00: cmd 25/00:00:d8:1f:6c/00:04:28:00:00/e0 tag 0 dma 524288 in Dec 30 14:26:32 homeserver kernel: [43971978.417992] res 51/40:00:d8:1f:6c/40:00:28:00:00/00 Emask 0x9 (media error) Dec 30 14:26:32 homeserver kernel: [43971978.419959] ata3.00: status: { DRDY ERR } Dec 30 14:26:32 homeserver kernel: [43971978.420872] ata3.00: error: { UNC } Dec 30 14:26:32 homeserver kernel: [43971978.530797] ata3.00: configured for UDMA/133 Dec 30 14:26:32 homeserver kernel: [43971978.530952] ata3: EH complete Dec 30 14:26:35 homeserver kernel: [43971981.358829] ata3.00: exception Emask 0x0 SAct 0x0 SErr 0x0 action 0x0 Dec 30 14:26:35 homeserver kernel: [43971981.359737] ata3.00: BMDMA stat 0x25 Dec 30 14:26:35 homeserver kernel: [43971981.360628] ata3.00: failed command: READ DMA EXT Dec 30 14:26:35 homeserver kernel: [43971981.361508] ata3.00: cmd 25/00:00:d8:1f:6c/00:04:28:00:00/e0 tag 0 dma 524288 in Dec 30 14:26:35 homeserver kernel: [43971981.361509] res 51/40:00:d8:1f:6c/40:00:28:00:00/00 Emask 0x9 (media error) Dec 30 14:26:35 homeserver kernel: [43971981.363348] ata3.00: status: { DRDY ERR } Dec 30 14:26:35 homeserver kernel: [43971981.364315] ata3.00: error: { UNC } Dec 30 14:26:35 homeserver kernel: [43971981.426406] ata3.00: configured for UDMA/133 Dec 30 14:26:35 homeserver kernel: [43971981.426556] sd 2:0:0:0: [sdc] Unhandled sense code Dec 30 14:26:35 homeserver kernel: [43971981.426559] sd 2:0:0:0: [sdc] Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE Dec 30 14:26:35 homeserver kernel: [43971981.426562] sd 2:0:0:0: [sdc] Sense Key : Medium Error [current] [descriptor] Dec 30 14:26:35 homeserver kernel: [43971981.426566] Descriptor sense data with sense descriptors (in hex): Dec 30 14:26:35 homeserver kernel: [43971981.426568] 72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00 Dec 30 14:26:35 homeserver kernel: [43971981.426576] 28 6c 1f d8 Dec 30 14:26:35 homeserver kernel: [43971981.426579] sd 2:0:0:0: [sdc] Add. Sense: Unrecovered read error - auto reallocate failed Dec 30 14:26:35 homeserver kernel: [43971981.426584] sd 2:0:0:0: [sdc] CDB: Read(10): 28 00 28 6c 1f d8 00 04 00 00 Dec 30 14:26:35 homeserver kernel: [43971981.426592] end_request: I/O error, dev sdc, sector 678174680 Dec 30 14:26:35 homeserver kernel: [43971981.427537] ata3: EH complete frdeng@homeserver:~$ sudo smartctl -A /dev/sdc smartctl 5.41 2011-06-09 r3365 [x86_64-linux-3.2.0-51-generic] (local build) Copyright (C) 2002-11 by Bruce Allen, http://smartmontools.sourceforge.net === START OF READ SMART DATA SECTION === 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 078 078 006 Pre-fail Always - 9992506 3 Spin_Up_Time 0x0003 091 091 000 Pre-fail Always - 0 4 Start_Stop_Count 0x0032 100 100 020 Old_age Always - 19 5 Reallocated_Sector_Ct 0x0033 100 100 010 Pre-fail Always - 0 7 Seek_Error_Rate 0x000f 072 060 030 Pre-fail Always - 34505090274 9 Power_On_Hours 0x0032 087 087 000 Old_age Always - 12258 10 Spin_Retry_Count 0x0013 100 100 097 Pre-fail Always - 0 12 Power_Cycle_Count 0x0032 100 100 020 Old_age Always - 7 183 Runtime_Bad_Block 0x0032 100 100 000 Old_age Always - 0 184 End-to-End_Error 0x0032 100 100 099 Old_age Always - 0 187 Reported_Uncorrect 0x0032 001 001 000 Old_age Always - 528 188 Command_Timeout 0x0032 100 100 000 Old_age Always - 0 189 High_Fly_Writes 0x003a 094 094 000 Old_age Always - 6 190 Airflow_Temperature_Cel 0x0022 052 046 045 Old_age Always - 48 (Min/Max 29/54) 191 G-Sense_Error_Rate 0x0032 100 100 000 Old_age Always - 0 192 Power-Off_Retract_Count 0x0032 100 100 000 Old_age Always - 4 193 Load_Cycle_Count 0x0032 100 100 000 Old_age Always - 24 194 Temperature_Celsius 0x0022 048 054 000 Old_age Always - 48 (0 21 0 0) 197 Current_Pending_Sector 0x0012 099 099 000 Old_age Always - 192 198 Offline_Uncorrectable 0x0010 099 099 000 Old_age Offline - 192 199 UDMA_CRC_Error_Count 0x003e 200 200 000 Old_age Always - 0 240 Head_Flying_Hours 0x0000 100 253 000 Old_age Offline - 121783797690328 241 Total_LBAs_Written 0x0000 100 253 000 Old_age Offline - 23726725856 242 Total_LBAs_Read 0x0000 100 253 000 Old_age Offline - 39692673934 Found 3 sectors I/O error, fixed using hdparm --write-sector $ sudo hdparm --write-sector 678175704 --yes-i-know-what-i-am-doing /dev/sdc $ sudo hdparm --yes-i-know-what-i-am-doing --write-sector 678177016 /dev/sdc $ sudo hdparm --write-sector 678174680 --yes-i-know-what-i-am-doing /dev/sdc After fix, $ sudo smartctl -A /dev/sda | egrep "Reallocated|Pending|Uncorrectable" 5 Reallocated_Sector_Ct 0x0033 252 252 010 Pre-fail Always - 0 196 Reallocated_Event_Count 0x0032 252 252 000 Old_age Always - 0 197 Current_Pending_Sector 0x0032 252 252 000 Old_age Always - 0 198 Offline_Uncorrectable 0x0030 252 252 000 Old_age Offline - 0 }}}