ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Fedora VM within Xen Expand Partition

    Scheduled Pinned Locked Moved IT Discussion
    13 Posts 4 Posters 1.7k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • DustinB3403D
      DustinB3403
      last edited by

      Well temporarily installed a NIC that's connected to internet service, downloaded gparted and the full 80GB is visible, but not accessible to the drive for some reason....

      1 Reply Last reply Reply Quote 0
      • scottalanmillerS
        scottalanmiller
        last edited by

        That's the best way 🙂 Root partitions need to be offline to grow. Why so much data in /?

        DustinB3403D 2 Replies Last reply Reply Quote 1
        • DustinB3403D
          DustinB3403 @scottalanmiller
          last edited by

          @scottalanmiller This was a rebuild of our fog server and when my colleague set it up he wasn't thinking about partition size.

          So it's a VM now, but we can't upload new images into it...

          (He didn't add a second disk) and I really don't want to have to go through and change our images directory to a new partition.

          Anyway I can schedule this to apply at a reboot?

          0_1449686171315_2015-12-09_13-36-03.png

          1 Reply Last reply Reply Quote 0
          • coliverC
            coliver
            last edited by coliver

            You could setup a new drive for it and mount it at the same point where your images currently are.... you would just have to backup and move your images to this new location. Then expanding this in the future would be much easier.

            DustinB3403D 1 Reply Last reply Reply Quote 0
            • DustinB3403D
              DustinB3403 @coliver
              last edited by

              @coliver That might be what I do, but I was attempting to keep the system as simple as possible, with limited vdisks.

              1 Reply Last reply Reply Quote 0
              • DustinB3403D
                DustinB3403 @scottalanmiller
                last edited by

                @scottalanmiller said:

                That's the best way 🙂 Root partitions need to be offline to grow. Why so much data in /?

                The images folder for fog is on the only partition that was built into this VM.

                1 Reply Last reply Reply Quote 0
                • dafyreD
                  dafyre
                  last edited by

                  It looks like you need to resive the lvm partition? Or resizee2fs to resize the ext4 partition from 40gb to 80gb?

                  DustinB3403D 1 Reply Last reply Reply Quote 0
                  • DustinB3403D
                    DustinB3403 @dafyre
                    last edited by

                    @dafyre Yep, I just booted into the LiveCD and resized, just confirming now..

                    🙂

                    1 Reply Last reply Reply Quote 1
                    • dafyreD
                      dafyre
                      last edited by

                      I thought you could do that on a live partition... Maybe I am mistaken.

                      1 Reply Last reply Reply Quote 0
                      • DustinB3403D
                        DustinB3403
                        last edited by

                        It would make things so much more simple, If I just thought about these damn VM's as physical... lol...

                        "Dustin, put the CD into it, and boot from the LiveCD" is what my brain was telling me. . . 😛

                        1 Reply Last reply Reply Quote 1
                        • DustinB3403D
                          DustinB3403
                          last edited by

                          Yep, issue appears to be resolved, I now have 30GB free space.

                          Gonna test my Fog Image Upload.

                          1 Reply Last reply Reply Quote 1
                          • DustinB3403D
                            DustinB3403
                            last edited by DustinB3403

                            For anyone else who might need to know how to do this on Fedora 22.

                            First, take a backup of your VM, it never hurts. And now I've warned you. 😛

                            Install the Fedora CD into your VM Disk drive, boot from CD.

                            Select Troubleshooting
                            Rescue a Fedora System
                            

                            At the console confirm your filesystem path. Mine is at /dev/mapper/fedora-root

                            Changing 10G to whatever file size you need. To decrease use a -#G.

                            lvm lvresize --verbose --resizefs -L 10G /dev/mapper/vgname-lvname
                            

                            Let it complete, should only take a bit.

                            reboot
                            

                            There you have it, your Fedora Root Partition should now be expanded to whatever size you need.

                            1 Reply Last reply Reply Quote 2
                            • 1 / 1
                            • First post
                              Last post