OVH Community, your new community space.

Problema con RAID


iraklis
09/01/2015, 18:51
Vaya... al final he dado con la tecla (parece).

Siguiendo lo que comenta este enlace, he podido recuperar un disco!

https://linuxexpresso.wordpress.com/...ock-in-ubuntu/

sudo mke2fs -n /dev/md2
Haciendo ésto, me salían una serie de bloques.

sudo e2fsck -b block_number /dev/md2
He elegido el primero que salía y lo he colocado sustituyendo "block_number".

Tras un buen rato "fixeando" e ignorando errores, he conseguido montar la unidad

iraklis
09/01/2015, 17:08
el dmesg | tail de cada montaje es:

Descriptor sense data with sense descriptors (in hex):
72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
00 06 49 48
sd 0:0:0:0: [sda]
Add. Sense: Unrecovered read error - auto reallocate failed
sd 0:0:0:0: [sda] CDB:
Read(10): 28 00 00 06 49 41 00 00 08 00
end_request: I/O error, dev sda, sector 411976
ata1: EH complete
EXT4-fs (md2): can't read group descriptor 39
72 03 11 04 00 00 00 0c 00 0a 80 00 00 00 00 00
58 cb b6 78
sd 1:0:0:0: [sdb]
Add. Sense: Unrecovered read error - auto reallocate failed
sd 1:0:0:0: [sdb] CDB:
Read(10): 28 00 58 cb b6 79 00 00 08 00
end_request: I/O error, dev sdb, sector 1489745529
ata2: EH complete
JBD2: recovery failed
EXT4-fs (md126): error loading journal
La notificación ofrecida por el técnico es:

Test disk sda and sdb are defective

Sdb is out of raid

iraklis
09/01/2015, 17:03
He intentado hacer que levantara los discos con el scan.

Me ha montado los discos de manera independiente:

mdadm --assemble --scan

root@rescue:/mnt# cat /proc/mdstat
Personalities : [linear] [raid0] [raid1] [raid10] [raid6] [raid5] [raid4] [multipath] [faulty]
md1 : active raid1 sda1[0]
203712 blocks [2/1] [U_]

md2 : active raid1 sda2[0]
1491481536 blocks [2/1] [U_]

md3 : active raid1 sda3[0]
460798912 blocks [2/1] [U_]

md126 : active raid1 sdb2[1]
1491481536 blocks [2/1] [_U]

md127 : active raid1 sdb3[1]
460798912 blocks [2/1] [_U]

md0 : active raid1 sdb1[1]
203712 blocks [2/1] [_U]

unused devices:
Pero intento montar md2 o md126 y me muestra el mismo error:
mount: wrong fs type, bad option, bad superblock on /dev/md2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

iraklis
09/01/2015, 16:27
Por cierto, he intentado realizar estas tareas tanto para sda2 como sdb2 pero no ha habido manera:

root@rescue:/mnt# mdadm --stop /dev/md2
mdadm: stopped /dev/md2
root@rescue:/mnt# mdadm --assemble --run /dev/md2 /dev/sda2
mdadm: /dev/md2 has been started with 1 drive (out of 2).
root@rescue:/mnt# mount /dev/md2 centos/
mount: wrong fs type, bad option, bad superblock on /dev/md2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

iraklis
09/01/2015, 16:22
Buenas tardes.

Hoy hemos tenido un problema con un disco duro y desde Soporte de OVH nos indican que hagamos una copia de seguridad de los datos que queramos guardar. El problema es que no nos es posible montar los discos que tenemos en RAID.

Al ejecutar "fdisk -l" nos devuelve esta información.

Código:
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000b741b

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        4096      411648      203776+  fd  Linux raid autodetect
/dev/sda2          411649  2983374848  1491481600   fd  Linux raid autodetect
Partition 2 does not start on physical sector boundary.
/dev/sda3      2983374849  3904972800   460798976   fd  Linux raid autodetect
Partition 3 does not start on physical sector boundary.
/dev/sda4      3904972801  3907018752     1022976   82  Linux swap / Solaris
Partition 4 does not start on physical sector boundary.

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x000cf4ba

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            4096      411648      203776+  fd  Linux raid autodetect
/dev/sdb2          411649  2983374848  1491481600   fd  Linux raid autodetect
Partition 2 does not start on physical sector boundary.
/dev/sdb3      2983374849  3904972800   460798976   fd  Linux raid autodetect
Partition 3 does not start on physical sector boundary.
/dev/sdb4      3904972801  3907018752     1022976   82  Linux swap / Solaris
Partition 4 does not start on physical sector boundary.

Disk /dev/md3: 471.9 GB, 471858085888 bytes
2 heads, 4 sectors/track, 115199728 cylinders, total 921597824 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Alignment offset: 3584 bytes
Disk identifier: 0x00000000

Disk /dev/md3 doesn't contain a valid partition table

Disk /dev/md2: 1527.3 GB, 1527277092864 bytes
2 heads, 4 sectors/track, 372870384 cylinders, total 2982963072 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Alignment offset: 3584 bytes
Disk identifier: 0x00000000

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md1: 208 MB, 208601088 bytes
2 heads, 4 sectors/track, 50928 cylinders, total 407424 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/md1 doesn't contain a valid partition table

La información que deseo guardar esta en la partición de 1'5Tb.

¿Alguien que me pueda echar una mano?

Muchísimas gracias a todos.

P.D.: Disculpad que éste sea mi primer mensaje, pero es que ando desesperado.