linux-raid.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jose Luis Domingo Lopez <linux-raid@24x7linux.com>
To: linux-raid@vger.kernel.org
Subject: Re: how to uninstall raid
Date: Wed, 30 Jul 2003 18:47:12 +0200	[thread overview]
Message-ID: <20030730164712.GA3861@localhost> (raw)
In-Reply-To: <A12F5F3545A0654B97BFD863950C1E185FAD48@pdsmsx403.ccr.corp.intel.com>

On Wednesday, 30 July 2003, at 15:29:27 +0800,
Zhai, Edwin wrote:

> I have installed raid0 on /dev/md0 which is composed of /dev/hdc1 &
> dev/hdd1 but want to uninstall raid and get hdc1&hdd1 back now.
> Anybody knows how to do it?
> 
> When using mdadm /dev/md0 --fail /dev/hdc1 --remove /dev/hdc1,I got a
> error msg "invalid argument". I also want to know how to erase the raid
> configuration data in the kernel (not in the conf file).
> 
As far as I know the kernel does not keep information about RAID arrays
anywhere, except in the RAID superblocks located towards the end of each
RAID's component (/dev/hdc1 and /dev/hdd1 in your setup).

So to make the system forget completely about your now running RAID0:
mdadm --manage --stop /dev/md0

To wipe the superblocks and turn the partitions into "normal" ones:
mdadm --manage --zero-superblock /dev/hdc1
mdadm --manage --zero-superblock /dev/hdd1

And finally, change partitions' IDs to something different from FD
(Linux RAID Autodetect). Just use fdisk, cfdisk, or whatever.

Finally, make sure there are no init scripts that load data from some
configuration file and still try to initialize the now gone RAID device.

Regards,

-- 
Jose Luis Domingo Lopez
Linux Registered User #189436     Debian Linux Sid (Linux 2.6.0-test2-G7)

      reply	other threads:[~2003-07-30 16:47 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-30  7:29 how to uninstall raid Zhai, Edwin
2003-07-30 16:47 ` Jose Luis Domingo Lopez [this message]

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=20030730164712.GA3861@localhost \
    --to=linux-raid@24x7linux.com \
    --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).