All of lore.kernel.org
 help / color / mirror / Atom feed
From: Adam Goryachev <adam@websitemanagers.com.au>
To: Skip Coombe <skipcoombe@gmail.com>
Cc: linux-raid@vger.kernel.org
Subject: Re: persistent removed MD referrence on reboot
Date: Tue, 31 Jul 2012 11:26:48 +1000	[thread overview]
Message-ID: <50173458.40505@websitemanagers.com.au> (raw)
In-Reply-To: <CAO7BsSnu+CZMeQ=YNUKDOCQGF9FYjCTV37rhkBiW1JGAVexxuQ@mail.gmail.com>

On 07/31/2012 11:02 AM, Skip Coombe wrote:
> I have an md entry referring to a badly removed RAID1 device (by me) after
> the associated device crashed (can't afford a replacement drive at this
> time).
> Despite attempts to remove the reference, after a reboot I see:
>
> ================================
> $ cat /proc/mdstat
> Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4]
> [raid10]
> md2 : inactive sdc[1](S)
>        488385560 blocks super 1.2
>
> unused devices: <none>
> ================================
>
> I am trying to repurpose the good drive as a not-RAID device. I have done
> sudo mdadm --zero-superblock /dev/sdc
> and
> sudo mdadm --zero-superblock --force /dev/sdc
> and even low level formatted /dev/sdc
What do you mean "low level formatted"? Have you done a
dd if=/dev/zero of=/dev/sdc
> ================================
> $ ls /etc/mdadm/mdadm.conf
> ls: cannot access /etc/mdadm/mdadm.conf: No such file or directory
> ================================
Did you update the initrd file? This file probably contains a copy of 
the mdadm.conf

Also, did you modify the partition type, from fd to 83
I would suggest running the above dd command, which will erase ALL 
traces of anything, including any data on the drive (so back it up 
elsewhere first).

Most likely, the md code looks at a couple of different places on the 
drive for the md information, so when you run the zero-superblock, it is 
only erasing one of the possible locations. See man mdadm, especially 
the --metadata section.

Regards,
Adam

  reply	other threads:[~2012-07-31  1:26 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-31  1:02 persistent removed MD referrence on reboot Skip Coombe
2012-07-31  1:26 ` Adam Goryachev [this message]
2012-08-01  1:43   ` Skip Coombe
2012-08-01  3:54     ` Adam Goryachev
2012-08-01  5:10     ` linbloke
2012-08-01 12:27       ` Skip Coombe

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=50173458.40505@websitemanagers.com.au \
    --to=adam@websitemanagers.com.au \
    --cc=linux-raid@vger.kernel.org \
    --cc=skipcoombe@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.