Re: Add disks and convert level 0 to level 5

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

 



On Wed, 10 Sep 2014 11:15:24 -0500 Michael Muratet <muratetm@xxxxxxxxx> wrote:

> I have a two-disk RAID0 system that is working splendidly, thanks to the list for the help.
> 
> I managed to get my hands on more identical disks and since I have the disks and because I'm adding precious data, I'd like to add two more disks and grow to RAID5.
> 
> I have partitioned the two new drives to type 'fd', /dev/sde and /dev/sdf
> 
> I believe the command to accomplish the change is this:
> 
> mdadm /dev/md0 --grow --level=5 --add /dev/sde /dev/sdf
> 
> Following the old adage "measure twice, cut once", is this syntax correct? Is there any danger of data loss in such a conversion?

I recommend creating a few loop-back devices and experimenting.
i.e.:
  create some 100M files.
  use "losetup" to turn them into block devices.
  create an 2-device raid0
  try converting it as you suggest.

You find it doesn't do quite what you expected, but should be easy to fix.

Providing your new devices are reliable (as least read/write the entire drive
once if you feel at all cautious) there is no particular danger of data loss.

NeilBrown


> 
> Thanks
> 
> Mike--
> 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

Attachment: signature.asc
Description: PGP signature


[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