Re: [linux-lvm] Swapping LLVM drive

Stuart D Gathman <[email protected]>
Newsgroups dev.linux.lists.linux-lvm
Message-ID <[email protected]>
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
[email protected]
https://listman.redhat.com/mailman/listinfo/linux-lvm
read the LVM HOW-TO at http://tldp.org/HOWTO/LVM-HOWTO/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.