If you were using LVM, increasing the size of an LV from other places on the disk would be easy, assuming they were all in the same VG. Alas, LVM use needs to be selected at install-time for OS increases.
OTOH, with all the partitions you seem to be using, learning LVM really would make your storage management life easier. LVM can be added to any empty data partition. Generally, you'd have maybe 3 partitions on a system (/boot/, /boot/EFI/, everything else for LVM), then break up the everything else as a single PV and single VG, with as many LVs as you like, sized however you need. When expanding any LV, the space doesn't need to be adjacent, just within the same VG. The real power with LVM is to only allocate storage to LVs when it is needed. Some of my LVM setups use less than 50% of the total storage in the system.
Sorry, the fonts aren't readable to my eyes in the images.
parted -l and lsblk -e 7 -o name,size,type,fstype,mountpoint would be useful AS TEXT.
Here's an example of some LVM coolness:
Code:
$ lsblk -e 7 -o name,size,type,fstype,mountpoint
NAME SIZE TYPE FSTYPE MOUNTPOINT
sr0 1024M rom
vda 30G disk
├─vda1 512M part vfat /boot/efi
├─vda2 1K part
└─vda5 29.5G part LVM2_member
├─vgubuntu--mate-root 17G lvm ext4 /
├─vgubuntu--mate-swap_1 4.1G lvm swap [SWAP]
└─vgubuntu--mate-home 12G lvm ext4 /home
vdb 10G disk
└─vdb1 10G part LVM2_member
└─vgubuntu--mate-root 17G lvm ext4 /
$ sudo parted -l
Model: Virtio Block Device (virtblk)
Disk /dev/vdb: 10.7GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 10.7GB 10.7GB lvm
Model: Virtio Block Device (virtblk)
Disk /dev/vda: 32.2GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File system Flags
1 1049kB 538MB 537MB primary fat32 boot
2 539MB 32.2GB 31.7GB extended
5 539MB 32.2GB 31.7GB logical lvm
See how the "root" LV is made up of storage from two different disks (vda and vdb)? Those are actually virtual disks. The storage is really on the same SSD.
LVM is very powerful. It is helpful in creating clean backups too.
Bookmarks