[Cialug] mirrored raid

Zachary Kotlarek zach at kotlarek.com
Fri Apr 8 20:46:47 CDT 2016


On 8 Apr 2016, at 18:14, Dave Hala wrote:

> If its Linux software raid, remove the old drive from the array using
> mdadm, physically install the new drive, partition it and set the
> partition type, add the drive into back into the array using mdadm


Even partitioning is optional unless you have some dependency on partition maps — LVM/md/dm-crypt/etc. don’t care whether you use the whole device or a partition on it.


> Here's a good tutorial:
>
> http://bryanesmith.com/docs/mdadm/#create


When removing or failing a drive with mdadm you may not want to reference it by device file because access attempts may block for long periods, or if the drive has fallen off the bus entirely it simply won’t have a /dev/* file to reference and the command will fail.

In those cases mdadm also accepts the keywords “failed” (devices listed with an [f] in /proc/mdstat) and “detached” (devices without a matching /dev/* file) as well as the short device name displayed in /proc/mdstat (typically “/dev/sdb1” becomes “sdb1”) in place of the device file path.

	Zach
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2320 bytes
Desc: S/MIME digital signature
URL: <http://cialug.org/pipermail/cialug/attachments/20160408/7fea4100/attachment.bin>


More information about the Cialug mailing list