From: antlists <antlists@youngman.org.uk>
To: Thomas Grawert <thomasgrawert0282@gmail.com>
Cc: Phil Turmel <philip@turmel.org>, linux-raid@vger.kernel.org
Subject: Re: help requested for mdadm grow error
Date: Tue, 26 May 2020 02:16:20 +0100 [thread overview]
Message-ID: <dab8f436-ab65-880e-dc4a-b19d6a2659dc@youngman.org.uk> (raw)
In-Reply-To: <50c3b5ce-519b-57a6-6f11-f99d69c3fd23@gmail.com>
On 26/05/2020 00:31, Thomas Grawert wrote:
> ok, maybe it´s getting out of scope now. If so, please let me know...
>
> md0 is clean and running. no active resync. I just tried to mount the
> filesystem to check if everything is fine and to proceed with growing...
> thanks god, I did it this way because:
>
> root@nas:~# mount /dev/md0 /mnt
> mount: /mnt: wrong fs type, bad option, bad superblock on /dev/md0,
> missing codepage or helper program, or other error.
>
> root@nas:~# df -h
> Filesystem Größe Benutzt Verf. Verw% Eingehängt auf
> udev 16G 0 16G 0% /dev
> tmpfs 3,1G 11M 3,1G 1% /run
> /dev/sdg2 203G 7,2G 186G 4% /
> tmpfs 16G 0 16G 0% /dev/shm
> tmpfs 5,0M 4,0K 5,0M 1% /run/lock
> tmpfs 16G 0 16G 0% /sys/fs/cgroup
> /dev/sdg1 511M 5,2M 506M 1% /boot/efi
> tmpfs 3,1G 0 3,1G 0% /run/user/0
> root@nas:~# fsck /dev/md0
> fsck from util-linux 2.33.1
> e2fsck 1.44.5 (15-Dec-2018)
> ext2fs_open2: Ungültige magische Zahl im Superblock
> fsck.ext2: Superblock ungültig, Datensicherungs-Blöcke werden versucht ...
> fsck.ext2: Ungültige magische Zahl im Superblock beim Versuch, /dev/md0
> zu öffnen
>
> Der Superblock ist unlesbar bzw. beschreibt kein gültiges ext2/ext3/ext4-
> Dateisystem. Wenn das Gerät gültig ist und ein ext2/ext3/ext4-
> Dateisystem (kein swap oder ufs usw.) enthält, dann ist der Superblock
> beschädigt, und Sie könnten versuchen, e2fsck mit einem anderen Superblock
> zu starten:
> e2fsck -b 8193 <Gerät>
> oder
> e2fsck -b 32768 <Gerät>
>
> In /dev/md0 wurde eine gpt-Partitionstabelle gefunden
>
> =========================================
>
> For those who not understand German:
> ext2fs_open2: Invalid magical number in superblock
> fsck.ext2: Superblock invalid. Backup-blocks are tried...
> fsck.ext2: Invalid magical number in superblock when trying to open
> /dev/md0
>
> Found a gpt-partition-table at /dev/md0
>
> =========================================
>
> there should be a valid ext4 filesystem...
>
Oh help ...
Hopefully all that's happened is that something has written a GPT and
that's it. Unfortunately, that seems painfully common - rogue tools
format disks when they shouldn't ... I just hope it's not the Debian
upgrade that did it.
So we should hopefully just be able to recover the filesystem, except I
don't know how.
Did you actually try the e2fsck with the alternate superblocks? That's
the limit of what I can suggest. I don't think e2fsck will try them for
you - you have to explicitly tell it.
Just test it by using the "don't write anything" option, whatever that
is? If that then doesn't report many errors, it looks like we may have
our filesystem back - cross fingers ...
Cheers,
Wol
next prev parent reply other threads:[~2020-05-26 1:16 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-25 17:25 help requested for mdadm grow error Thomas Grawert
2020-05-25 18:09 ` Wols Lists
2020-05-25 18:18 ` Thomas Grawert
2020-05-25 18:55 ` Wols Lists
2020-05-25 19:05 ` Thomas Grawert
2020-05-25 19:20 ` Wols Lists
2020-05-25 21:45 ` John Stoffel
2020-05-25 21:55 ` antlists
2020-05-25 19:33 ` Mikael Abrahamsson
2020-05-25 19:35 ` Thomas Grawert
2020-05-25 19:42 ` Andy Smith
2020-05-25 20:30 ` Thomas Grawert
2020-05-25 21:19 ` antlists
2020-05-25 21:22 ` Thomas Grawert
2020-05-25 22:02 ` antlists
2020-05-25 22:18 ` Thomas Grawert
2020-05-25 22:32 ` antlists
2020-05-25 23:01 ` Thomas Grawert
2020-05-25 23:15 ` Thomas Grawert
2020-05-25 23:31 ` Thomas Grawert
2020-05-26 1:16 ` antlists [this message]
2020-05-26 1:16 ` Thomas Grawert
2020-05-25 18:24 ` Thomas Grawert
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=dab8f436-ab65-880e-dc4a-b19d6a2659dc@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=linux-raid@vger.kernel.org \
--cc=philip@turmel.org \
--cc=thomasgrawert0282@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox