--- title: "SDLinux - Extending Encrypted Logical Volumes" slug: "sdlinux-extending-encrypted-logical-volumes-1" updated: 2026-04-16T20:25:01Z published: 2026-04-16T20:25:01Z canonical: "documentation.winmagic.com/sdlinux-extending-encrypted-logical-volumes-1" stale: true --- > ## Documentation Index > Fetch the complete documentation index at: https://documentation.winmagic.com/llms.txt > Use this file to discover all available pages before exploring further. # SDLinux - Extending Encrypted Logical Volumes # Extending Encrypted Logical Volumes The process below shows how to extend the encrypted lvm root partition to a new attached disk 1. Attach the new disk to the existing encrypted system 2. Partition the disk with your preferred partitioning tool (e.g., fdisk, parted, or gparted). *NOTE: You can skip to step 3 if you are just using the entire disk as PV.* Example: parted /dev/sdb mklabel --> set to gpt mkpart --> create primary partition exit parted tool ![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/sdlinux---extending-encrypted-logical-volumes-image-rre4qwrt.png) Create physical volume (PV) on the newly created partition with pvcreate command. Example: pvcreate /dev/sdb1 1. Extend the volume group (VG). Use command "vgextend /dev/sdX1" Example: vgextend vg0 /dev/sdb1 1. Extend the logical volume. Use command "lvextend -L + " Example: lvextend -L +2G /dev/vg0/lv-0 or lvextend -l +100%FREE /dev/vg0/lv-0 1. When you run lsblk command, you will notice the lvm size increase but the encrypted partition size remains the same ![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/sdlinux---extending-encrypted-logical-volumes-image-uwud50qy.png) 1. Reboot client machine 2. After reboot, run the lsblk command again and you should notice the encrypted partition size should now be increased as well ![A screenshot of a computer AI-generated content may be incorrect.](https://cdn.ca.document360.io/93ef9a31-472b-4830-81aa-76199c390cf4/Images/Documentation/sdlinux---extending-encrypted-logical-volumes-image-270nljev.png) 1. Resize the file system so it uses the additional space Example: Resize2fs /dev/mapper/encr_0 1. You can confirm that the filesystem has been extended as well by running the df command (/dev/mapper/encr_0 should show the correct size now)