Re: Swapping LLVM drive

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

 



On Mon, 28 Aug 2023, Phillip Susi wrote:

Why would you use dd/partclone instead of just having LVM move
everything to the new drive on the fly?

Partition the new drive, use pvcreate to initialize the partition as a
pv, vgextend to add the pv to the existing vg, pvmove to evacuate the
logical volumes from the old disk, then vgreduce to remove it from the
vg.

1. Unnecessary copying. 2. You lose your free backup of the system on the old drive,
   which should be carefully labeled and kept handy for a year.
   (After that, SSDs start to run the risk of data retention issues.)

Don't forget you'll need to reinstall grub on the new drive for it to
boot.

And that is the most important reason.  "Just reinstall grub" is a
much larger learning curve than "dd" IMO.

_______________________________________________
linux-lvm mailing list
linux-lvm@xxxxxxxxxx
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/




[Index of Archives]     [Gluster Users]     [Kernel Development]     [Linux Clusters]     [Device Mapper]     [Security]     [Bugtraq]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]

  Powered by Linux