From: Wols Lists <antlists@youngman.org.uk>
To: William Morgan <therealbrewer@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: Two raid5 arrays are inactive and have changed UUIDs
Date: Sun, 19 Jan 2020 17:41:07 +0000 [thread overview]
Message-ID: <5E2494B3.9010006@youngman.org.uk> (raw)
In-Reply-To: <CALc6PW4-yMdprmube0bKku0FJVKghYt4tjhep26sy3F9Q5cB4g@mail.gmail.com>
On 19/01/20 17:02, William Morgan wrote:
> But then I get confused about the UUIDs. I'm trying to automount the
> array using fstab (no unusual settings in there, just defaults), but
> I'm not sure which of the two UUIDs above to use. So I look at mdadm
> for help:
>
> bill@bill-desk:~$ sudo mdadm --examine --scan
> ARRAY /dev/md/0 metadata=1.2 UUID=06ad8de5:3a7a15ad:88116f44:fcdee150
> name=bill-desk:0
>
> However, if I use this UUID starting with "06ad", then I get an error:
Looking at your output (and no I'm not that good at reading traces) it
looks to me like this 06ad8de5 uuid should be that of ONE of your
partitions. But it looks like it's been cloned to ALL partitions.
You didn't do anything daft like partitioning one disk, and then just
dd'ing or cp'ing the partition table across? Never a good idea.
>
> bill@bill-desk:~$ sudo mount -all
> mount: /media/bill/STUFF: mount(2) system call failed: Structure needs cleaning.
>
> But I don't know how to clean it if fsck says it's OK.
>
> On the other hand, if I use the UUID above starting with "ceef", then
> it mounts and everything seems OK.
Yup. That looks like the correct UUID for the array.
>
> Basically, I don't understand why lsblk lists two UUIDs for the array,
> and why mdadm gives the wrong one in terms of mounting. This is where
> I was confused before about the UUID changing. Any insight here?
>
Well it LOOKS to me like something has changed all the partition UUIDs
to the array UUID, and then the array UUID has changed to avoid a
collision.
I dunno - let's hope someone else has some ideas ...
Cheers,
Wol
next prev parent reply other threads:[~2020-01-19 17:41 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <CALc6PW4OKR2KVFgzoEbRJ0TRwvqi5EZAdC__HOx+vJKMT0TXYQ@mail.gmail.com>
[not found] ` <959ca414-0c97-2e8d-7715-a7cb75790fcd@youngman.org.uk>
2020-01-10 1:19 ` Two raid5 arrays are inactive and have changed UUIDs William Morgan
2020-01-10 1:55 ` Wols Lists
2020-01-13 22:40 ` William Morgan
2020-01-14 14:47 ` William Morgan
2020-01-14 15:23 ` Wols Lists
2020-01-15 22:12 ` William Morgan
2020-01-15 23:44 ` Wols Lists
2020-01-19 17:02 ` William Morgan
2020-01-19 17:07 ` William Morgan
2020-01-19 17:41 ` Wols Lists [this message]
2020-01-19 20:12 ` William Morgan
2020-01-19 21:10 ` Wol's lists
2020-01-24 14:10 ` Nix
2020-01-20 8:49 ` Robin Hill
2020-01-20 15:00 ` William Morgan
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=5E2494B3.9010006@youngman.org.uk \
--to=antlists@youngman.org.uk \
--cc=linux-raid@vger.kernel.org \
--cc=therealbrewer@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.