Re: Re-arranged Drives in MDADM?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jan 29, 2010 at 4:40 AM, Neil Brown <neilb@xxxxxxx> wrote:
> Or possibly shut down, physically swap the devices, and the start up again.

I noticed when I created the RAID5 array on my Linux server using the
mdadm command:

mdadm --create /dev/md0 --level=5 --raid-devices=3 /dev/sda2 /dev/sdb2
/dev/sdc2 --spare-devices=1 /dev/sdd2

The above command create a /etc/mdadm.conf file which showed 2 spare
devices because one of the spares was rebuilding as the 3rd member of
the RAID5 array. Once the rebuild / sync was complete on /dev/sdc2, it
would not longer show as a spare. My question is does the data in
/etc/mdadm.conf need to be accurate after the RAID has been created
and established? Once the rebuild was complete and all 3 drives were
synced, the mdadm.conf file was never updated so I deleted the
contents of the file and ran:

mdadm -D --scan >> /etc/mdadm.conf

I didn't see a real reason to do so but I did it just to be consistent
with my system and avoid issues later.

Does anyone have any thoughts on this?
--
To unsubscribe from this list: send the line "unsubscribe linux-raid" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux