AW: ext3 auf Softwareraid schein hin zu sein
-----Ursprüngliche Nachricht----- Von: David Haller [mailto:lists@dhaller.de] Gesendet: Dienstag, 13. Juni 2006 14:16 An: suse-linux@suse.com Betreff: Re: ext3 auf Softwareraid schein hin zu sein
Hallo,
Am Die, 13 Jun 2006, ralf.prengel@comline.de schrieb:
Du koenntest als erstes mal folgendes machen:
dd if=/dev/md1 skip=128 count=1 | strings
linuxnfs:/tmp # dd if=/dev/md1 skip=128 count=1 | strings 1+0 records in 1+0 records out 512 bytes (512 B) copied, 0.000186 seconds, 2.8 MB/s linuxnfs:/tmp #
Ok. Gut, da ist schonmal kein Reisswolffs *g*
Wenn ja solltest du dann auf jeden Fall mal 'e2fsck -v -C 0 /dev/md1' aufrufen und erzaehle dann, wie das e2fsck lief, d.h. welche _Art_ Fehler gemeldet wurden.
linuxnfs:/tmp # e2fsck -v -C 0 /dev/md1 e2fsck 1.38 (30-Jun-2005) Group descriptors look bad... trying backup blocks... e2fsck: Bad magic number in super-block while trying to open /dev/md1 [..] linuxnfs:/tmp # e2fsck -b 8193 /dev/md1 e2fsck 1.38 (30-Jun-2005) e2fsck: Bad magic number in super-block while trying to open /dev/md1
Hm. Das ist eigenartig, die Magic-Number in der Ausgabe von 'tune2fs -l' stimmt naemlich...
Hm. "sparse_super". Du koenntest nach weiteren SBs suchen:
$ for i in `seq 1 10`; do echo "2^13*$i+1"; done | bc | xargs 8193 16385 24577 32769 40961 49153 57345 65537 73729 81921
Diese jeweils bei '-b' angeben und ggfs. weitere errechnen.
Ah, halt, nimm 'tune2fs -l' zur Hilfe wo es SBs findet:
LANG=C strace -e lseek tune2fs -l /dev/md1 >/dev/null
Das gibt mehrere Zeilen wie
lseek(3, 1024, SEEK_SET) = 1024 lseek(3, 4096, SEEK_SET) = 4096 lseek(3, 8192, SEEK_SET) = 8192 [..] lseek(3, 32768, SEEK_SET) = 32768
aus. Die letzte sollte dann als Argument fuer das '-b' beim e2fsck passen bzw. diese Zahl + 1. oben also waere z.B.
e2fsck -v -C 0 -b 32769 /dev/md1
(bei mir ist's natuerlich ein anderes device).
Ich ahbe jetzt einen Superblock finden können aber linuxnfs:~ # fsck.ext2 -p -b 294912 /dev/md1 /dev/md1: Superblock has an invalid ext3 journal (inode 8). CLEARED. *** ext3 journal has been deleted - filesystem is now ext2 only *** /dev/md1: Superblock doesn't have has_journal flag, but has ext3 journal inode. CLEARED. /dev/md1: The filesystem size (according to the superblock) is 87915504 blocks The physical size of the device is 87915456 blocks Either the superblock or the partition table is likely to be corrupt! Hast du dazu noch einen Tip? -- Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com
Hallo, Am Die, 13 Jun 2006, ralf.prengel@comline.de schrieb:
Von: David Haller [mailto:lists@dhaller.de] [Bitte kuerze die Mail auch wenn du notgedrungen zu Autschguck greifen musst] Ich ahbe jetzt einen Superblock finden können aber
linuxnfs:~ # fsck.ext2 -p -b 294912 /dev/md1 /dev/md1: Superblock has an invalid ext3 journal (inode 8). CLEARED. *** ext3 journal has been deleted - filesystem is now ext2 only ***
/dev/md1: Superblock doesn't have has_journal flag, but has ext3 journal inode. CLEARED.
Ok. Journal ist entfernt.
/dev/md1: The filesystem size (according to the superblock) is 87915504 blocks The physical size of the device is 87915456 blocks
Ist _eigentlich_ unkritisch, laesst sich u.U. mit resize2fs nachtraeglich korrigieren, aber:
Either the superblock or the partition table is likely to be corrupt!
da sollte man vorher die Partitionstabelle nochmal pruefen. Maile mal die Ausgabe von 'fdisk -l' und ggfs. das bei SW-RAID dazu ergaenzende. Wenn die Partitionstabelle passt kannst du das Journal bei nicht gemountetem FS mit 'tune2fs -j /dev/md1' wieder anlegen. Und dann nochmal ein e2fsck. -dnh -- Netscape als root auszufuehren ist das Aequivalent zum Betreten des Innenhofes eines Hochsicherheitstrakts zur Pausenzeit, sich die Hosen runterzuziehen, weit nach vorn zu beugen und zu bruellen: "Los Jungs, holt es euch!". Oder Windows zu benutzen. [Wolfgang Weisselberg in suse-linux] -- Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com
-----Ursprüngliche Nachricht----- Von: David Haller [mailto:lists@dhaller.de] Gesendet: Dienstag, 13. Juni 2006 16:17 An: suse-linux@suse.com Betreff: Re: ext3 auf Softwareraid schein hin zu sein
Hallo,
Am Die, 13 Jun 2006, ralf.prengel@comline.de schrieb:
Von: David Haller [mailto:lists@dhaller.de] [Bitte kuerze die Mail auch wenn du notgedrungen zu Autschguck greifen musst] Ich ahbe jetzt einen Superblock finden können aber
linuxnfs:~ # fsck.ext2 -p -b 294912 /dev/md1 /dev/md1: Superblock has an invalid ext3 journal (inode 8). CLEARED. *** ext3 journal has been deleted - filesystem is now ext2 only ***
/dev/md1: Superblock doesn't have has_journal flag, but has ext3 journal inode. CLEARED.
Ok. Journal ist entfernt.
/dev/md1: The filesystem size (according to the superblock) is 87915504 blocks The physical size of the device is 87915456 blocks
Ist _eigentlich_ unkritisch, laesst sich u.U. mit resize2fs nachtraeglich korrigieren, aber:
Either the superblock or the partition table is likely to be corrupt!
da sollte man vorher die Partitionstabelle nochmal pruefen.
Maile mal die Ausgabe von 'fdisk -l' und ggfs. das bei SW-RAID dazu ergaenzende.
Wenn die Partitionstabelle passt kannst du das Journal bei nicht gemountetem FS mit 'tune2fs -j /dev/md1' wieder anlegen.
Und dann nochmal ein e2fsck.
-dnh
linuxnfs:~ # fdisk -l Disk /dev/hda: 10.2 GB, 10242892800 bytes 16 heads, 63 sectors/track, 19846 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hda1 1 1024 516064+ 82 Linux swap / Solaris /dev/hda2 * 1025 19846 9486288 83 Linux Disk /dev/hde: 120.0 GB, 120034123776 bytes 16 heads, 63 sectors/track, 232581 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hde1 1 232581 117220792+ fd Linux raid autodetect Disk /dev/hdf: 120.0 GB, 120034123776 bytes 16 heads, 63 sectors/track, 232581 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hdf1 1 232581 117220792+ fd Linux raid autodetect Disk /dev/hdg: 120.0 GB, 120034123776 bytes 16 heads, 63 sectors/track, 232581 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hdg1 1 232581 117220792+ fd Linux raid autodetect Disk /dev/hdh: 120.0 GB, 120034123776 bytes 16 heads, 63 sectors/track, 232581 cylinders Units = cylinders of 1008 * 512 = 516096 bytes Device Boot Start End Blocks Id System /dev/hdh1 1 232581 117220792+ fd Linux raid autodetect Disk /dev/hdi: 300.0 GB, 300069052416 bytes 255 heads, 63 sectors/track, 36481 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdi1 1 36480 293025568+ fd Linux raid autodetect Disk /dev/hdj: 300.0 GB, 300069052416 bytes 255 heads, 63 sectors/track, 36481 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdj1 1 36480 293025568+ fd Linux raid autodetect Disk /dev/hdk: 300.0 GB, 300069052416 bytes 255 heads, 63 sectors/track, 36481 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdk1 1 36480 293025568+ fd Linux raid autodetect Disk /dev/hdl: 300.0 GB, 300069052416 bytes 255 heads, 63 sectors/track, 36481 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/hdl1 1 36480 293025568+ fd Linux raid autodetect Disk /dev/md0: 900.1 GB, 900174053376 bytes 2 heads, 4 sectors/track, 219769056 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk /dev/md0 doesn't contain a valid partition table Disk /dev/md1: 360.1 GB, 360101707776 bytes 2 heads, 4 sectors/track, 87915456 cylinders Units = cylinders of 8 * 512 = 4096 bytes Disk /dev/md1 doesn't contain a valid partition table linuxnfs:~ # Gruß -- Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com
Hallo, Am Mit, 14 Jun 2006, ralf.prengel@comline.de schrieb: [..]
linuxnfs:~ # fdisk -l [hda-hdh] Disk /dev/hdi: 300.0 GB, 300069052416 bytes 255 heads, 63 sectors/track, 36481 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System /dev/hdi1 1 36480 293025568+ fd Linux raid autodetect [dito bei hdj1-hdl1]
Hier verschenkst du jew. 1 Zylinder mit ~8 MB... Ansonsten gibt's da nix besonderes.
Disk /dev/md0: 900.1 GB, 900174053376 bytes 2 heads, 4 sectors/track, 219769056 cylinders Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md0 doesn't contain a valid partition table
Disk /dev/md1: 360.1 GB, 360101707776 bytes 2 heads, 4 sectors/track, 87915456 cylinders Units = cylinders of 8 * 512 = 4096 bytes
Disk /dev/md1 doesn't contain a valid partition table
Hm. Du hast doch das FS direkt auf /dev/md1 angelegt, oder? Wieso das hier beim fdisk -l auftaucht weiss ich nicht, aber ich kenne mich mit RAID ja auch nicht aus ;( Die zugrundeliegende Partitionierung ist jedenfalls i.O. Und das "zu kurze" Dateisystem ist auch kein Problem, es wird halt ein bisserl Platz nicht verwendet. Wenn du selber also nochmal dein RAID Kram kontrolliert hast wuerde ich sicherheitshalber nochmal den fsck machen, das Journal wieder anlegen (tune2fs -j) und dann nochmal fsck. HTH, -dnh -- Ich menstruiere allenfalls beim Rasieren. -- Mirko Liss -- Um die Liste abzubestellen, schicken Sie eine Mail an: suse-linux-unsubscribe@suse.com Um eine Liste aller verfuegbaren Kommandos zu bekommen, schicken Sie eine Mail an: suse-linux-help@suse.com
participants (2)
-
David Haller
-
ralf.prengel@comline.de