Fedora Linux Support Community & Resources Center
  #1  
Old 13th April 2008, 07:26 PM
mdschiller Offline
Registered User
 
Join Date: Apr 2006
Posts: 9
software raid -- migrating to a new disk

I have a software raid 5 device /dev/md0 that is has 6 underlying devices:
/dev/hda1
/dev/sda1
/dev/sdb1
/dev/sdc1
/dev/sdd1
/dev/sde1

I've noticed that the /dev/hda IDE disk has some errors in SMART, and I would like to replace the disk. Note that it is not failed in the array, and the array is in a clean state. I just want to preemptively replace it with a SATA drive (/dev/sdf with /dev/sdf1 -- the same size as /dev/sda1).


How do I go about doing this?

My best guess is to do the following, but I'm not sure it's the correct / best path:

1. Use fdisk to create /dev/sdf1 as a Linux Raid auto-detect partition the same size as /dev/hda1 on /dev/sdf.

2. Add /dev/sdf1, which should automatically become a spare.
mdadm --add /dev/md0 /dev/sdf1

3. Mark the partition on the drive I want to remove as failed.
mdadm /dev/md0 --fail /dev/hda1

4. Remove /dev/hda from the system

Will this work? Will the array automatically sync the spare drive after step 3, or is there an extra step in there?

Thanks in advanced,
Mike
Reply With Quote
Reply

Tags
disk, migrating, raid, software

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


Current GMT-time: 00:55 (Sunday, 23-11-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin Copyright 2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat
Riga Photos on Instagram - Tysons Corner Travel Photos - Tarhuna Photos on Instagram