Re: Replace disks

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

 



2018-03-27 11:47 GMT+02:00 Mateusz Korniak <mateusz-lists@xxxxxxxxxxxxxx>:
> I do replacing S with D like that:
>
> Copy partition table:
>
> sfdisk -d /dev/sdS | sfdisk -L /dev/sdD
>
> Add new disk as spare:
>
> mdadm /dev/mdX --add /dev/sdDX
>
> For each partition start moving data to new disk:
>
> mdadm /dev/mdX --replace /dev/sdSX
>
> Watch progress:
>
> watch cat /proc/mdstat
>
> When done, move next disk.


Exactly what I thought.
But doing so, will result in the same paritioning scheme also on
destination driver,
in my case I have to grow the partitions.

So, what If I manually create partitions (of proper size) on
destination drive and then replace disks one by one?
Any issue with LVM PV moved (by mdadm) from a small partition to
something bigger ?
--
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