Linux Xubuntu 14.04 Trusty LTS How-to Shrink/Reduce/Resize a LVM Physical Volume with Swap Easy Guide

September 19th, 2014 by thelinuxevangelist

Shrink/Reduce/Resize LVM Physical Volume on Xubuntu 14.04 Trusty LTS



The Linux Tutorial Shows You Step-by-Step How-to Reduce/Shrink/Resize a LVM/LVM2 Physical Volume to Free Up Space on Xubuntu 14.04 Trusty Tahr LTS i386/amd64 Linux Desktop.

After to have Shrinked the LVM Logical Volume the Problem is: Where is Located the Free Space into the Physical LVM Volume…

  1. How-to Shrink the LVM Logical Volume on Xubuntu:

    Xubuntu Shrinking LVM Logical Volume
  2. Boot System with Ubuntu (Kubuntu/Lubuntu/Xubuntu) Live Media

  3. Open Terminal Window
    Ctr+Alt+t
    (Press “Enter” to Execute Commands)

    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - Open Terminal
  4. Install System-config-lvm GUI LVM Volume Manager on Ubuntu Based

    sudo su && apt-get update
    apt-get install system-config-lvm
  5. Run System-config-lvm GUI LVM Volume Manager

    system-config-lvm
  6. 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!

    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - System-config-lvm Physical View

  7. Removing the LVM Swap Volume

    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - System-config-lvm Removing Swap
    Take Note of the Name to Re-Create it Again Later!

  8. Install GParted on Ubuntu Based

    apt-get install gparted
  9. Run GParted

    Ctrl+Alt+t to Open a New Tab on Terminal

    gparted
  10. Shrinking the LVM Physical Volume with GParted

    Take Care of Leave enough Free Space to Re-Create the Swap LVM Volume Again Later!
    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - GParted Shrinking the LVM Physical Volume
    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - GParted Shrinking the LVM Physical Volume Apply
    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - GParted Shrinked LVM Physical Volume

  11. Go to System-config-lvm and ReLoad

    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - System-config-lvm Reloading

  12. Then ReCreate the LVM Swap Volume

    Put the Same Name as Before…
    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - System-config-lvm Recreate Swap LVM Volume 1
    On File System leave the default ‘None’
    How-to Shrink/Reduce/Resize a LVM Physical Volume on Xubuntu 14.04 Trusty LTS - System-config-lvm Recreate Swap LVM Volume 2

  13. For Security Bless again as Swap the New LVM Swap Volume

    lvmdiskscan
    mkswap /dev/my-vg/my-swap_1
    swapon /dev/my-vg/my-swap_1 && exit

    Then You Can Finally ReBoot into an Xubuntu LVM System with some FREE Space ;)

Share on Tumblr

Tags: , , , , , , , , , , , , , , , , , ,


Comments are disabled