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.
-
@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.
-
@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.
-
@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.
-
@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.
-
@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.
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.
-
@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.
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.
-
This person definitely got the opposite impression that you did from my comments in that post.
-
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.
-
@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.
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.
-
@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.
-
@scottalanmiller said in Linux: BtrFS:
This person definitely got the opposite impression that you did from my comments in that post.
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?
-
@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.
-
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.
-
@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).
-
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.
-
@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.
-
@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.)
-
@scottalanmiller said in Linux: BtrFS:
@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.)
Ya I have done it with just a snap, and things went wrong. Esp when concerning the host. The host has to have the logical volumes mounted (if I remember correctly) so all of that comes in to play also.
-
@stacksofplates said in Linux: BtrFS:
@scottalanmiller said in Linux: BtrFS:
@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.)
Ya I have done it with just a snap, and things went wrong. Esp when concerning the host. The host has to have the logical volumes mounted (if I remember correctly) so all of that comes in to play also.
Yeah, that just gets unnecessarily complex. It's so rare that a setup like that is warranted.