* how to uninstall raid
@ 2003-07-30 7:29 Zhai, Edwin
2003-07-30 16:47 ` Jose Luis Domingo Lopez
0 siblings, 1 reply; 2+ messages in thread
From: Zhai, Edwin @ 2003-07-30 7:29 UTC (permalink / raw)
To: linux-raid
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).
Thanks,
Edwin
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: how to uninstall raid
2003-07-30 7:29 how to uninstall raid Zhai, Edwin
@ 2003-07-30 16:47 ` Jose Luis Domingo Lopez
0 siblings, 0 replies; 2+ messages in thread
From: Jose Luis Domingo Lopez @ 2003-07-30 16:47 UTC (permalink / raw)
To: linux-raid
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2003-07-30 16:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-07-30 7:29 how to uninstall raid Zhai, Edwin
2003-07-30 16:47 ` Jose Luis Domingo Lopez
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).