LVM and the Ease of Migrating to a New Drive

Online data relocation to other drives using LVM and pvmove

These days my disks are filling up fast. My current PC holds 7 drives, including 2 NVMe drives. Actually 8 drives as I installed a new HDD today. All of my disks and partitions – with the notable exception of the FAT16 EFI partition for UEFI boot – are using LVM, the Logical Volume Manager.

With the availability of larger drives at reasonable costs, I decided to move some logical volumes (LV) spanning several drives onto one single drive, thus consolidating disks. This one drive will then be mirrored in a RAID-1 configuration for redundancy.

Note: In a multi-drive LVM Logical Volume each drive represents a potential point of failure. Moving the data from multiple drives onto one drive reduces that risk.

Continue reading “LVM and the Ease of Migrating to a New Drive”

Remote Backup Script for Windows NTFS Partitions on LVM Volumes

Linux bash script to mount and backup / synchronize a Windows 10 partition inside a LVM volume to a remote backup server using rsync and SSH

I run the bash script below to backup my Windows NTFS partitions residing on LVM volumes to a remote backup server. It uses SSH and public key authentication to authenticate at the remote side.

The script mounts an NTFS partition inside a LVM raw volume. It performs a file-based backup using rsync. It is NOT suitable for system backups!

Please carefully read the “Requirements”, “How it Works”, and “Usage” sections before attempting to use it.

Continue reading “Remote Backup Script for Windows NTFS Partitions on LVM Volumes”