From: Bill Davidsen <davidsen@tmr.com>
To: "Andrew K. Bressen" <akb+lists.linux-raid@mirror.to>
Cc: linux-raid@vger.kernel.org
Subject: Re: raid, lvm, and reused disks crashing initramfs
Date: Wed, 26 Mar 2008 12:32:36 -0400 [thread overview]
Message-ID: <47EA7AA4.4050305@tmr.com> (raw)
In-Reply-To: <0q3aqd3i9p.fsf@lanconius.mirror.to>
Andrew K. Bressen wrote:
> Hi--
>
> I have a linux system running a pair of raid-1 drives, hda and hdc,
> off of the motherboard IDE controller.
>
> Almost all the space on the disks is in md1.
> (There's a tiny md0 from an old configuration, the system used
> to boot off of it, but now it's empty and doesn't get mounted).
>
> On top of md1 is lvm, a single PV (horivg)
> with a bunch of logical volumes in it.
>
> About a year ago, I replaced hda with a newer drive.
>
> Recently, wanting more disk space, I took the old hda and added
> it back to the machine as hdc. I repartitioned, put lvm on it,
> creating a sigle PV (hori2vg) with two LVs in it. I copied files
> onto it and such, and all was well. Until a power outage and reboot.
>
> Then, the system crashed into initramfs. Exploring, it became
> evident that initramfs was trying to mount the old disk
> as root. This behavior occurred if the old disk was hdc or hdd.
>
> Remove the disk, system boots normally.
>
> (Except that X11 no longer works. But I'm just going to choose
> to believe that that's unrelated, even though I didn't change anything,
> and even though that also occurred when the system was hosed a year
> ago by being booted with hda and hdc reversed.)
>
> The system is an athlon running debian etch;
> kernel 2.6.22 (debian 2.6.22-3-k7 build).
>
> I'd like to put that disk back in and have my system work.
>
> Any ideas about what's going on and how to fix it?
>
You have stale configuration somewhere which causes the drive to be
mounted. Do you have all of your mdadm mounts using UUID of the
superblock? Did you zero the superblock(s) on the old drive? At this
point you might have to zero the whole drive if you're already using
UUID to start your arrays.
--
Bill Davidsen <davidsen@tmr.com>
"Woe unto the statesman who makes war without a reason that will still
be valid when the war is over..." Otto von Bismark
next prev parent reply other threads:[~2008-03-26 16:32 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-26 10:13 raid, lvm, and reused disks crashing initramfs Andrew K. Bressen
2008-03-26 16:32 ` Bill Davidsen [this message]
2008-03-26 18:45 ` uuids missing Andrew K. Bressen
[not found] ` <47EAA789.2030901@tmr.com>
2008-03-26 21:03 ` Andrew K. Bressen
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=47EA7AA4.4050305@tmr.com \
--to=davidsen@tmr.com \
--cc=akb+lists.linux-raid@mirror.to \
--cc=linux-raid@vger.kernel.org \
/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;
as well as URLs for NNTP newsgroup(s).