Linux Mint 18 Reduce LVM with Swap
Hi! The Tutorial shows you Step-by-Step How to Shrink LVM/LVM2 on Linux Mint 18 LTS 32/64-bit Mate/Cinnamon/Kde/Xfce Desktop.
And to Shrink LVM Linux Mint 18 Volume we have to Make Use of the system-config-lvm Software Tool.
Especially relevant: after to have Shrinked the LVM Logical Volume the Problem is to find Where is Located the Free Space into the Physical LVM Volume!
-
How to Shrink the LVM Logical Volume on Mint
-
Boot System with Mint or Ubuntu-based Live Media.
-
Open a Shell Terminal emulator window
(Press “Enter” to Execute Commands)In case first see: Terminal QuickStart Guide.
-
And Install System-config-lvm GUI LVM Volume Manager
Login as SuperUser to shorter the commands:apt update
Then install the Required Tool:
apt install system-config-lvm
-
Then Run System-config-lvm GUI LVM Volume Manager
system-config-lvm
-
Again Check the Free Space Location
Select Physical View.- If it is Located Between the Target Volume and the Swap Then you will Need to Execute All Steps
- If it is External you can directly Resizing the LVM with GParted!
-
Removing the LVM Swap Volume.
Take Note of the Name to Re-Create it Again Later! -
Install GParted on Ubuntu Based
apt-get install gparted
-
Run GParted.
Ctrl+Alt+t to Open a New Tab on Terminal
gparted
-
Shrinking the LVM Physical Volume with GParted.
Take Care of Leave enough Free Space to Re-Create the Swap LVM Volume Again Later!
-
Go to System-config-lvm and ReLoad.
-
Then ReCreate the LVM Swap Volume.
Put the Same Name as Before…
On File System leave the default ‘None’
-
For Security Bless again as Swap the New LVM Swap Volume.
So now Execute a Disk Scan to Find out existing Partitions:
lvmdiskscan
In the Output you should be able to Recognize your Device…
mkswap /dev/my-vg/my-swap_1
swapon /dev/my-vg/my-swap_1 && exit
Then you Can Finally, ReBoot into an Linux Mint LVM System with some FREE Space ;)