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

    XenServer 6.5 - Clean Up Storage Repository

    IT Discussion
    5
    48
    9.0k
    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 @anthonyh
      last edited by

      @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

      Last night I set up a new SR for Zimbra and live migrated the OS disk over to the new SR without any issues. Took ~5 minutes for the 20 GB VHD.

      I'd like to do the same for the 1 TB VHD, but it makes me nervous...

      If the process was to bomb mid-progress, what would happen? Is it easy to recover from?

      You would have a backup, but why go through this process? Why not let the system run a coalesce? Is this a production system or your lab?

      anthonyhA 1 Reply Last reply Reply Quote 0
      • momurdaM
        momurda @anthonyh
        last edited by

        @anthonyh I have had a few disk migrations fail over the last 2 years. Most of the time you just end up with a broken vdi on the destination and the source is fine without issue.
        But i have had to restart guest after disk migration failure before.
        @DustinB3403 It is his exchange server.

        DustinB3403D anthonyhA 2 Replies Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403 @momurda
          last edited by

          @momurda said in XenServer 6.5 - Clean Up Storage Repository:

          @anthonyh I have had a few disk migrations fail over the last 2 years. Most of the time you just end up with a broken vdi on the destination and the source is fine without issue.
          But i have had to restart guest after disk migration failure before.
          @DustinB3403 It is his exchange server.

          So even more reason to let the coalesce process complete.

          Disable any backup jobs for a bit (snapshots cause this issue).

          https://techblog.jeppson.org/2015/02/reclaim-lost-space-xenserver-6-5/

          1 Reply Last reply Reply Quote 0
          • anthonyhA
            anthonyh @momurda
            last edited by

            @momurda said in XenServer 6.5 - Clean Up Storage Repository:

            @anthonyh I have had a few disk migrations fail over the last 2 years. Most of the time you just end up with a broken vdi on the destination and the source is fine without issue.
            But i have had to restart guest after disk migration failure before.

            I'm OK with that. I will have to think about this...

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

              @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

              @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

              Last night I set up a new SR for Zimbra and live migrated the OS disk over to the new SR without any issues. Took ~5 minutes for the 20 GB VHD.

              I'd like to do the same for the 1 TB VHD, but it makes me nervous...

              If the process was to bomb mid-progress, what would happen? Is it easy to recover from?

              You would have a backup, but why go through this process? Why not let the system run a coalesce? Is this a production system or your lab?

              Production system. The problem is that there isn't enough space on the SR to perform a coalesce. I'm trying to avoid bringing Zimbra down if at all possible. Might not be possible, but I can at least try. 😄

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

                @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                @momurda said in XenServer 6.5 - Clean Up Storage Repository:

                @anthonyh I have had a few disk migrations fail over the last 2 years. Most of the time you just end up with a broken vdi on the destination and the source is fine without issue.
                But i have had to restart guest after disk migration failure before.

                I'm OK with that. I will have to think about this...

                This can mean unplanned downtime. Which for an exchange system can be costly. Granted the downtime is usually nominal but is worth considering allowing the system to clean up this issue at the nearest possible planned down time.

                anthonyhA 1 Reply Last reply Reply Quote 0
                • anthonyhA
                  anthonyh @DustinB3403
                  last edited by

                  @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                  @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                  @momurda said in XenServer 6.5 - Clean Up Storage Repository:

                  @anthonyh I have had a few disk migrations fail over the last 2 years. Most of the time you just end up with a broken vdi on the destination and the source is fine without issue.
                  But i have had to restart guest after disk migration failure before.

                  I'm OK with that. I will have to think about this...

                  This can mean unplanned downtime. Which for an exchange system can be costly. Granted the downtime is usually nominal but is worth considering allowing the system to clean up this issue at the nearest possible planned down time.

                  Yes, it's a gamble for sure.

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

                    @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                    @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                    @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                    Last night I set up a new SR for Zimbra and live migrated the OS disk over to the new SR without any issues. Took ~5 minutes for the 20 GB VHD.

                    I'd like to do the same for the 1 TB VHD, but it makes me nervous...

                    If the process was to bomb mid-progress, what would happen? Is it easy to recover from?

                    You would have a backup, but why go through this process? Why not let the system run a coalesce? Is this a production system or your lab?

                    Production system. The problem is that there isn't enough space on the SR to perform a coalesce. I'm trying to avoid bringing Zimbra down if at all possible. Might not be possible, but I can at least try. 😄

                    The coalesce process is likely already running attempting to clean up an old snapshot. Performing a manual SR scan, should clean up this issue.

                    anthonyhA 1 Reply Last reply Reply Quote 1
                    • anthonyhA
                      anthonyh @DustinB3403
                      last edited by

                      @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                      @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                      @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                      @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                      Last night I set up a new SR for Zimbra and live migrated the OS disk over to the new SR without any issues. Took ~5 minutes for the 20 GB VHD.

                      I'd like to do the same for the 1 TB VHD, but it makes me nervous...

                      If the process was to bomb mid-progress, what would happen? Is it easy to recover from?

                      You would have a backup, but why go through this process? Why not let the system run a coalesce? Is this a production system or your lab?

                      Production system. The problem is that there isn't enough space on the SR to perform a coalesce. I'm trying to avoid bringing Zimbra down if at all possible. Might not be possible, but I can at least try. 😄

                      The coalesce process is likely already running attempting to clean up an old snapshot. Performing a manual SR scan, should clean up this issue.

                      Already done this several times. No dice.

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

                        @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                        @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                        @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                        @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                        @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                        Last night I set up a new SR for Zimbra and live migrated the OS disk over to the new SR without any issues. Took ~5 minutes for the 20 GB VHD.

                        I'd like to do the same for the 1 TB VHD, but it makes me nervous...

                        If the process was to bomb mid-progress, what would happen? Is it easy to recover from?

                        You would have a backup, but why go through this process? Why not let the system run a coalesce? Is this a production system or your lab?

                        Production system. The problem is that there isn't enough space on the SR to perform a coalesce. I'm trying to avoid bringing Zimbra down if at all possible. Might not be possible, but I can at least try. 😄

                        The coalesce process is likely already running attempting to clean up an old snapshot. Performing a manual SR scan, should clean up this issue.

                        Already done this several times. No dice.

                        I should probably just re-read the thread, but what type of backup are you running with this guest? You aren't using XO so I'm curious where/what is causing this issue.

                        anthonyhA 1 Reply Last reply Reply Quote 0
                        • anthonyhA
                          anthonyh @DustinB3403
                          last edited by

                          @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                          @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                          @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                          @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                          @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                          @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                          Last night I set up a new SR for Zimbra and live migrated the OS disk over to the new SR without any issues. Took ~5 minutes for the 20 GB VHD.

                          I'd like to do the same for the 1 TB VHD, but it makes me nervous...

                          If the process was to bomb mid-progress, what would happen? Is it easy to recover from?

                          You would have a backup, but why go through this process? Why not let the system run a coalesce? Is this a production system or your lab?

                          Production system. The problem is that there isn't enough space on the SR to perform a coalesce. I'm trying to avoid bringing Zimbra down if at all possible. Might not be possible, but I can at least try. 😄

                          The coalesce process is likely already running attempting to clean up an old snapshot. Performing a manual SR scan, should clean up this issue.

                          Already done this several times. No dice.

                          I should probably just re-read the thread, but what type of backup are you running with this guest? You aren't using XO so I'm curious where/what is causing this issue.

                          I am using Alike's "enhanced backup" model, which is snapshot based backups. I also take snapshots of the VM (all VMs, really) whenever I do any sort of maintenance, so I can't really point the blame at Alike. I don't know how long the orphaned snapshots have been around. The interesting thing is that except for Saturday night's run (when I got the alert from the pool that the coalesce failed due to not enough disk space), backups have been successful. Backups aren't performed on Sundays.

                          I don't have the orphaned snapshots issue with any other VM that I'm aware of. SR usage everywhere else looks to be what is expected.

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

                            What output do you get from XS cli when you run this?

                            xapi-explore-sr

                            1 Reply Last reply Reply Quote 0
                            • anthonyhA
                              anthonyh
                              last edited by

                              @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                              What output do you get from XS cli when you run this?

                              xapi-explore-sr

                              Hm. I don't seem to have that command. I have the following:

                              [root@vmhost10 ~]# xapi
                              xapi                     xapi-autostart-vms       xapi-db-process          xapi-wait-init-complete  
                              [root@vmhost10 ~]#
                              
                              1 Reply Last reply Reply Quote 0
                              • DustinB3403D
                                DustinB3403
                                last edited by

                                Curious. . .

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

                                  Doh. . .

                                  This is a feature of XO directly. . . ha yea nevermind.

                                  anthonyhA 1 Reply Last reply Reply Quote 0
                                  • anthonyhA
                                    anthonyh @DustinB3403
                                    last edited by

                                    @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                                    Doh. . .

                                    This is a feature of XO directly. . . ha yea nevermind.

                                    Well, I guess that means I should set it up. 😄

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

                                      Here is the github for that specific feature

                                      https://github.com/vatesfr/xapi-explore-sr

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

                                        @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                                        @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                                        Doh. . .

                                        This is a feature of XO directly. . . ha yea nevermind.

                                        Well, I guess that means I should set it up. 😄

                                        You really should. It takes moments to setup and to get using it.

                                        anthonyhA 1 Reply Last reply Reply Quote 0
                                        • anthonyhA
                                          anthonyh @DustinB3403
                                          last edited by

                                          @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                                          @anthonyh said in XenServer 6.5 - Clean Up Storage Repository:

                                          @dustinb3403 said in XenServer 6.5 - Clean Up Storage Repository:

                                          Doh. . .

                                          This is a feature of XO directly. . . ha yea nevermind.

                                          Well, I guess that means I should set it up. 😄

                                          You really should. It takes moments to setup and to get using it.

                                          Looking at it now.

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

                                            Debian or Ubuntu

                                            Installer

                                             sudo bash
                                            <password>
                                            sudo curl https://raw.githubusercontent.com/Jarli01/xenorchestra_installer/master/xo_install.sh | bash
                                            <password>
                                            

                                            Updater

                                             sudo bash
                                            <password>
                                            sudo curl https://raw.githubusercontent.com/Jarli01/xenorchestra_updater/master/xo-update.sh | bash -s -- -f 
                                            <password>
                                            
                                            1 Reply Last reply Reply Quote 1
                                            • 1
                                            • 2
                                            • 3
                                            • 2 / 3
                                            • First post
                                              Last post