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

    XenServer Live Adjust capacity of drive that is shared

    IT Discussion
    xenserver xenserver 7 xen virtualization
    5
    15
    2.4k
    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 scottalanmiller

      So the question is it possible to scale down the size of a drive in a VM while the VM and drive, are running and shared.

      What happens to the rest of the space once scaled back?

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

        I doubt it. And what do you mean exactly. Do you mean...

        • Shrink the filesystem?
        • Shrink the logical volume?
        • Shrink the size on disk?
        • Shrink the available growth size?
        • Reclaim unused space via thin provisioning?
        • Something else?
        DustinB3403D 1 Reply Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @scottalanmiller
          last edited by

          @scottalanmiller Actually shrink the disk size.

          scottalanmillerS 1 Reply Last reply Reply Quote 0
          • stacksofplatesS
            stacksofplates
            last edited by

            If you could, you would have to shrink the LV, and that would require a reboot to see the changes. Reboot of XS, not the VM.

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

              @DustinB3403 said in XenServer Live Adjust capacity of drive that is shared:

              @scottalanmiller Actually shrink the disk size.

              Which disk, though? There are many layers here, I'm unclear which one you mean. You mean the VHD file?

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

                @stacksofplates said in XenServer Live Adjust capacity of drive that is shared:

                If you could, you would have to shrink the LV, and that would require a reboot to see the changes. Reboot of XS, not the VM.

                Hrm.... this is at the VM level, not the host level.

                Rebooting the VM should be enough I would think...

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

                  @scottalanmiller said in XenServer Live Adjust capacity of drive that is shared:

                  @DustinB3403 said in XenServer Live Adjust capacity of drive that is shared:

                  @scottalanmiller Actually shrink the disk size.

                  Which disk, though? There are many layers here, I'm unclear which one you mean. You mean the VHD file?

                  Sorry, Yes.

                  This is a secondary VHD inside of a VM.

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

                    @DustinB3403 said in XenServer Live Adjust capacity of drive that is shared:

                    @scottalanmiller said in XenServer Live Adjust capacity of drive that is shared:

                    @DustinB3403 said in XenServer Live Adjust capacity of drive that is shared:

                    @scottalanmiller Actually shrink the disk size.

                    Which disk, though? There are many layers here, I'm unclear which one you mean. You mean the VHD file?

                    Sorry, Yes.

                    This is a secondary VHD inside of a VM.

                    So to do that, you would need to adjust the filesystem, then the LVM, then the physical disk. I'm not aware of what tools allow for the VHD file to be resized in that way. You might need to image to another VHD after shrinking inside of the VM.

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

                      @scottalanmiller said in XenServer Live Adjust capacity of drive that is shared:

                      @DustinB3403 said in XenServer Live Adjust capacity of drive that is shared:

                      @scottalanmiller said in XenServer Live Adjust capacity of drive that is shared:

                      @DustinB3403 said in XenServer Live Adjust capacity of drive that is shared:

                      @scottalanmiller Actually shrink the disk size.

                      Which disk, though? There are many layers here, I'm unclear which one you mean. You mean the VHD file?

                      Sorry, Yes.

                      This is a secondary VHD inside of a VM.

                      So to do that, you would need to adjust the filesystem, then the LVM, then the physical disk. I'm not aware of what tools allow for the VHD file to be resized in that way. You might need to image to another VHD after shrinking inside of the VM.

                      So simply, add a new VHD at the desired size, copy the data from one to the other, remove the share and recreate it to the new VHD, and then remove the larger VHD.

                      And then reboot the VM.

                      That is what I figured.

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

                        @DustinB3403 said in XenServer Live Adjust capacity of drive that is shared:

                        @stacksofplates said in XenServer Live Adjust capacity of drive that is shared:

                        If you could, you would have to shrink the LV, and that would require a reboot to see the changes. Reboot of XS, not the VM.

                        Hrm.... this is at the VM level, not the host level.

                        Rebooting the VM should be enough I would think...

                        Well XS has each VM inside of a LV, then each VM has it's LV partitioning. So you could shrink the LV in the VM and restart the VM, but the main LV that the whole VM is in would still be the larger size.

                        However, you found what you needed so it doesn't matter.

                        1 Reply Last reply Reply Quote 1
                        • JaredBuschJ
                          JaredBusch
                          last edited by

                          With Hyper-V and ESXi, you can resize things inside the guest and then simply resize the VHDX/VDMK from the hypervisor tools afterwards.

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

                            @JaredBusch said in XenServer Live Adjust capacity of drive that is shared:

                            With Hyper-V and ESXi, you can resize things inside the guest and then simply resize the VHDX/VDMK from the hypervisor tools afterwards.

                            Same with KVM and Xen. XS does some LV magic when you create the VM. I believe it's how it does it's snapshots also (LV snapshots).

                            JaredBuschJ 1 Reply Last reply Reply Quote 0
                            • JaredBuschJ
                              JaredBusch @stacksofplates
                              last edited by JaredBusch

                              @stacksofplates said in XenServer Live Adjust capacity of drive that is shared:

                              @JaredBusch said in XenServer Live Adjust capacity of drive that is shared:

                              With Hyper-V and ESXi, you can resize things inside the guest and then simply resize the VHDX/VDMK from the hypervisor tools afterwards.

                              Same with KVM and Xen. XS does some LV magic when you create the VM. I believe it's how it does it's snapshots also (LV snapshots).

                              Then @DustinB3403's answer is of course it is.

                              1 Reply Last reply Reply Quote 0
                              • DashrenderD
                                Dashrender
                                last edited by

                                Would he really need to reboot if he's adding another 'disk' copying data the removing the old disk?

                                JaredBuschJ 1 Reply Last reply Reply Quote 0
                                • JaredBuschJ
                                  JaredBusch @Dashrender
                                  last edited by

                                  @Dashrender said in XenServer Live Adjust capacity of drive that is shared:

                                  Would he really need to reboot if he's adding another 'disk' copying data the removing the old disk?

                                  Depends on the guest OS and applications using said space.

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