How to expand LVM root partition on F28 when disk is fully allocated
FedoraForum.org - Fedora Support Forums and Community
Results 1 to 5 of 5
  1. #1
    Join Date
    Jun 2009
    Location
    Queensland
    Posts
    296
    Linux (Fedora) Chrome 70.0.3538.77

    How to expand LVM root partition on F28 when disk is fully allocated

    I keep getting messages that /root has less than 1 gig free. Is it possible to shrink /home somehow and expand /root into the free space without losing any data?

    Click image for larger version. 

Name:	Screenshot from 2018-11-03 08-59-17.png 
Views:	12 
Size:	40.5 KB 
ID:	29878

    Click image for larger version. 

Name:	Screenshot from 2018-11-03 09-15-42.png 
Views:	10 
Size:	43.9 KB 
ID:	29879

    Click image for larger version. 

Name:	Screenshot from 2018-11-03 09-16-26.png 
Views:	9 
Size:	25.9 KB 
ID:	29880
    Last edited by Doug Hutcheson; 3rd November 2018 at 05:36 AM.
    F28, Core i7, 16Gb, 1Tb, Acer Aspire

  2. #2
    Join Date
    Mar 2014
    Location
    Canada
    Posts
    73
    Linux Firefox 63.0

    Re: How to expand LVM root partition on F28 when disk is fully allocated

    Best to proceed with a full backup. Cannot be done when disk is mounted. A misstep can destroy your data.

    Action outline
    1. Boot to live environment
    2. vgscan
    3. vgchange -ay
    4. e2fsck -f (home partition)
    5. resize2fs (shrink home partition)
    6. lvreduce (shrink home lv)
    7. lvextend (grow root lv)
    8. e2fsck -f (root partition)
    9. resize2fs (grow root partition)
    10. done

  3. #3
    Join Date
    Jun 2009
    Location
    Queensland
    Posts
    296
    Linux (Fedora) Chrome 70.0.3538.77

    Re: How to expand LVM root partition on F28 when disk is fully allocated

    Quote Originally Posted by gjaltemba
    Best to proceed with a full backup. Cannot be done when disk is mounted. A misstep can destroy your data.
    Thanks very much for your reply. gjaltemba.

    You have confirmed my own expectations. Fortunately it is time to upgrade to 29, so I will do as you suggest with a full backup first, then clean the disk and choose my partition sizes with the 29 install.

    Cheers,
    Doug
    F28, Core i7, 16Gb, 1Tb, Acer Aspire

  4. #4
    Join Date
    Dec 2014
    Location
    sd
    Posts
    53
    Linux (Fedora) Firefox 63.0

    Re: How to expand LVM root partition on F28 when disk is fully allocated

    I'd advise just leaving some free space at the end of your new LVM. Keep going until one fills then allocate some more free space to it later on from that.

  5. #5
    Join Date
    Jun 2009
    Location
    Queensland
    Posts
    296
    Linux (Fedora) Chrome 70.0.3538.77

    Re: How to expand LVM root partition on F28 when disk is fully allocated

    Quote Originally Posted by greengiant43
    allocate some more free space to it later on from that.
    I wish I had thought of that originally!

    Thanks for replying.
    F28, Core i7, 16Gb, 1Tb, Acer Aspire

Similar Threads

  1. Can I Expand The Size of a Partition?
    By JonBL in forum Using Fedora
    Replies: 7
    Last Post: 30th August 2011, 04:27 AM
  2. Can I expand my fedora partition?
    By physicsRocks in forum Hardware & Laptops
    Replies: 4
    Last Post: 26th August 2009, 09:57 PM
  3. Need help to expand data partition on hard drive
    By dylpower in forum Hardware & Laptops
    Replies: 12
    Last Post: 23rd October 2004, 02:52 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •