Add new disk to encrypted LVM volume on Debian

Create a backup of your system before attempting to extend your encrypted LVM

Boot your PC

Decrypt/unlock your disk

Log into the system

Become root

sudo su -

Check what disks you have on your system

fdisk -l

Check available LVM volume groups and logical volumes


Display the amount of available disk space


Check available available block devices


Create Partition on New Disk

fdisk /dev/sdb

In fdisk program choose the following in this particular order n -> p -> 1 -> w

Verify newly created partition

fdisk -l

Create Physical Volume on New Disk

pvcreate /dev/sdb1

Verify that physical volume is created successfully

lvmdiskscan -l

Extend an Existing Logical Volume

vgextend myblahblah-vg /dev/sdb1

Extend the “root” logical volume

lvm lvextend -l +100%FREE /dev/myblahblah-vg/root

Enlarge the filesystem created inside the “root” volume

resize2fs -p /dev/mapper/myblahblah--vg-root
Categories: Debian Tags: , , ,
%d bloggers like this: