OVH Community, your new community space.

Problemas con disco duro?


Ferny
24/03/2013, 22:00
Gracias Guille por la pista

En fin, ha vuelto a caer el servidor, y han abierto automáticamente un ticket para reemplazar el disco duro, ni me ha dado tiempo a pedirlo yo jeje. Esperemos que no tarde mucho y así pueda ponerme cuanto antes a reinstalar todo

Un saludo

Guille
24/03/2013, 20:39
La pista está aqui:
5 Reallocated_Sector_Ct 0x0033 052 052 036 Pre-fail Always
52 sectores reubicados por fallos seguramente de la superficie del disco.

Creo que con esos valores OVH debería cambiarte el disco.

Ferny
24/03/2013, 16:06
Hola

Desde hace unas horas algunos servicios de mi servidor ha dejado de responder (por ej. Apache, aunque otros como FTP o SSH funcionan). He estado analizando la causa y parece que el sistema de archivos ha pasado a ser de solo lectura, obtengo este error: Read-only file system (errno = 30)

El caso es que esto me sucedió hace un mes y acabé formateando, desde entonces ha estado funcionando pero ahora ha vuelto a ocurrir. Desde hace un par de días notaba que las páginas tardaban más en generarse, esta mañana ya era insoportable (en procesar un PHP que suele tardar 0.05 segundos estaba tardando hasta 20 segundos) y lo he reiniciado. Ha estado funcionando hasta un par de horas después, que como digo parece que el sistema de archivos ha pasado a "solo lectura".

Ya he confirmado que no se trata de un ataque. Creo que podría ser el disco duro, pero no soy un experto para interpretar los datos de smartctl. ¿Podría ser eso y en su caso solicitar el cambio de disco?

Depués he intentado repararlo mediante fsck pero no he tenido éxito, y de hecho tras reiniciar el servidor no ha vuelto a arrancar (con el vKVM he visto que da un kernel panic por no poder montar el sistema de archivos).

Gracias a quien me pueda echar un cable. Adjunto resultado de smartctl y fsck.

Saludos

Edito: tras el vKVM he pasado los tests del modo rescue (sin errores salvo los del smart del disco), y al reiniciarlo desde el HD ha vuelto a arrancar, aunque ha tardado 20 minutos. Ahora mismo parece ir bien.

Código:
smartctl --all /dev/sda1

smartctl 5.43 2012-06-30 r3573 [x86_64-linux-3.7.9-xxxx-std-ipv6-64] (local build)
Copyright (C) 2002-12 by Bruce Allen, http://smartmontools.sourceforge.net

=== START OF INFORMATION SECTION ===
Model Family:     Seagate Barracuda 7200.12
Device Model:     ST31000524AS
Serial Number:    9VPCLJLX
LU WWN Device Id: 5 000c50 03565296d
Firmware Version: JC4B
User Capacity:    1.000.204.886.016 bytes [1,00 TB]
Sector Size:      512 bytes logical/physical
Device is:        In smartctl database [for details use: -P show]
ATA Version is:   8
ATA Standard is:  ATA-8-ACS revision 4
Local Time is:    Sun Mar 24 15:26:23 2013 CET
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:  (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:                (  609) 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:        (   1) minutes.
Extended self-test routine
recommended polling time:        ( 174) minutes.
Conveyance self-test routine
recommended polling time:        (   2) minutes.
SCT capabilities:              (0x103f) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control 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
  1 Raw_Read_Error_Rate     0x000f   096   080   006    Pre-fail  Always       -       40711055
  3 Spin_Up_Time            0x0003   100   100   000    Pre-fail  Always       -       0
  4 Start_Stop_Count        0x0032   100   100   020    Old_age   Always       -       40
  5 Reallocated_Sector_Ct   0x0033   052   052   036    Pre-fail  Always       -       1984
  7 Seek_Error_Rate         0x000f   082   060   030    Pre-fail  Always       -       178554088
  9 Power_On_Hours          0x0032   083   083   000    Old_age   Always       -       15012
 10 Spin_Retry_Count        0x0013   100   100   097    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   020    Old_age   Always       -       40
183 Runtime_Bad_Block       0x0032   004   004   000    Old_age   Always       -       96
184 End-to-End_Error        0x0032   100   100   099    Old_age   Always       -       0
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       3764
188 Command_Timeout         0x0032   100   068   000    Old_age   Always       -       450978578606
189 High_Fly_Writes         0x003a   098   098   000    Old_age   Always       -       2
190 Airflow_Temperature_Cel 0x0022   056   046   045    Old_age   Always       -       44 (Min/Max 34/46)
194 Temperature_Celsius     0x0022   044   054   000    Old_age   Always       -       44 (0 23 0 0 0)
195 Hardware_ECC_Recovered  0x001a   038   023   000    Old_age   Always       -       40711055
197 Current_Pending_Sector  0x0012   100   099   000    Old_age   Always       -       26
198 Offline_Uncorrectable   0x0010   100   099   000    Old_age   Offline      -       26
199 UDMA_CRC_Error_Count    0x003e   200   199   000    Old_age   Always       -       15
240 Head_Flying_Hours       0x0000   100   253   000    Old_age   Offline      -       54692113562377
241 Total_LBAs_Written      0x0000   100   253   000    Old_age   Offline      -       574611286
242 Total_LBAs_Read         0x0000   100   253   000    Old_age   Offline      -       3038214376

SMART Error Log Version: 1
ATA Error Count: 3119 (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 3119 occurred at disk power-on lifetime: 15008 hours (625 days + 8 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 00 db 2e 4c 0e  Error: WP at LBA = 0x0e4c2edb = 239873755

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 20 ff ff ff 4f 00  32d+14:22:27.685  WRITE FPDMA QUEUED
  60 00 08 d8 2e 4c 4e 00  32d+14:22:27.685  READ FPDMA QUEUED
  61 00 38 ff ff ff 4f 00  32d+14:22:27.685  WRITE FPDMA QUEUED
  61 00 38 ff ff ff 4f 00  32d+14:22:27.685  WRITE FPDMA QUEUED
  61 00 38 ff ff ff 4f 00  32d+14:22:27.685  WRITE FPDMA QUEUED

Error 3118 occurred at disk power-on lifetime: 15008 hours (625 days + 8 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 00 db 2e 4c 0e  Error: WP at LBA = 0x0e4c2edb = 239873755

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 30 ff ff ff 4f 00  32d+14:22:19.595  WRITE FPDMA QUEUED
  60 00 08 d8 2e 4c 4e 00  32d+14:22:19.593  READ FPDMA QUEUED
  61 00 38 ff ff ff 4f 00  32d+14:22:19.535  WRITE FPDMA QUEUED
  61 00 38 ff ff ff 4f 00  32d+14:22:19.485  WRITE FPDMA QUEUED
  61 00 38 ff ff ff 4f 00  32d+14:22:19.432  WRITE FPDMA QUEUED

Error 3117 occurred at disk power-on lifetime: 15008 hours (625 days + 8 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 00 6d 90 4c 0e  Error: UNC at LBA = 0x0e4c906d = 239898733

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 68 90 4c 4e 00  32d+13:52:36.524  READ FPDMA QUEUED
  60 00 08 ff ff ff 4f 00  32d+13:52:36.523  READ FPDMA QUEUED
  61 00 08 ff ff ff 4f 00  32d+13:52:36.523  WRITE FPDMA QUEUED
  ea 00 00 00 00 00 a0 00  32d+13:52:36.522  FLUSH CACHE EXT
  60 00 08 08 50 d9 4d 00  32d+13:52:36.502  READ FPDMA QUEUED

Error 3116 occurred at disk power-on lifetime: 15008 hours (625 days + 8 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 00 6d 90 4c 0e  Error: UNC at LBA = 0x0e4c906d = 239898733

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 00 08 08 50 d9 4d 00  32d+13:52:33.606  READ FPDMA QUEUED
  60 00 08 68 90 4c 4e 00  32d+13:52:33.605  READ FPDMA QUEUED
  61 00 68 ff ff ff 4f 00  32d+13:52:33.605  WRITE FPDMA QUEUED
  60 00 08 78 19 ce 4d 00  32d+13:52:33.605  READ FPDMA QUEUED
  60 00 20 00 86 c5 4d 00  32d+13:52:33.605  READ FPDMA QUEUED

Error 3115 occurred at disk power-on lifetime: 15008 hours (625 days + 8 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 00 6d 90 4c 0e  Error: WP at LBA = 0x0e4c906d = 239898733

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  61 00 c8 ff ff ff 4f 00  32d+13:52:30.494  WRITE FPDMA QUEUED
  60 00 08 70 74 c7 4d 00  32d+13:52:30.494  READ FPDMA QUEUED
  60 00 00 50 90 4c 4e 00  32d+13:52:30.493  READ FPDMA QUEUED
  60 00 00 50 91 4c 4e 00  32d+13:52:30.493  READ FPDMA QUEUED
  61 00 50 ff ff ff 4f 00  32d+13:52:30.493  WRITE FPDMA QUEUED

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed without error       00%      4426         -
# 2  Short offline       Completed without error       00%         7         -
# 3  Short offline       Completed without error       00%         6         -
# 4  Short offline       Completed without error       00%         6         -

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.
Código:
fsck
fsck from util-linux 2.20.1
e2fsck 1.42.5 (29-Jul-2012)
/ contiene un sistema de ficheros con errores, se fuerza la revisión.
Paso 1: Verificando nodos-i, bloques y tamaños
Paso 2: Verificando la estructura de directorios
Paso 3: Revisando la conectividad de directorios
Paso 4: Revisando las cuentas de referencia
Paso 5: Revisando el resumen de información de grupos
La cuenta de bloques libres es incorrecta (89347103, contados=89329566).
Arreglar? si
La cuenta de nodos-i libres es incorrecta (24765846, contados=24765746).
Arreglar? si

/: ***** EL SISTEMA DE FICHEROS FUE MODIFICADO *****
/: ***** REINICIE LINUX *****
/: 195278/24961024 files (2.0% non-contiguous), 10510178/99839744 blocks