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

    How do I expand/extend VM partion (Xen, Ubuntu)

    IT Discussion
    8
    28
    2.1k
    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.
    • travisdh1T
      travisdh1 @guyinpv
      last edited by

      @guyinpv The good news is that it's on an LVM, so expanding it is quite easy. I'd normally add another virtual drive as I find it easier to add a physical volume into an existing volume group. I know a guy who did a presentation on LVM recently.

      pvresize /dev/xvda5
      resize2fs /dev/mapper/seafile--vg-root
      

      You might have to do the resize2fs after booting into recovery mode, can't always resize a mounted partition. Should be rare now, but you never quite know.

      guyinpvG 1 Reply Last reply Reply Quote 0
      • guyinpvG
        guyinpv @travisdh1
        last edited by

        @travisdh1
        So here is the output of those commands:

        Physical volume "/dev/xvda5" changed
        1 physical volue(s) resized / 0 physical volume(s) not resized
        ...
        resize2fs 1.42.9 (4-Feb-2014)
        The filesystem is already 3832832 blocks long. Nothing to do!
        

        But if I type df -h those 35GB or so aren't appearing anywhere.

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

          @guyinpv said in How do I expand/extend VM partion (Xen, Ubuntu):

          @travisdh1
          So here is the output of those commands:

          Physical volume "/dev/xvda5" changed
          1 physical volue(s) resized / 0 physical volume(s) not resized
          ...
          resize2fs 1.42.9 (4-Feb-2014)
          The filesystem is already 3832832 blocks long. Nothing to do!
          

          But if I type df -h those 35GB or so aren't appearing anywhere.

          Did you reboot since changing the drive size? If not you'll have to tell the system to re-scan the block device.

          echo 1 > /sys/block/xvda/rescan
          

          If that doesn't work, then it get's slightly more complicated knowing where to look in /sys.

          1 Reply Last reply Reply Quote 0
          • matteo nunziatiM
            matteo nunziati
            last edited by

            not the answer you are seacrhing for. anyway while this is really rude, if I have space, I prefer to create a new disk and use stuff like a live distro to move the system to the new disk, reinstall grub and go...

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

              @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

              not the answer you are seacrhing for. anyway while this is really rude, if I have space, I prefer to create a new disk and use stuff like a live distro to move the system to the new disk, reinstall grub and go...

              Yeah, I very much prefer adding another drive myself. But you just don't have to move anything with LVM, just extend the volume group.

              matteo nunziatiM stacksofplatesS 2 Replies Last reply Reply Quote 1
              • matteo nunziatiM
                matteo nunziati @travisdh1
                last edited by matteo nunziati

                @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                not the answer you are seacrhing for. anyway while this is really rude, if I have space, I prefer to create a new disk and use stuff like a live distro to move the system to the new disk, reinstall grub and go...

                Yeah, I very much prefer adding another drive myself. But you just don't have to move anything with LVM, just extend the volume group.

                I tend to not use LVM in VMs, just because mine are so small that it is realy simple to cp -va /* from live and then chroot and reinstall grub.

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

                  @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                  @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                  @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                  not the answer you are seacrhing for. anyway while this is really rude, if I have space, I prefer to create a new disk and use stuff like a live distro to move the system to the new disk, reinstall grub and go...

                  Yeah, I very much prefer adding another drive myself. But you just don't have to move anything with LVM, just extend the volume group.

                  I tend to not use LVM in VMs, just because mine are so small that it is realy simple to cp -va /* from live and then chroot and reinstall grub.

                  I don't like reinstalling grub when I don't have to. And I never have to move/copy anything. Might be doing yourself a disservice in not learning logical volume management (weather that's LVM, btrfs, or zfs.)

                  matteo nunziatiM 1 Reply Last reply Reply Quote 0
                  • stacksofplatesS
                    stacksofplates @travisdh1
                    last edited by

                    @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                    @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                    not the answer you are seacrhing for. anyway while this is really rude, if I have space, I prefer to create a new disk and use stuff like a live distro to move the system to the new disk, reinstall grub and go...

                    Yeah, I very much prefer adding another drive myself. But you just don't have to move anything with LVM, just extend the volume group.

                    I don't usually extend the existing group. I have a VG for the OS and a VG for the data. Then I can just unattach/reattach the disk if I need to rebuild.

                    1 Reply Last reply Reply Quote 1
                    • guyinpvG
                      guyinpv
                      last edited by

                      Easy button.....blast the VM out of existence. Who has time to fight this crap?

                      I'll rebuild my Seafile system from the start but I just want to set it up better. Probably run on CentOS7 instead of Ubuntu, especially Ubuntu 14.

                      Since this is a file store, some other arrangement of VDs would probably be appropriate to make sure I have a backup of our data. That is, instead of running everything off a single large disk.

                      1 Reply Last reply Reply Quote 1
                      • matteo nunziatiM
                        matteo nunziati @travisdh1
                        last edited by

                        @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                        @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                        @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                        @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                        not the answer you are seacrhing for. anyway while this is really rude, if I have space, I prefer to create a new disk and use stuff like a live distro to move the system to the new disk, reinstall grub and go...

                        Yeah, I very much prefer adding another drive myself. But you just don't have to move anything with LVM, just extend the volume group.

                        I tend to not use LVM in VMs, just because mine are so small that it is realy simple to cp -va /* from live and then chroot and reinstall grub.

                        I don't like reinstalling grub when I don't have to. And I never have to move/copy anything. Might be doing yourself a disservice in not learning logical volume management (weather that's LVM, btrfs, or zfs.)

                        It is not about not learning LVM: I use it into the host, for the very purpouse of have flaxibility in storage config/expansion.
                        It is about having really simple containers for my apps.

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

                          XenCenter released for Linux? Nice, when did that happen?

                          DanpD 1 Reply Last reply Reply Quote 0
                          • travisdh1T
                            travisdh1 @matteo nunziati
                            last edited by

                            @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                            @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                            @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                            @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                            @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                            not the answer you are seacrhing for. anyway while this is really rude, if I have space, I prefer to create a new disk and use stuff like a live distro to move the system to the new disk, reinstall grub and go...

                            Yeah, I very much prefer adding another drive myself. But you just don't have to move anything with LVM, just extend the volume group.

                            I tend to not use LVM in VMs, just because mine are so small that it is realy simple to cp -va /* from live and then chroot and reinstall grub.

                            I don't like reinstalling grub when I don't have to. And I never have to move/copy anything. Might be doing yourself a disservice in not learning logical volume management (weather that's LVM, btrfs, or zfs.)

                            It is not about not learning LVM: I use it into the host, for the very purpouse of have flaxibility in storage config/expansion.
                            It is about having really simple containers for my apps.

                            Then just go fully containerized with docker or something like it, why tie your own shoe laces together?

                            matteo nunziatiM 1 Reply Last reply Reply Quote 0
                            • matteo nunziatiM
                              matteo nunziati @travisdh1
                              last edited by

                              @travisdh1 easy&sad: docker is a new technology which is by no means well known here outside the devel circles. no sysadmin is aware of them. so if I have to make something which is expected to survive me, I have to go mainstream. small VM and go...

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

                                @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                                @travisdh1 easy&sad: docker is a new technology which is by no means well known here outside the devel circles. no sysadmin is aware of them. so if I have to make something which is expected to survive me, I have to go mainstream. small VM and go...

                                Containerization a new technology? I had it available in IRIX back in the 1990s, how could it be new?

                                matteo nunziatiM 1 Reply Last reply Reply Quote 0
                                • DanpD
                                  Danp @scottalanmiller
                                  last edited by

                                  @scottalanmiller It's called XO. 😉

                                  scottalanmillerS 1 Reply Last reply Reply Quote 1
                                  • matteo nunziatiM
                                    matteo nunziati @travisdh1
                                    last edited by

                                    @travisdh1 said in How do I expand/extend VM partion (Xen, Ubuntu):

                                    @matteo-nunziati said in How do I expand/extend VM partion (Xen, Ubuntu):

                                    @travisdh1 easy&sad: docker is a new technology which is by no means well known here outside the devel circles. no sysadmin is aware of them. so if I have to make something which is expected to survive me, I have to go mainstream. small VM and go...

                                    Containerization a new technology? I had it available in IRIX back in the 1990s, how could it be new?

                                    it is not the tech is how people invest in knowledge. here is just windows server 2012+vmware. P.E.R.I.O.D.
                                    want more knowledge? pass to enterprise level supply chains.
                                    really, even yesterday I've talked with e potential new service provider: it was a microsoft shop. linux? naaa. unix? in the '80...

                                    matteo nunziatiM 1 Reply Last reply Reply Quote 0
                                    • matteo nunziatiM
                                      matteo nunziati @matteo nunziati
                                      last edited by

                                      @matteo-nunziati of course when I say windows I mean GUI not powershell. hell, the sysadmin has gone a bit nervous when he seen my server core VM and my hyper-v server install. he asked: are you sure you do not want a gui?

                                      answer: yes please, put a cream topping on it, also!

                                      1 Reply Last reply Reply Quote 0
                                      • matteo nunziatiM
                                        matteo nunziati
                                        last edited by matteo nunziati

                                        of course it is a matter of market: if you move in the ICT market your providers are more skilled. but if you work in manufacturing with the S of SMB, what you get is this. It is not supply chain segmentation: it is your employer mindset which casts you to certain type of providers and you have to manage to change the mindset (good luck) and deal with daily issues to be solved.

                                        as example: did you see my VoIP incident?

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

                                          @Danp said in How do I expand/extend VM partion (Xen, Ubuntu):

                                          @scottalanmiller It's called XO. 😉

                                          XO is only on 5.7. So that can't be it.

                                          DanpD 1 Reply Last reply Reply Quote 0
                                          • DanpD
                                            Danp @scottalanmiller
                                            last edited by

                                            @scottalanmiller said in How do I expand/extend VM partion (Xen, Ubuntu):

                                            @Danp said in How do I expand/extend VM partion (Xen, Ubuntu):

                                            @scottalanmiller It's called XO. 😉

                                            XO is only on 5.7. So that can't be it.

                                            Not sure what you mean here.

                                            TBH, I think @guyinpv meant XS when he said XC.

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