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.
-
@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.
-
Ya with a preallocated qcow2 I can get pretty close to raw speeds. No one is going to notice 10MB/s or even 20 in normal settings.
-