Jumat, Juli 31, 2009

SMART, Palimpsest, 1 TB SATA di Fedora 11

Lagi asik make pc, tiba-tiba di terminal muncul pesan seperti ini:

[teguh@sys01 ~]$

Message from syslogd@sys01 at Jul 31 15:48:45 ... kernel:mpage_da_map_blocks block allocation failed for inode 384157 at logical offset 87517 with max blocks 1024 with error -30 Message from syslogd@sys01
at Jul 31 15:48:45 ... kernel:This should not happen.!! Data will be lost

Saat login, muncul peringatan sebagai berikut:


Sepertinya harddisk SATA 1 TB Seagate yang baru dipasang bermasalah.

Berikut tampilan palimpsest disk utility (antarmuka dari DeviceKit-Disks):



Masalah ini tidak terdeteksi saat harddisk ini dipasang di PC Windows Vista Business. Untuk jadi perhatian, ada bahasan berikut mengenai palimpsest dan pengecekan bad sector di Linux/Fedora. Jadi saya tampilkan juga informasi saat kejadian:

[root@sys01 teguh]# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sektor/track, 9729 cylinders
Units = cylinders dari 16065 * 512 = 8225280 bytes
Identifikasi disk: 0x0003b8dd

Perangkat Boot Awal Akhir Blocks Id System
/dev/sda1 1 2550 20482843+ 5 Extended
/dev/sda2 2551 6757 33792727+ 83 Linux
/dev/sda3 6758 6790 265072+ 82 Linux swap / Solaris
/dev/sda4 6791 9729 23607517+ 83 Linux
/dev/sda5 * 1 66 524288 83 Linux
/dev/sda6 66 2550 19957759+ 83 Linux

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sektor/track, 121601 cylinders
Units = cylinders dari 16065 * 512 = 8225280 bytes
Identifikasi disk: 0x493f415b

Perangkat Boot Awal Akhir Blocks Id System
/dev/sdb1 1 44857 360313821 83 Linux
/dev/sdb2 82616 121601 313155045 83 Linux


Berikutnya:

[root@sys01 teguh]# devkit-disks --show-info /dev/sdb
Showing information for /org/freedesktop/DeviceKit/Disks/devices/sdb
native-path: /sys/devices/pci0000:00/0000:00:1f.2/host3/target3:0:1/3:0:1:0/block/sdb
device: 8:16
device-file: /dev/sdb
by-id: /dev/disk/by-id/ata-ST31000340AS_9QJ2CKZD
by-id: /dev/disk/by-id/scsi-SATA_ST31000340AS_9QJ2CKZD
by-path: /dev/disk/by-path/pci-0000:00:1f.2-scsi-1:0:1:0
detected at: Sab 01 Agu 2009 08:20:59 WIT
system internal: 1
removable: 0
has media: 1 (detected at Sab 01 Agu 2009 08:20:59 WIT)
detects change: 0
detection by polling: 0
detection inhibitable: 0
detection inhibited: 0
is read only: 0
is mounted: 0
mount paths:
mounted by uid: 0
presentation hide: 0
presentation name:
presentation icon:
size: 1000204886016
block size: 512
job underway: no
usage:
type:
version:
uuid:
label:
partition table:
scheme: mbr
count: 2
drive:
vendor: ATA
model: ST31000340AS
revision: SD15
serial: 9QJ2CKZD
ejectable: 0
require eject: 0
media:
compat:
interface: ata
if speed: (unknown)
ATA SMART: Updated at Sab 01 Agu 2009 08:51:04 WIT
assessment: PASSED
bad sectors: Yes
attributes: One ore more attributes exceed threshold
temperature: 37° C / 98,6° F
powered on: 244 days
offline data: successful (650 second(s) to complete)
self-test status: success or never (0% remaining)
ext./short test: available
conveyance test: available
start test: available
abort test: available
short test: 1 minute(s) recommended polling time
ext. test: 231 minute(s) recommended polling time
conveyance test: 2 minute(s) recommended polling time
===============================================================================
Attribute Current/Worst/Threshold Status Value Type Updates
===============================================================================
raw-read-error-rate 103/ 80/ 6 good 49434656 Prefail Online
spin-up-time 92/ 91/ 0 n/a 0 msec Prefail Online
start-stop-count 100/100/ 20 good 61 Old-age Online
reallocated-sector-count 100/100/ 36 FAIL 2047 sectors Prefail Online
seek-error-rate 57/ 55/ 30 good 219072080035 Prefail Online
power-on-hours 94/ 94/ 0 n/a 244 days Old-age Online
spin-retry-count 100/100/ 97 good 1 Prefail Online
power-cycle-count 100/ 37/ 20 good 53 Old-age Online
attribute-184 100/100/ 99 good 0 Old-age Online
reported-uncorrect 1/ 1/ 0 n/a 760 sectors Old-age Online
attribute-188 100/ 99/ 0 n/a 0 Old-age Online
high-fly-writes 100/100/ 0 n/a 0 Old-age Online
airflow-temperature-celsius 63/ 49/ 45 good 37C / 98,6F Old-age Online
temperature-celsius-2 37/ 51/ 0 n/a 37C / 98,6F Old-age Online
hardware-ecc-recovered 49/ 20/ 0 n/a 49434656 Old-age Online
current-pending-sector 100/100/ 0 n/a 0 sectors Old-age Online
offline-uncorrectable 100/100/ 0 n/a 0 sectors Old-age Offline
udma-crc-error-count 200/200/ 0 n/a 0 Old-age Online

Wah, ternyata tool ini memperlihatkan bahwa harddisk ini ada bad sector-nya. Seterusnya:

[root@sys01 teguh]# skdump /dev/sdb
Device: /dev/sdb
Type: 16 Byte SCSI ATA SAT Passthru
Size: 953869 MiB
Model: [ST31000340AS]
Serial: [9QJ2CKZD]
Firmware: [SD15]
SMART Available: yes
Quirks:
Awake: yes
SMART Disk Health Good: yes
Off-line Data Collection Status: [Off-line data collection activity was completed without error.]
Total Time To Complete Off-Line Data Collection: 650 s
Self-Test Execution Status: [The previous self-test routine completed without error or no self-test has ever been run.]
Percent Self-Test Remaining: 0%
Conveyance Self-Test Available: yes
Short/Extended Self-Test Available: yes
Start Self-Test Available: yes
Abort Self-Test Available: yes
Short Self-Test Polling Time: 1 min
Extended Self-Test Polling Time: 231 min
Conveyance Self-Test Polling Time: 2 min
Bad Sectors: 2047 sectors
Powered On: 8.2 months
Power Cycles: 53
Average Powered On Per Power Cycle: 4.6 days
Temperature: 39.0 C
Overall Status: BAD_SECTOR
ID# Name Value Worst Thres Pretty Raw Type Updates Good
1 raw-read-error-rate 103 80 6 49441156 0x8469f2020000 prefail online yes
3 spin-up-time 92 91 0 0 ms 0x000000000000 prefail online n/a
4 start-stop-count 100 100 20 61 0x3d0000000000 old-age online yes
5 reallocated-sector-count 100 100 36 2047 sectors 0xff0700000000 prefail online no
7 seek-error-rate 57 55 30 219072080044 0xaca8b6013300 prefail online yes
9 power-on-hours 94 94 0 8.2 months 0xec1600000000 old-age online n/a
10 spin-retry-count 100 100 97 1 0x010000000000 prefail online yes
12 power-cycle-count 100 37 20 53 0x350000000000 old-age online yes
184 attribute-184 100 100 99 n/a 0x000000000000 old-age online yes
187 reported-uncorrect 1 1 0 760 sectors 0xf80200000000 old-age online n/a
188 attribute-188 100 99 0 n/a 0x040003000300 old-age online n/a
189 high-fly-writes 100 100 0 0 0x000000000000 old-age online n/a
190 airflow-temperature-celsius 62 49 45 38.0 C 0x26001a260000 old-age online yes
194 temperature-celsius-2 39 51 0 39.0 C 0x270000001700 old-age online n/a
195 hardware-ecc-recovered 49 20 0 49441156 0x8469f2020000 old-age online n/a
197 current-pending-sector 100 100 0 0 sectors 0x000000000000 old-age online n/a
198 offline-uncorrectable 100 100 0 0 sectors 0x000000000000 old-age offline n/a
199 udma-crc-error-count 200 200 0 0 0x000000000000 old-age online n/a


Begitu ceritanya.

Tidak ada komentar: