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

    XenServer NFS Storage Repo in the SMB

    IT Discussion
    xenserver nfs shared storage smb
    6
    66
    22.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.
    • olivierO
      olivier @stacksofplates
      last edited by olivier

      @johnhooks To avoid the "re-importing" step that you need with classical backup 🙂

      Backup:

      • exporting somewhere (any filesystem)
      • re importing when need (import time)

      DR:

      • streaming somewhere (another XenServer host)
      • ready to start on the target if needed

      edit: so it seems similar but it's not for the same use case.

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

        @olivier is it a reasonable assumption that you'd want to have at least double the capacity that you're using on the Local Xen SR when building the Delta for that process?

        olivierO scottalanmillerS 2 Replies Last reply Reply Quote 0
        • DustinB3403D
          DustinB3403
          last edited by DustinB3403

          So if you plan for 11TB(used/live data) you'd really want 22TB of local storage on the Xen SR for XO to have enough space to perform its function.

          1 Reply Last reply Reply Quote 0
          • olivierO
            olivier @DustinB3403
            last edited by olivier

            @DustinB3403 Even classical backup: for a running VM we need to export the snapshot. So if all your VMs are running and you are backuping everything at once, you'll need to double your space usage (at least during the VM export process).

            That's why it's important to use thin provisioned storage as possible.

            scottalanmillerS DashrenderD 2 Replies Last reply Reply Quote 2
            • olivierO
              olivier
              last edited by

              And sadly that's nothing we can do about it ^^

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

                @olivier said:

                And sadly that's nothing we can do about it ^^

                Nothing wrong with that, just making sure that the 'plans' are correct.

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

                  @Dashrender said:

                  What red herring? If they made a plan, and the plan ended up being wrong, then all you can do is move onto the normal things, as you said, either grow the storage or find ways to use less storage.

                  The red herring of adding "remote" as if that didn't have the problem and pointing to "what is the LOCAL" isn't enough. But the answer is the same in either case, add more. The implication, the red herring, was this underlying thought that somehow external storage would not run out and local would. But the risk and the solutions are the same.

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

                    @DustinB3403 said:

                    @scottalanmiller the reason for scaling up to 22TB would be for the time & space it takes to build the delta which is a Snapshot on the Host, until it gets put onto the NFS Server.

                    Which would then copy it to an External NAS (and with planning another external device like a USB)

                    3-2-1 Backup.

                    Live and 2 copies on different media and one off site.

                    Okay, so that's assuming 11TB of native VMs and 100% deltas and backing up the entire server in a single go to be able to hit that? Do those things happen?

                    DustinB3403D 1 Reply Last reply Reply Quote 1
                    • olivierO
                      olivier
                      last edited by

                      About thin provisioning in next XenServer version (Dundee):

                      THIN PROVISIONED BLOCK STORAGE

                      iSCSI and HBA block storage can now be configured to be thinly provisioned. This is of particular value to those users who provision guest storage with a high water mark expecting that some allocated storage won't be used. With XenServer 6.5 and prior, the storage provider would allocate the entire disk space which could result in a significant reduction in storage utilization which in turn would increase the cost of virtualization. Now block storage repositories can be configured with an initial size and an increment value. Since storage is critical in any virtualization solution, we are very interested in feedback on this functional change.

                      Source: http://xenserver.org/discuss-virtualization/virtualization-blog/entry/xenserver-dundee-beta-1-available.html

                      I have to make some tests on my side.

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

                        @olivier said:

                        That's why it's important to use thin provisioned storage as possible.

                        Like local files and/or NFS 🙂

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

                          @DustinB3403 said:

                          @olivier is it a reasonable assumption that you'd want to have at least double the capacity that you're using on the Local Xen SR when building the Delta for that process?

                          Not generally, no. That's huge. You have to know something about your system, if course, but this is a theoretical limit, not a practical number.

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

                            @scottalanmiller said:

                            @DustinB3403 said:

                            @scottalanmiller the reason for scaling up to 22TB would be for the time & space it takes to build the delta which is a Snapshot on the Host, until it gets put onto the NFS Server.

                            Which would then copy it to an External NAS (and with planning another external device like a USB)

                            3-2-1 Backup.

                            Live and 2 copies on different media and one off site.

                            Okay, so that's assuming 11TB of native VMs and 100% deltas and backing up the entire server in a single go to be able to hit that? Do those things happen?

                            No, but if I don't plan for it now, when it happens in a years time because of poor decision making I'll be the asshole who didn't plan for stupidity.

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

                              @DustinB3403 said:

                              @scottalanmiller said:

                              @DustinB3403 said:

                              @scottalanmiller the reason for scaling up to 22TB would be for the time & space it takes to build the delta which is a Snapshot on the Host, until it gets put onto the NFS Server.

                              Which would then copy it to an External NAS (and with planning another external device like a USB)

                              3-2-1 Backup.

                              Live and 2 copies on different media and one off site.

                              Okay, so that's assuming 11TB of native VMs and 100% deltas and backing up the entire server in a single go to be able to hit that? Do those things happen?

                              No, but if I don't plan for it now, when it happens in a years time because of poor decision making I'll be the asshole who didn't plan for stupidity.

                              So the thing that you are ACTUALLY planning for is using 16TB of storage for VMs. That's fine, but be transparent about what you are planning for. It's not the backups, it's overrunning the intended storage.

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

                                @scottalanmiller I wasn't trying to be non-transparent.

                                Just trying to make a point that you need to have enough space for the eventuality of growth, which might change plans.

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

                                  @DustinB3403 said:

                                  @scottalanmiller I wasn't trying to be non-transparent.

                                  Just trying to make a point that you need to have enough space for the eventuality of growth, which might change plans.

                                  To make it transparent, you would state it as X storage + Y for backup overhead. Not project 11TB as the growth number, then add another growth number and the backup overhead together.

                                  So in your case, accounting for future unknown growth, you'd have something like 16TB and a reasonable 5TB of space for snaps during the backup process. Which sounds a lot more reasonable.

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

                                    So this is kind of a related question. Normally thin LVMs look like the test one I created here:

                                    root@Megatron:/home/jhooks# lvs
                                      LV     VG        Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
                                      root   ubuntu-vg -wi-ao----   1.81t                                                    
                                      swap_1 ubuntu-vg -wi-ao----   7.96g                                                    
                                      test   ubuntu-vg twi-a-tz-- 100.00m             0.00   0.88                            
                                    root@Megatron:/home/jhooks# 
                                    

                                    However XenServer doesn't show a Data or Meta section, is that just because it's Centos 6? It shows a type of linear for each LVM. So if they aren't thin provisioned does it create the LVM, then attach a thin provisioned VHD over top?

                                    olivierO 1 Reply Last reply Reply Quote 0
                                    • olivierO
                                      olivier @stacksofplates
                                      last edited by olivier

                                      @johnhooks If you are on a XenServer pre-Dundee, that's normal: LVM is not thin provisioned in this case.

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

                                        @olivier said:

                                        @DustinB3403 Even classical backup: for a running VM we need to export the snapshot. So if all your VMs are running and you are backuping everything at once, you'll need to double your space usage (at least during the VM export process).

                                        That's why it's important to use thin provisioned storage as possible.

                                        HUH? Creating a Snap doesn't instantly create a double of your current in use storage. Assuming a 2 TB VM, you snap it, As I understand it, what happens is the current 2 TB file is no longer written to, and a new additional file is created where all of the changes are written to. If that VM isn't very change heavy, the Snap file most likely will remain small. Of course there are times when the system might be changing data like crazy - out with the old, in with the new - so total usage doesn't change, but actual changes could be epic.

                                        1 Reply Last reply Reply Quote 0
                                        • olivierO
                                          olivier
                                          last edited by olivier

                                          @Dashrender It's not exactly like that on a thick storage. It's a little bit more complicated in fact.

                                          It depends of the current disk content. XenServer will try to deflate as possible. Let's take for example, only one VDI with the total size of the disk space provisioned (let's say on a LVMoiSCSI):

                                          Then, if you do a snapshot, you'll have 3 disks:

                                          • the original one will become the parent
                                          • the new created active VDI will be remapped to be current VM disk
                                          • the snapshot

                                          Doubling size is the worst case, when deflate won't free some space (or very little). In this case, the initial snapshot mechanism will double the space used.

                                          But any extra snapshot (after the initial one) won't consume a lot of space.

                                          1 Reply Last reply Reply Quote 3
                                          • olivierO
                                            olivier
                                            last edited by

                                            By the way, you can spot the difference with a thin provisioned SR, like NFS in this case:

                                            Far better...

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