На моем домашнем сервере внезапно заболел раздел JFS. Этот раздел использовался для торрентов и SVN, скорее всего он полностью заполнен данными. И пару дней назад система перестала отвечать. После перезагрузки убунту сообщила, что раздел sdb6 поврежден и его необходимо восстанавливать вручную.
Я подключил диск к другой машине, попытался провести обычные операции:
# fsck.jfs /dev/sdb6
fsck.jfs version 1.1.12, 24-Aug-2007
processing started: 5/22/2010 21.36.23
Using default parameter: -p
The current device is: /dev/sdb6
Block size in bytes: 4096
Filesystem size in blocks: 13187349
**Phase 0 - Replay Journal Log
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 54003843072
logredo failed (rc=-252). fsck continuing.
**Phase 1 - Check Blocks, Files/Directories, and Directory Entries
ujfs_rw_diskblocks: read 0 of 4096 bytes at offset 536870912
Unrecoverable error reading M from /dev/sdb6. CANNOT CONTINUE.
Не помогло, разумеется. При монтировании сообщается об ошибке(при необходимости, я сообщу о ней, сейчас сканирую диск badblocks)
Все остальные диски монтируются нормально.
Смарт говорит, что отказ неминуем:
Код: Выделить всё
$ sudo smartctl --all /dev/sdb6
smartctl version 5.38 [i686-pc-linux-gnu] Copyright (C) 2002-8 Bruce Allen
Home page is http://smartmontools.sourceforge.net/
=== START OF INFORMATION SECTION ===
Model Family: Western Digital Caviar family
Device Model: WDC WD800BB-22JHA0
Serial Number: WD-WMAM91636691
Firmware Version: 05.01C05
User Capacity: 80 026 361 856 bytes
Device is: In smartctl database [for details use: -P show]
ATA Version is: 6
ATA Standard is: Exact ATA specification draft version not indicated
Local Time is: Sun May 23 00:58:25 2010 EEST
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: (2460) 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.
No General Purpose Logging support.
Short self-test routine
recommended polling time: ( 2) minutes.
Extended self-test routine
recommended polling time: ( 35) minutes.
Conveyance self-test routine
recommended polling time: ( 5) minutes.
SCT capabilities: (0x001f) SCT Status supported.
SCT Feature Control 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 0x000f 200 200 051 Pre-fail Always - 169
3 Spin_Up_Time 0x0003 176 159 021 Pre-fail Always - 2166
4 Start_Stop_Count 0x0032 096 096 000 Old_age Always - 4736
5 Reallocated_Sector_Ct 0x0033 125 125 140 Pre-fail Always FAILING_NOW 596
7 Seek_Error_Rate 0x000f 200 200 051 Pre-fail Always - 0
9 Power_On_Hours 0x0032 081 081 000 Old_age Always - 14132
10 Spin_Retry_Count 0x0013 100 100 051 Pre-fail Always - 0
11 Calibration_Retry_Count 0x0012 100 100 051 Old_age Always - 0
12 Power_Cycle_Count 0x0032 096 096 000 Old_age Always - 4657
194 Temperature_Celsius 0x0022 100 079 000 Old_age Always - 43
196 Reallocated_Event_Count 0x0032 138 138 000 Old_age Always - 62
197 Current_Pending_Sector 0x0012 172 172 000 Old_age Always - 369
198 Offline_Uncorrectable 0x0010 145 145 000 Old_age Offline - 725
199 UDMA_CRC_Error_Count 0x003e 200 192 000 Old_age Always - 183
200 Multi_Zone_Error_Rate 0x0009 001 001 051 Pre-fail Offline FAILING_NOW 25285
SMART Error Log Version: 1
Warning: ATA error count 15523 inconsistent with error log pointer 5
ATA Error Count: 15523 (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 15523 occurred at disk power-on lifetime: 14130 hours (588 days + 18 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 07 38 08 32 e9 Error: UNC 7 sectors at LBA = 0x09320838 = 154273848
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 37 08 32 09 28 02:14:40.395 READ DMA
f8 00 00 00 00 00 00 28 02:14:40.375 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 00 28 02:14:40.370 IDENTIFY DEVICE
ef 03 42 00 00 00 00 28 02:14:40.370 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 00 28 02:14:40.370 READ NATIVE MAX ADDRESS
Error 15522 occurred at disk power-on lifetime: 14130 hours (588 days + 18 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 07 38 08 32 e9 Error: UNC 7 sectors at LBA = 0x09320838 = 154273848
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 37 08 32 09 28 02:14:38.135 READ DMA
f8 00 00 00 00 00 00 28 02:14:38.120 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 00 28 02:14:38.110 IDENTIFY DEVICE
ef 03 42 00 00 00 00 28 02:14:38.110 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 00 28 02:14:38.110 READ NATIVE MAX ADDRESS
Error 15521 occurred at disk power-on lifetime: 14130 hours (588 days + 18 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 07 38 08 32 e9 Error: UNC 7 sectors at LBA = 0x09320838 = 154273848
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 37 08 32 09 28 02:14:36.180 READ DMA
f8 00 00 00 00 00 00 28 02:14:36.165 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 00 28 02:14:36.155 IDENTIFY DEVICE
ef 03 42 00 00 00 00 28 02:14:36.155 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 00 28 02:14:36.155 READ NATIVE MAX ADDRESS
Error 15520 occurred at disk power-on lifetime: 14130 hours (588 days + 18 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 07 38 08 32 e9 Error: UNC 7 sectors at LBA = 0x09320838 = 154273848
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 37 08 32 09 28 02:14:34.075 READ DMA
f8 00 00 00 00 00 00 28 02:14:34.060 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 00 28 02:14:34.055 IDENTIFY DEVICE
ef 03 42 00 00 00 00 28 02:14:34.055 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 00 28 02:14:34.055 READ NATIVE MAX ADDRESS
Error 15519 occurred at disk power-on lifetime: 14130 hours (588 days + 18 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 07 38 08 32 e9 Error: UNC 7 sectors at LBA = 0x09320838 = 154273848
Commands leading to the command that caused the error were:
CR FR SC SN CL CH DH DC Powered_Up_Time Command/Feature_Name
-- -- -- -- -- -- -- -- ---------------- --------------------
c8 00 08 37 08 32 09 28 02:14:32.135 READ DMA
f8 00 00 00 00 00 00 28 02:14:32.115 READ NATIVE MAX ADDRESS
ec 00 00 00 00 00 00 28 02:14:32.110 IDENTIFY DEVICE
ef 03 42 00 00 00 00 28 02:14:32.110 SET FEATURES [Set transfer mode]
f8 00 00 00 00 00 00 28 02:14:32.110 READ NATIVE MAX ADDRESS
SMART Self-test log structure revision number 1
Num Test_Description Status Remaining LifeTime(hours) LBA_of_first_error
# 1 Short offline Fatal or unknown error 90% 8563 4292870144
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.
Я не знаю, какие данные сообщить вам, называйте команды, я дам выводы их. Так же я никогда не занимался восстановлением и анализом дисков в linux.
Передо мной задача: выяснить причину сбоя и восстановить диск.
Спасибо за помощь.