[Fwd: Re: problema con software RAID]
Original Message Subject: Re: problema con software RAID From: [EMAIL PROTECTED] Date: Mon, September 27, 2004 12:39 pm To: [EMAIL PROTECTED] Hola Alexis, ¿que versión de kernel tienes? Hay un parche para el LVM Un Saludo, Julio Rodríguez Hola a todos, estoy intentando configurar un woody para montar dos discos IDE en RAID 1 y tengo un problema. He seguido el software-RAID-howto (la receta Converting a non-RAID RedHat System to run on Software RAID adaptada a debian) y el sistema arranca. Mi problema es con una particion en concreto (/dev/md5 = /dev/hda7 + /dev/hdc7), al ejecutar el e2fsck sobre /dev/md5 para corregir el tamaño me salen errores Error reading block xx (Invalid argument) while doing inode scan: e2fsck -f /dev/md5 e2fsck 1.27 (8-Mar-2002) The filesystem size (according to the superblock) is 7897947 blocks The physical size of the device is 7895760 blocks Either the superblock or the partition table is likely to be corrupt! Aborty? no Pass 1: Checking inodes, blocks, and sizes Error reading block 7897093 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897094 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897095 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897096 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897097 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897098 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897099 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897100 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897101 (Invalid argument) while doing inode scan. Ignore errory? yes Error writing block 7897093 (Invalid argument) while doing inode scan. Ignore errory? yes Error reading block 7897102 (Invalid argument) while doing inode scan. Ignore errory? y asi sigue un buen rato. He pasado un e2fsck -c -f -v en hda7 y hdc7 y no han informado sobre ningun sector defectuoso. Los discos son nuevos, pero nunca se sabe ... Por si acaso tambien he forzado a que el tamaño de las particiones sea identico con un sfdisk -d /dev/hda | sfdisk --force /dev/hdc. * Version del nucleo: 2.4.27 * Tablas de particiones: /dev/hda Disk /dev/hda: 255 heads, 63 sectors, 4865 cylinders Units = cylinders of 16065 * 512 bytes Device BootStart EndBlocks Id System /dev/hda1 1 373 2996091 fd Linux raid autodetect /dev/hda2 374 435498015 82 Linux swap /dev/hda3 436 559996030 fd Linux raid autodetect /dev/hda4 560 4865 345879455 Extended /dev/hda5 560 808 261 fd Linux raid autodetect /dev/hda6 809 932995998+ fd Linux raid autodetect /dev/hda7 933 4865 31591791 fd Linux raid autodetect /dev/hdc Disk /dev/hdc: 16 heads, 63 sectors, 77545 cylinders Units = cylinders of 1008 * 512 bytes Device BootStart EndBlocks Id System /dev/hdc1 1 5945 2996091 fd Linux raid autodetect /dev/hdc2 5945 6933498015 82 Linux swap /dev/hdc3 6933 8910996030 fd Linux raid autodetect /dev/hdc4 8910 77536 345879455 Extended /dev/hdc5 8910 12878 261 fd Linux raid autodetect /dev/hdc6 12878 14854995998+ fd Linux raid autodetect /dev/hdc7 14854 77536 31591791 fd Linux raid autodetect * /proc/mdstat Personalities : [linear] [raid0] [raid1] [raid5] [multipath] read_ahead 1024 sectors md1 : active raid1 hda2[0] 497920 blocks [2/1] [U_] md0 : active raid1 hdc1[1] hda1[0] 2995968 blocks [2/2] [UU] md2 : active raid1 hdc3[1] hda3[0] 995904 blocks [2/2] [UU] md3 : active raid1 hdc5[1] hda5[0] 1999744 blocks [2/2] [UU] md4 : active raid1 hdc6[1] hda6[0] 995904 blocks [2/2] [UU] md5 : active raid1 hdc7[1] hda7[0] 31583040 blocks [2/2] [UU] unused devices: none * Salida de hdparm -I para los dos discos /dev/hda: non-removable ATA device, with non-removable media Model Number: WDC WD400BB-60DGA0 Serial Number: WD-WCADK4955524 Firmware Revision: 05.03E05 Standards: Supported: 1 2 3 4 5 Likely used: 5 Configuration: Logical max current cylinders 16383 4047 heads 16 16 sectors/track 63 255 bytes/track:57600 (obsolete) bytes/sector: 600 (obsolete) current sector capacity: 16511760 LBA user addressable sectors = 78165360 Capabilities: LBA, IORDY(can be disabled) Buffer size
Re: [Fwd: Re: problema con software RAID]
[EMAIL PROTECTED] wrote: Original Message Subject: Re: problema con software RAID From: [EMAIL PROTECTED] Date: Mon, September 27, 2004 12:39 pm To: [EMAIL PROTECTED] Hola Alexis, ¿que versión de kernel tienes? 2.4.27, no utilizo LVM Saludos -- (@ @) oOO(_)OOo-- Ojo por ojo y el mundo acabara ciego /\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) ---
Re: [Fwd: Re: problema con software RAID]
Alex, Utilizas raidtools, ¿no? [EMAIL PROTECTED] wrote: Original Message Subject: Re: problema con software RAID From: [EMAIL PROTECTED] Date: Mon, September 27, 2004 12:39 pm To: [EMAIL PROTECTED] Hola Alexis, ¿que versión de kernel tienes? 2.4.27, no utilizo LVM Saludos -- (@ @) oOO(_)OOo-- Ojo por ojo y el mundo acabara ciego /\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) --- -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Re: [Fwd: Re: problema con software RAID]
[EMAIL PROTECTED] wrote: Alex, Utilizas raidtools, ¿no? Si, el paquete raidtools2. Desde md0 hasta md4 funcionan perfectamente. El problema lo tengo exclusivamente con md5, en el momento de ejecutar e2fsck para fijar el tamaño de la particion tras activar el RAID. Saludos -- (@ @) oOO(_)OOo-- Ojo por ojo y el mundo acabara ciego /\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) ---
Re: problema con software RAID
On Mon, Sep 27, 2004 at 10:49:12AM +0200, Alexis Roda wrote: Hola a todos, estoy intentando configurar un woody para montar dos discos IDE en RAID 1 y tengo un problema. He seguido el software-RAID-howto (la receta Converting a non-RAID RedHat System to run on Software RAID adaptada a debian) Otra referencia interesante: http://rootraiddoc.alioth.debian.org/ y el sistema arranca. Mi problema es con una particion en concreto (/dev/md5 = /dev/hda7 + /dev/hdc7), al ejecutar el e2fsck sobre /dev/md5 para corregir el tamaño me salen errores ¿Para qué quieres corregir el tamaño? ¿No habrás jugado con e2fsadm? e2fsck -f /dev/md5 e2fsck 1.27 (8-Mar-2002) The filesystem size (according to the superblock) is 7897947 blocks The physical size of the device is 7895760 blocks Either the superblock or the partition table is likely to be corrupt! Aborty? no o a lo mejor has dado formato a esa partición *antes* de añadirla al RAID en vez de después. Extraído de http://www.linuxjournal.com/article.php?sid=5653 en este caso para /dev/md0 en vez de /dev/md5, -- Create an ext2 filesystem on /dev/md0 using the command mke2fs /dev/md0. Do not mke2fs on the RAID-1 component partitions, in this case /dev/hda2 and /dev/hdc2. If you do not create an ext2 filesystem on /dev/md0, then e2fsck /dev/md0 will return an error message, something like this: The filesystem size (according to the superblock) is 2104483 blocks. The physical size of the device is 2104384 blocks. Either the superblock or the partition table is likely to be corrupt. This is because mkraid writes the RAID superblock near the end of the component partitions. e2fsck does not recognize the RAID superblock that has caused the physical size to be smaller. You can mount /dev/md0 at this point, and even use /usr, but the ext2 filesystem superblock contains incorrect information. You may not notice problems but you should not use the filesystem in this state. You will not be able to boot and mount /dev/md0 unless you turn off the filesystem checking by making the appropriate entry in fstab (e.g., /dev/md0 /usr ext2 defaults 1 0). The 0 at the end of the line causes e2fsck to be skipped. Do not do this unless you have to fix your RAID. Make /dev/md0 an ext2 filesystem. - Espero que te sirva de algo, -- Agustin
Re: problema con software RAID
Agustin Martin wrote: On Mon, Sep 27, 2004 at 10:49:12AM +0200, Alexis Roda wrote: Hola a todos, estoy intentando configurar un woody para montar dos discos IDE en RAID 1 y tengo un problema. He seguido el software-RAID-howto (la receta Converting a non-RAID RedHat System to run on Software RAID adaptada a debian) Otra referencia interesante: http://rootraiddoc.alioth.debian.org/ Le echare un vistazo, el HOWTO es bastante incompleto. y el sistema arranca. Mi problema es con una particion en concreto (/dev/md5 = /dev/hda7 + /dev/hdc7), al ejecutar el e2fsck sobre /dev/md5 para corregir el tamaño me salen errores ¿Para qué quieres corregir el tamaño? ¿No habrás jugado con e2fsadm? no, en la receta del HOWTO, en el paso 11, dice: When we created the raid device, the physical partion became slightly smaller because a second superblock is stored at the end of the partition. If you reboot the system now, the reboot will fail with an error indicating the superblock is corrupt. Mas o menos es lo que indicas al final de tu mensaje. La solucion que da alli es ejecutar e2fsck -f /dev/mdX para corregir el tamaño y es justamente este e2fsck el que me da los errores. Espero que te sirva de algo, Ahora mismo estoy probando con otro disco en hda, he formateado el md5 tal como indicas y parece que funciona, el e2fsck no muestra errores. Mañana volvere a probar formateando md5 en el disco original para descartar (o no) problemas hardware. Muchas gracias -- (@ @) oOO(_)OOo-- Ojo por ojo y el mundo acabara ciego /\ Alexis Roda - Universitat Rovira i Virgili - Reus, Tarragona (Spain) ---
Re: problema con software RAID
On Mon, Sep 27, 2004 at 05:57:47PM +0200, Alexis Roda wrote: no, en la receta del HOWTO, en el paso 11, dice: When we created the raid device, the physical partion became slightly smaller because a second superblock is stored at the end of the partition. If you reboot the system now, the reboot will fail with an error indicating the superblock is corrupt. De todas formas ésto es si quieres partir de una partición ya hecha y con datos, y no quieres perderlos o utilizar un almacenamiento intermedio. En tu caso que partes de 0 puedes formatear directamente el RAID ya montado ya que todavía no tienes datos en él. Mas o menos es lo que indicas al final de tu mensaje. La solucion que da alli es ejecutar e2fsck -f /dev/mdX para corregir el tamaño y es justamente este e2fsck el que me da los errores. Se te ha pasado un detallito, pegando del Software RAID HOWTO (rescue)# mount / -o remount,ro (rescue)# e2fsck -f /dev/md0 This will generate the same error about inconsistent sizes and possibly corrupted superblock.Say N to 'Abort?'. (rescue)# resize2fs /dev/md0 Repeat for all /dev/md devices. Es resize2fs quien corrige el tamaño, pero exige que se haya corrido primero e2fsck, donde se esperan errores (en todo caso suponiendo que tengas una partición ext2, esto no te valdría para otro sistema de archivos) En cualquier caso en tu caso, si partes de particiones sin datos en el RAID, creo que te será más fácil montar primero el RAID y luego darle formato. Otra cosa sería que tengas datos en la partición de partida. Saludos, -- Agustin