LVM

Tips for LVM

Install pv

pv needs the universe repository enabled on Ubuntu before it can be installed.

sudo add-apt-repository universe
sudo apt-get update
sudo apt-get install pv

Copy

Use pv to copy disks and/or individual partitions with a progress indicator. No intermediate image is needed.

# Basic Command
pv < source > dest
# Copy Disk (All Partitions)
pv < /dev/sda > /dev/sdb
# Copy Partition
pv < /dev/sda1 > /dev/sdb2

Rename UUID on new partition

https://www.redhat.com/archives/linux-lvm/2007-November/msg00039.html

Resources on LVM

https://access.redhat.com/documentation/en-US/Red_Hat_Enterprise_Linux/4/html/Cluster_Logical_Volume_Manager/LVM_CLI.html https://www.centos.org/docs/5/html/Deployment_Guide-en-US/s1-disk-storage-lvm.html