XCP-ng
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login

    Increasing the disk size of vmguest without shuting down

    Scheduled Pinned Locked Moved Xen Orchestra
    11 Posts 6 Posters 6.4k Views 5 Watching
    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.
    • olivierlambertO
      olivierlambert Vates 🪐 Co-Founder CEO
      last edited by

      Hi,

      You can't grow a VDI size while it's used.

      A 1 Reply Last reply
      Reply Quote 0
      • A
        ashinobi @olivierlambert
        last edited by ashinobi

        @olivierlambert

        Thanks for the response, would it be possible to add this as an additional feature of xen orchestra in the future?

        1 Reply Last reply
        Reply Quote 0
        • olivierlambertO
          olivierlambert Vates 🪐 Co-Founder CEO
          last edited by olivierlambert

          It's due to the current storage stack (SMAPIv1). So it's not a Xen Orchestra feature.

          However, in SMAPIv3, that would be likely possible, depending on the specific storage driver (ZFS, LVM or other). So let's say "likely" in the future 🙂

          Read this for an overview: https://xcp-ng.org/blog/2022/06/02/understanding-the-storage-stack-in-xcp-ng/

          A 1 Reply Last reply
          Reply Quote 0
          • A
            ashinobi @olivierlambert
            last edited by

            @olivierlambert

            Thank you for the info and congrats as well to you and your team. I read Vates has new office. I hope Vates and XCP-NG grows more bigger in the near future.

            K 1 Reply Last reply
            Reply Quote 0
            • K
              KPS Top contributor @ashinobi
              last edited by

              Hi!

              As this is something, I have to do quite often: Would it be possible to have a feature: resize on next reboot?

              tjkreidlT 1 Reply Last reply
              Reply Quote 1
              • olivierlambertO
                olivierlambert Vates 🪐 Co-Founder CEO
                last edited by

                Resize on next reboot is probably doable via XO itself 🤔 That's an interesting feature, I wonder how hard to develop it 🤔

                Any opinion @MathieuRA ?

                1 Reply Last reply
                Reply Quote 1
                • tjkreidlT
                  tjkreidl Ambassador @KPS
                  last edited by tjkreidl

                  @KPS You could put in a task list in the local startup script. See various options here: https://www.baeldung.com/linux/run-script-on-startup

                  1 Reply Last reply
                  Reply Quote 1
                  • MathieuRAM
                    MathieuRA Vates 🪐 XO Team
                    last edited by

                    Hi,
                    Since XO is a client, I don't think it's a good idea to have this kind of feature. In this case, a VM could be restarted from sources other than XO, and would not apply the new VDI size.

                    However, I believe we can handle this situation by implementing a modal that appears when editing the VDI size of a running VM. This modal can offer the option to restart the VM immediately and apply the changes. In my opinion, removing the "pending" state will prevent confusion

                    olivierlambertO 1 Reply Last reply
                    Reply Quote 2
                    • olivierlambertO
                      olivierlambert Vates 🪐 Co-Founder CEO @MathieuRA
                      last edited by

                      @MathieuRA Indeed, that's the right way to do it, I think 🙂

                      O 1 Reply Last reply
                      Reply Quote 0
                      • O
                        odmsys @olivierlambert
                        last edited by

                        @olivierlambert I love xcp-ng and the work that you do, and apologize in advance for reviving this old thread, and I'm sure this question has been asked many times, which would probably be a bit frustrating to have repeated if it's something that needs to be implemented upstream or in the storage stack.

                        I try to steer as many of our clients as possible towards xcp-ng in my work as an MSP, and constructively, I thought it worthwhile to bump this thread to revive interest in this feature, and communicate the feedback that this specific feature (or lack thereof) has on a few occasions been the "deal breaker" leading clients to choose a different hypervisor.

                        The scenario that comes to mind is one where there's an unexpected surge in storage demand that leads to critically-low disk space on a VM - with xen/xcp-ng this scenario forces an administrator to consider either shutting down a VM to add capacity outside of a planned outage window (potentially creating a brief outage/reducing availability), or else face the consequences of the volume running out of space while the VM is in operation (potentially degrading availability and integrity of data) if the remaining capacity runs out.

                        As a result, in the interest of uptime we find ourselves feeling the need to allocate more space to virtual disks in xcp-ng to feel we have a "safe" amount of breathing room compared to some of the other hypervisors with similar workloads.

                        Being able to quickly increase the size of virtual disks without downtime means not only better usage of resources in the long run: it also means reduced downtime for these changes.

                        It would be great to hear whether this might be on the roadmap with SMAPIv3.

                        It's also really an excellent suggestion made above regarding the ability to "queue" the disk resize for the next time the VM reboots! 🙂 This is a flow I've gotten used to in other hypervisors for similar resource changes (such as resizing allocated memory) that cannot happen while the VM is running. If it's faster/more realistic for a feature like this to be implemented in the meantime, it definitely would help with some of the anxieties around managing VM storage capacity. +1 for this if it's more straightforward to schedule a resize upon the next reboot.

                        1 Reply Last reply
                        Reply Quote 0

                        Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                        Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                        With your input, this post could be even better 💗

                        Register Login
                        • First post
                          Last post