Re: Replace disks

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

 



>>>>> "Gandalf" == Gandalf Corvotempesta <gandalf.corvotempesta@xxxxxxxxx> writes:

Gandalf> 2018-03-27 16:10 GMT+02:00 John Stoffel <john@xxxxxxxxxxx>:
>> If you're running LVM on top of this array, then I would simply:
>> 
>> 1. add three new disks into a new RAID1 array spanning the entire
>> disk as /dev/md1
>> 2. pvcreate /dev/md1
>> 3. vgextend <vg> /dev/md1
>> 4. pvmove -b /dev/md0
>> 5. wait for the move to complete
>> 6. vgreduce <vg> /dev/md0

Gandalf> I did this (pvmove) many times before, but only on small
Gandalf> volumes, never on 500GB.  I'm not really sure about data
Gandalf> consistency during the move. What in case of suddely poweroff
Gandalf> or similiar?

It *should* be ok, since it's just moving 4k blocks one at atime, and
updating the system as it goes.  Also, it doesn't remove the source LV
until the copy is complete, so at worse you have a partial destination
LV to remove and start over.

John
--
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