Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
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.
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.