LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-05-2007, 01:10 PM   #1
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Rep: Reputation: 15
removing software raid configuration


Hi,

I am a newbie and I screwed up my raid configuration a bit. So I wanted to start from the beginning without losing any data.

I created an raid on /dev/md0. I tried to remove the drive /dev/sdd1 using the command /sbin/mdadm /dev/md0 -r /dev/sdd1
but it failed saying mdadm: hot remove failed for /dev/sdd1: Device or resource busy.

Anyways I just want to remove it and start over without losing any data.

Thanks,
Steve
 
Old 03-05-2007, 02:51 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
well it helps if you tell us what kind of raid you're using, what level etc... you can't just "remove" deices from raid without losing data... they are single filesystems spread across multiple devices. you can often degrade an array by force, format the degraded drive and migrate data, put it's not the tablecloth trick, you don't just whop out the tick box that says "raid" and everything miraculously untouched...
 
Old 03-06-2007, 11:52 AM   #3
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
Sorry, I am using a raid 1
 
Old 03-06-2007, 12:36 PM   #4
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,398

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
ok, well using raid one then you CAN degrade your array and reformat one drive. using mdadm you can -f (fail) one of the two and then -r (remove) it. once that's done just use fdisk to change the drive type from linux raid to standard linux and the format it.
 
Old 03-07-2007, 09:32 AM   #5
sbabcock23
Member
 
Registered: Aug 2006
Location: Mississauga, Ontario, Canada
Distribution: RHEL 5, CentOS 5
Posts: 64

Original Poster
Rep: Reputation: 15
great thanks it worked
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Software RAID 5 configuration in Redhat arunabh_biswas Linux - Software 2 07-29-2006 04:51 AM
Will a ex - Software Raid 1 disk boot without Raid software? carlosruiz Linux - Software 0 05-27-2006 01:12 PM
Removing Raid 1 krishvij Linux - Newbie 2 03-09-2005 10:23 PM
Software RAID Configuration during Linux Installation manjinder Linux - Enterprise 1 11-15-2004 12:57 PM
Software RAID-1 Configuration on SuSE 8.2 merc3065 Linux - General 0 08-28-2003 01:47 PM


All times are GMT -5. The time now is 05:59 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration