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

    Linux: BtrFS

    IT Discussion
    linux btrfs filesystems filesystem sam linux administration raid lvm logical volume managers
    4
    54
    7.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.
    • bbigfordB
      bbigford @scottalanmiller
      last edited by

      @scottalanmiller said in Linux: BtrFS:

      Similarly... Windows has recently introduced ReFS.

      Again, just information, not a recommendation. In fact, I'd almost never recommend ReFS. NTFS is generally better.

      Of course, half a decade from now, that might change as other factors change around it.

      Certainly not if you want disk quotas (outside of FSRM) and EFS built in. Haven't tried out the resiliency aspect yet though.

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

        @scottalanmiller said in Linux: BtrFS:

        Similarly... Windows has recently introduced ReFS.

        Again, just information, not a recommendation. In fact, I'd almost never recommend ReFS. NTFS is generally better.

        Of course, half a decade from now, that might change as other factors change around it.

        The amount of time has nothing to do with it. It's exactly the same process then as to now. If you need to make a full image backup of a VM and it's on a logical volume, then the best method is to suspend the VM and take a LV snapshot. It's exactly the same five years later.

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

          @scottalanmiller said in Linux: BtrFS:

          This part is critical: "I'm testing kvm on centos 6.2 and I need to learn how to make backups that I can spin up if needed."

          He wanted a backup "that could be spun up", so only images applied.

          Doesn't matter. That's not what the OP is about at all. It is an important part, but not what it is about. That's not up for debate in any way.

          scottalanmillerS 2 Replies Last reply Reply Quote 0
          • scottalanmillerS
            scottalanmiller @stacksofplates
            last edited by

            @stacksofplates said in Linux: BtrFS:

            @scottalanmiller said in Linux: BtrFS:

            Similarly... Windows has recently introduced ReFS.

            Again, just information, not a recommendation. In fact, I'd almost never recommend ReFS. NTFS is generally better.

            Of course, half a decade from now, that might change as other factors change around it.

            The amount of time has nothing to do with it. It's exactly the same process then as to now. If you need to make a full image backup of a VM and it's on a logical volume, then the best method is to suspend the VM and take a LV snapshot. It's exactly the same five years later.

            Sure, I agree. If you need to make a full image backup, which was the context of the question five years ago and not at all the context of the portion of this thread that you are discussing.

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

              @stacksofplates said in Linux: BtrFS:

              @scottalanmiller said in Linux: BtrFS:

              This part is critical: "I'm testing kvm on centos 6.2 and I need to learn how to make backups that I can spin up if needed."

              He wanted a backup "that could be spun up", so only images applied.

              Doesn't matter. That's not what the OP is about at all. It is an important part, but not what it is about. That's not up for debate in any way.

              How do his requirements not matter?

              They are important enough to define the answer, clearly.

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

                @scottalanmiller said in Linux: BtrFS:

                @stacksofplates said in Linux: BtrFS:

                @scottalanmiller said in Linux: BtrFS:

                This part is critical: "I'm testing kvm on centos 6.2 and I need to learn how to make backups that I can spin up if needed."

                He wanted a backup "that could be spun up", so only images applied.

                Doesn't matter. That's not what the OP is about at all. It is an important part, but not what it is about. That's not up for debate in any way.

                How do his requirements not matter?

                They are important enough to define the answer, clearly.

                Stop changing the subject. You know I meant it doesn't matter in reference to this:

                The reason that I was so adamant there is because you should not be installing Linux without it. The OP was about how he hadn't installed LVM, I responded primarily to that. The mentioning of it being useful for KVM was not even the focus but an offhand remark.

                You said the post was about how he hadn't installed LVM. It wasn't, it was about backing up KVM machines. The fact he mentioned not having logical volumes does not matter in the sense that you said it was about him not having LVM installed. IT wasn't about that, it's not up for debate. It was an important part because you should have it installed, but it was not the point of the thread. You never said, you should be using an agent because I don't recommend taking snapshots of logical volumes. You told him to set up logical volumes and that's how KVM machines are backed up, without mentioning any other ways to do it.

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

                  @stacksofplates you left out the part where I "recommended" a non-LVM based backup solution for the OP on that old thread and got the BA for it. I use "recommended" loosely as it was just a search for a free tool that would work for him to get what he needed and would not require LVM as he did not have it. That, too, was not a recommendation, it was simply telling him about a tell.

                  You can't read into every response to a thread as a recommendation or personal endorsement unless it is stated as such. If we did, we'd have to also assume that I had recommended not installing LVM, because he didn't but I still answered, or that I was recommending KVM (which might be great, but I certainly didn't promote it in any way.) There is no end to what we could read in. I simply provided some information, guidance and the accepted BA which did not involve LVM.

                  If we equally read into my BA response, we'd take away that I had recommended against LVM on that thread. In reality, I didn't recommend any backup style at all, only that LVM not be avoided during installation so that options would be available later.

                  0_1488651699103_Screenshot from 2017-03-04 19-21-05.png

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

                    @scottalanmiller said in Linux: BtrFS:

                    @stacksofplates you left out the part where I "recommended" a non-LVM based backup solution for the OP on that old thread and got the BA for it. I use "recommended" loosely as it was just a search for a free tool that would work for him to get what he needed and would not require LVM as he did not have it. That, too, was not a recommendation, it was simply telling him about a tell.

                    You can't read into every response to a thread as a recommendation or personal endorsement unless it is stated as such. If we did, we'd have to also assume that I had recommended not installing LVM, because he didn't but I still answered, or that I was recommending KVM (which might be great, but I certainly didn't promote it in any way.) There is no end to what we could read in. I simply provided some information, guidance and the accepted BA which did not involve LVM.

                    If we equally read into my BA response, we'd take away that I had recommended against LVM on that thread. In reality, I didn't recommend any backup style at all, only that LVM not be avoided during installation so that options would be available later.

                    0_1488651699103_Screenshot from 2017-03-04 19-21-05.png

                    Ya that's using LVM. Nice try.

                    Direct quote from the site you linked (the python script I'm talking about)

                    I use it to backup running virtual machines in this way: first, suspend the virtual machine (for a short while), then create a snapshot of the LVM used as storage by the virtual machine, then resume the virtual machine so it can continue running without almost no downtime (taking a LVM snapshot is very fast!)

                    It does exactly what you just said you didn't recommend.

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

                      @stacksofplates said in Linux: BtrFS:

                      @scottalanmiller said in Linux: BtrFS:

                      @stacksofplates you left out the part where I "recommended" a non-LVM based backup solution for the OP on that old thread and got the BA for it. I use "recommended" loosely as it was just a search for a free tool that would work for him to get what he needed and would not require LVM as he did not have it. That, too, was not a recommendation, it was simply telling him about a tell.

                      You can't read into every response to a thread as a recommendation or personal endorsement unless it is stated as such. If we did, we'd have to also assume that I had recommended not installing LVM, because he didn't but I still answered, or that I was recommending KVM (which might be great, but I certainly didn't promote it in any way.) There is no end to what we could read in. I simply provided some information, guidance and the accepted BA which did not involve LVM.

                      If we equally read into my BA response, we'd take away that I had recommended against LVM on that thread. In reality, I didn't recommend any backup style at all, only that LVM not be avoided during installation so that options would be available later.

                      0_1488651699103_Screenshot from 2017-03-04 19-21-05.png

                      Ya that's using LVM. Nice try.

                      Direct quote from the site you linked (the python script I'm talking about)

                      I use it to backup running virtual machines in this way: first, suspend the virtual machine (for a short while), then create a snapshot of the LVM used as storage by the virtual machine, then resume the virtual machine so it can continue running without almost no downtime (taking a LVM snapshot is very fast!)

                      It does exactly what you just said you didn't recommend.

                      Are you sure? I looked in the code and the code made a point of LVM being added later (in the 2011 notes) and sure looked like LVM was only one of the methods supported. It specifically says in the code that some features are only if using LVM. Would be weird if that was the only option.

                      The part you quoted was someone else talking about how they use the script, they likely had LVM so use it in that way.

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

                        This person definitely got the opposite impression that you did from my comments in that post.

                        0_1488652027151_Screenshot from 2017-03-04 19-26-47.png

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

                          Here is the code itself, rather than a third party discussing it:

                          # These files are writen in a temporary backup dir. Everything is done
                          # in order to minimize donwtime of the guest. For example, it takes
                          # a snapshot of the block devices (if backed with LVM) so the guest is
                          # just paused for a couple of seconds. Once this is done, the guest is
                          # resumed, and the script starts to dump the snapshot.
                          

                          That wording sure makes it sound like LVM is only an optional method, not the sole one.

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

                            @scottalanmiller said in Linux: BtrFS:

                            @stacksofplates said in Linux: BtrFS:

                            @scottalanmiller said in Linux: BtrFS:

                            @stacksofplates you left out the part where I "recommended" a non-LVM based backup solution for the OP on that old thread and got the BA for it. I use "recommended" loosely as it was just a search for a free tool that would work for him to get what he needed and would not require LVM as he did not have it. That, too, was not a recommendation, it was simply telling him about a tell.

                            You can't read into every response to a thread as a recommendation or personal endorsement unless it is stated as such. If we did, we'd have to also assume that I had recommended not installing LVM, because he didn't but I still answered, or that I was recommending KVM (which might be great, but I certainly didn't promote it in any way.) There is no end to what we could read in. I simply provided some information, guidance and the accepted BA which did not involve LVM.

                            If we equally read into my BA response, we'd take away that I had recommended against LVM on that thread. In reality, I didn't recommend any backup style at all, only that LVM not be avoided during installation so that options would be available later.

                            0_1488651699103_Screenshot from 2017-03-04 19-21-05.png

                            Ya that's using LVM. Nice try.

                            Direct quote from the site you linked (the python script I'm talking about)

                            I use it to backup running virtual machines in this way: first, suspend the virtual machine (for a short while), then create a snapshot of the LVM used as storage by the virtual machine, then resume the virtual machine so it can continue running without almost no downtime (taking a LVM snapshot is very fast!)

                            It does exactly what you just said you didn't recommend.

                            Are you sure? I looked in the code and the code made a point of LVM being added later (in the 2011 notes) and sure looked like LVM was only one of the methods supported. It specifically says in the code that some features are only if using LVM. Would be weird if that was the only option.

                            The part you quoted was someone else talking about how they use the script, they likely had LVM so use it in that way.

                            The part I posted was the same thing you posted. It was written in 2010. So unless he's a time traveler, that's how it works.

                            0_1488652123102_lvm.png

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

                              @stacksofplates said in Linux: BtrFS:

                              The part I posted was the same thing you posted. It was written in 2010. So unless he's a time traveler, that's how it works.

                              But is that the only way that it works? I don't know, I only know that I looked in the code and it said what I posted above.

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

                                @scottalanmiller said in Linux: BtrFS:

                                This person definitely got the opposite impression that you did from my comments in that post.

                                0_1488652027151_Screenshot from 2017-03-04 19-26-47.png

                                So because someone apparently doesn't understand that Logical Volumes are block storage, that somehow means what you said didn't actually mean what you said?

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

                                  @scottalanmiller said in Linux: BtrFS:

                                  @stacksofplates said in Linux: BtrFS:

                                  The part I posted was the same thing you posted. It was written in 2010. So unless he's a time traveler, that's how it works.

                                  But is that the only way that it works? I don't know, I only know that I looked in the code and it said what I posted above.

                                  See I call bs on that. If you looked at the code then why link some article someone posted about using it as a LVM backup method (and giving instructions on how to do it) instead of the actual product.

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

                                    You are probably right. And looking at the script I'm not seeing if there are multiple methods or not, only looking at it quickly. I'm sure I did a quick search using exactly the words from the title of the thread to get a link to a resource for the OP. I'm sure I didn't look into it at all at the time.

                                    So I apologize for answering his question as he asked it and for being confusing. I meant to imply nothing, just to help him out and answer his question.

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

                                      @scottalanmiller said in Linux: BtrFS:

                                      You are probably right. And looking at the script I'm not seeing if there are multiple methods or not, only looking at it quickly. I'm sure I did a quick search using exactly the words from the title of the thread to get a link to a resource for the OP. I'm sure I didn't look into it at all at the time.

                                      So I apologize for answering his question as he asked it and for being confusing. I meant to imply nothing, just to help him out and answer his question.

                                      I'm not trying to do this to make anyone apologize or feel bad. I just don't understand why on one hand things are recommended and in the same scenario where someone says "imagine I will run KVM server ontop of BTRFS, will it makes sense to snapshot the volume " and you say, "No it's never made sense".

                                      It makes sense and it's a very viable way to do it. Sure it's wasteful, but if you "need" a full image backup, it's a perfectly viable way.

                                      Esp since it's just as fast (or possibly faster) to block copy an image backup onto a volume vs a backup through an agent (like ReaR or Veeam Endpoint).

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

                                        Personally, unless it's absolutely needed, I don't think raw block storage is a good idea. But if you need the block storage, that method is a decent way to do image backups.

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

                                          @stacksofplates said in Linux: BtrFS:

                                          @scottalanmiller said in Linux: BtrFS:

                                          You are probably right. And looking at the script I'm not seeing if there are multiple methods or not, only looking at it quickly. I'm sure I did a quick search using exactly the words from the title of the thread to get a link to a resource for the OP. I'm sure I didn't look into it at all at the time.

                                          So I apologize for answering his question as he asked it and for being confusing. I meant to imply nothing, just to help him out and answer his question.

                                          I'm not trying to do this to make anyone apologize or feel bad. I just don't understand why on one hand things are recommended and in the same scenario where someone says "imagine I will run KVM server ontop of BTRFS, will it makes sense to snapshot the volume " and you say, "No it's never made sense".

                                          Here is what I was trying to say...

                                          • Using LVMs isn't great for your main backups (as a recurring mechanism) because it can't grab the system live without risk because we don't know the state of the storage.
                                          • BtrFS does not change this at all, it has the same limitations that LVM2 did/does.

                                          What I was trying to "imply" (you can see why I'm bad at that) was that other methodologies are available and more effective, such as using a Veeam Agent which will know the state of the storage.

                                          Can snaps be used? Yes, they can. But using them is not straightforward and simple, at best they are part of a bigger backup strategy and not used on their own. You would not "snap the volume" under normal running KVM circumstances. You certainly don't want to disable that functionality just to throw it away, but you would not, or at least I would not, normally snap the KVM storage volume.

                                          You are correct, with the right known limitations and scripting or tooling, the LVM2 or BtrFS snapping mechanisms can play into a larger backup mechanism. Something that can force a quiescence and manage the snap together can make this effective.

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

                                            @stacksofplates said in Linux: BtrFS:

                                            Personally, unless it's absolutely needed, I don't think raw block storage is a good idea. But if you need the block storage, that method is a decent way to do image backups.

                                            I agree, to both parts. The big thing that I was meaning was that I don't generally recommend image backups and then that dominoes into not using snaps for backups (at least not alone). If you need raw storage and images, absolutely, that's how you do it. I wasn't try to say that it wasn't how to do that, but meant not to do that at all (or rarely.)

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