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

    Fedora Block Device Full How - Extend Partition

    Scheduled Pinned Locked Moved Solved IT Discussion
    fedoralvmextendpartition
    46 Posts 7 Posters 6.2k 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 @stacksofplates
      last edited by

      @stacksofplates ok, following this here.

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

        Dumb question, would it be easier for me to simply add a separate drive, and then extend the root drive into the new drive?

        F 1 Reply Last reply Reply Quote 0
        • F
          Francesco Provino @DustinB3403
          last edited by

          @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

          Dumb question, would it be easier for me to simply add a separate drive, and then extend the root drive into the new drive?

          Maybe.
          You can skip the fdisk stuff and add a whole new block device to LVM if you add another virtual disk.

          DustinB3403D 1 Reply Last reply Reply Quote 1
          • DustinB3403D
            DustinB3403 @Francesco Provino
            last edited by

            @Francesco-Provino I'm fine with a separate physical device, so long as the system uses it as a single device.

            travisdh1T 1 Reply Last reply Reply Quote 0
            • travisdh1T
              travisdh1 @DustinB3403
              last edited by

              @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

              @Francesco-Provino I'm fine with a separate physical device, so long as the system uses it as a single device.

              You can actually move everything to the new drive using lvm. Tho I don't remember how to do that offhand, I'd have to look it up.

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

                OK so this is what I have with a new "physical" drive attached to this VM.

                0_1484668352344_XenCenterMain_2017-01-17_10-52-26.png 0_1484668372331_XenCenterMain_2017-01-17_10-52-46.png 0_1484668388172_XenCenterMain_2017-01-17_10-53-00.png

                Where too from here?

                travisdh1T F 2 Replies Last reply Reply Quote 0
                • travisdh1T
                  travisdh1 @DustinB3403
                  last edited by

                  @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                  OK so this is what I have with a new "physical" drive attached to this VM.

                  0_1484668352344_XenCenterMain_2017-01-17_10-52-26.png 0_1484668372331_XenCenterMain_2017-01-17_10-52-46.png 0_1484668388172_XenCenterMain_2017-01-17_10-53-00.png

                  Where too from here?

                  I'm actually doing this now myself, give me a sec.

                  1 Reply Last reply Reply Quote 0
                  • F
                    Francesco Provino @DustinB3403
                    last edited by Francesco Provino

                    @DustinB3403 pvcreate /dev/xvdb and proceed with vgextend…

                    DustinB3403D 1 Reply Last reply Reply Quote 1
                    • DustinB3403D
                      DustinB3403 @Francesco Provino
                      last edited by

                      @Francesco-Provino reading the manual for pvextend

                      travisdh1T 1 Reply Last reply Reply Quote 0
                      • travisdh1T
                        travisdh1 @DustinB3403
                        last edited by

                        @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                        @Francesco-Provino reading the manual for pvextend

                        You don't want to extend a pv tho, you want to create a new one. Add the new pv into the current vg (volume group), and then extend the lv (logical volume) to fill the new pv.

                        pvcreate /dev/xvdb
                        vgextend fedora /dev/xvdb
                        lvextend -l 100%FREE /dev/fedora/root
                        

                        See if that lvextend works, might need to feed it another vg/pv path.

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

                          0_1484668927655_XenCenterMain_2017-01-17_11-01-58.png

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

                            Thanks guys, I think I've got it.

                            0_1484669815601_XenCenterMain_2017-01-17_11-16-39.png

                            travisdh1T 1 Reply Last reply Reply Quote 1
                            • travisdh1T
                              travisdh1 @DustinB3403
                              last edited by

                              @DustinB3403 Now you need to figure out why your root partition got filled up in the first place!

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

                                @travisdh1 This was because the person who setup this system configured everything on a tiny partition.

                                I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.

                                The entire drive is holding 2 windows images.

                                travisdh1T 1 Reply Last reply Reply Quote 0
                                • travisdh1T
                                  travisdh1 @DustinB3403
                                  last edited by

                                  @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                  @travisdh1 This was because the person who setup this system configured everything on a tiny partition.

                                  I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.

                                  The entire drive is holding 2 windows images.

                                  Ah, the images should've never been included on / (root) in the first place.

                                  DustinB3403D 1 Reply Last reply Reply Quote 0
                                  • A
                                    Alex Sage
                                    last edited by

                                    https://mangolassi.it/topic/12123/expanding-root-on-centos7

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

                                      @travisdh1 said in Fedora Block Device Full How - Extend Partition:

                                      @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                      @travisdh1 This was because the person who setup this system configured everything on a tiny partition.

                                      I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.

                                      The entire drive is holding 2 windows images.

                                      Ah, the images should've never been included on / (root) in the first place.

                                      Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.

                                      stacksofplatesS 1 Reply Last reply Reply Quote 1
                                      • stacksofplatesS
                                        stacksofplates @DustinB3403
                                        last edited by

                                        @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                        @travisdh1 said in Fedora Block Device Full How - Extend Partition:

                                        @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                        @travisdh1 This was because the person who setup this system configured everything on a tiny partition.

                                        I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.

                                        The entire drive is holding 2 windows images.

                                        Ah, the images should've never been included on / (root) in the first place.

                                        Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.

                                        Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.

                                        DashrenderD 1 Reply Last reply Reply Quote 2
                                        • DashrenderD
                                          Dashrender @stacksofplates
                                          last edited by

                                          @stacksofplates said in Fedora Block Device Full How - Extend Partition:

                                          @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                          @travisdh1 said in Fedora Block Device Full How - Extend Partition:

                                          @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                          @travisdh1 This was because the person who setup this system configured everything on a tiny partition.

                                          I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.

                                          The entire drive is holding 2 windows images.

                                          Ah, the images should've never been included on / (root) in the first place.

                                          Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.

                                          Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.

                                          Isn't that one of the cool advantages to linux is mount points.?

                                          stacksofplatesS travisdh1T 2 Replies Last reply Reply Quote 1
                                          • stacksofplatesS
                                            stacksofplates @Dashrender
                                            last edited by

                                            @Dashrender said in Fedora Block Device Full How - Extend Partition:

                                            @stacksofplates said in Fedora Block Device Full How - Extend Partition:

                                            @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                            @travisdh1 said in Fedora Block Device Full How - Extend Partition:

                                            @DustinB3403 said in Fedora Block Device Full How - Extend Partition:

                                            @travisdh1 This was because the person who setup this system configured everything on a tiny partition.

                                            I'm fine with the original size, as all this system does is push our image out. Until now that is, when I need to add a new image to push.

                                            The entire drive is holding 2 windows images.

                                            Ah, the images should've never been included on / (root) in the first place.

                                            Exactly. But they are, so without building a new imaging system, I'd rather (and believe I have since fog sees it correctly) is to just add space for the purposes here.

                                            Sorry, I was away for a while. You could always add the drive to the mount point where the images are stored. I had a Gitlab server that ran out of space, so I just copied the gitlab data from /var/opt and set the second drive to mount there.

                                            Isn't that one of the cool advantages to linux is mount points.?

                                            Ya, it's really flexible and makes things a lot easier.

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