-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upstream status #2
Comments
Thank you for creating the issue. So it's important to someone. Yes, I haven't tried to offer blksnap in the upstream yet. But I intend to try to do it soon. It remains to double-check something. Any feedback is welcome. |
Thanks for reply, I did/do small contributions on some open source projects but I never did on linux kernel, if I remember good I gave only an help in testing one xen part preparing to upstream many years ago. |
Thanks. Indeed, it is the good quality of the code that is an important component of success.
Of course, that's why I'll be offering a patch. |
I agree that your code represents a potentially important improvement for backup of linux systems, especially as new file systems proliferate. Blksnap is a distinct improvement over earlier such attempts like dattobd and elastio-snap. I have been lightly testing blksnap on a computer I routinely use where there are multiple file systems being used. Yours is a worthwhile project that will hopefully get merged into the mainstream kernel at some point. |
for what I see here 2 kernel developers reviewed and replied and there is also 2 replied from an automatic test bot (reporting some warnings), for now, no one has objected or criticized the implementation method but only recommended improvements for a v2. from a quick search I did not find other proposals for implementing "temporary" snapshots for better backup integrity and that supports many filesystems unfortunately I have not yet had time to try blksnap but from what I have seen from experience this functionality integrated into the kernel is very useful and as I have already seen several backup solutions have made their own modules for similar things but no one who has proposed its implementation in the kernel I have used several backup solutions over the years, most with file level backup using rsync, however even in such cases I think it would be useful because either the services stop during the whole backup or you risk not having it integrated and the larger the part to back up and the more time it takes, the greater the risk of integrity being compromised. Another thing I tried at works in latest years is to use btrfs with integrated snapshot for backups (I also tried zfs years ago) but I use only in some cases because for example on virtualization systems, the COW it has a significant impact on performance and there are also some space issues keeping snapshots on the same production filesystem. this could be a solution to make a backup with minimum downtime stopping services to take the snapshot (with blksnap) and maximum integrity probability, or at least making the snapshot to active services like what a COW filesystem like btrfs and zfs can do but without having to use such filesystems. I hope these examples based on my experience give an idea of how useful a system like blksnap is sorry for my bad english |
Thanks @Fantu. I expected a very calm reaction to the patch.
So, the next patch will be better. Alas, the performance of the blksnap module should not be better than DM snapshots (LVM2). Theoretically, snapshots on Btrfs should be better. But for BTRFS, we cannot read the entire block device. We have to synchronize the source and target file systems. The Veeam Agent for Linux implements btrfs backup support by its native means. The performance was not the best. The presence of a change tracker and the ease of allocating space for the difference storage are the main advantages of blksnap, compared to "classic" snapshots. |
thanks for reply and your works |
Hello everyone. |
hi, is there any news about v2 patch serie for upstream? |
Hi. That's what I really want to do. |
Hi! This looks like a workable version of the patch for linux kernel 6.1-rc1 . Feedback is welcome. |
This patch has been sent. |
good, I not checked it in detail but I noted a small mistake on the version of the patch serie posted, v1 instead of v2, but if you have sent it by now there is nothing else to do (or they would receive it double), I saw there is at least a list of changes from v1 in the cover so it should be "ok" anyway edit: found the link of the serie posted, I put here if can be useful: |
Link to patchwork. |
@SergeiShtepa with a search I found this: https://lwn.net/Articles/914852/ and seems that wrote about a lack of documentation to be accepted |
Thanks. |
@SergeiShtepa I saw your replies on lwn, unfortunately even as you explained you want to avoid additional time being wasted reviewing documentation before it is accepted upstream I suppose without more documentation some people won't start reviewing it. For now on mailing list of patch posted I didn't see new replies :(
|
To read the entire article https://lwn.net/Articles/914031/ and comments before December 1, you need to be a registered user. After December 1st, access will be unlimited. I tried to answer all the questions.
Thanks, I'll have to check it out too for next patch. Perhaps the next v2 patch with documentation and accompanied by an interesting article will attract more attention. |
@SergeiShtepa thanks for replies and your work |
@SergeiShtepa in the patch serie is missed the add of entry in MAINTAINERS file |
Maybe... |
@SergeiShtepa thanks for the creation of documentation to include in the patch for upstream about btrfs "Obviously cannot be applied to other file systems.", I suppose you mean the fact that the main advantages of transferring to another local or remote destination are lost from or to a different filesystem, and it is, but written like this is wrong, in practice it is possible to use it even if most of the advantages are lost. You can use it both for "temporary" snapshots during which you make a backup (for example with rsync) to another destination; and from a source without btrfs, you make backups with another (for example rsync) and on the destination you use the btrfs snapshots to manage the "history" with some advantages (I've been using it on some systems for years). the rest of the disadvantages I saw in practice during a long testing some years ago thinking about using btrfs instead of ext4 on several virtualization systems to manage better and faster backups but the performance impact was huge (partly due to the use of hdd) and even if only the last corresponding snapshot was kept for send/receive with the destination there were disadvantages, reduced in part with a single destination and daily backup but considerable with multiple destinations (in my case 2) in "rotation" and having to keep a week or even more the snapshots. however without listing all the possibilities I think it is wrong to write things like "the blksnap module is the best way to create snapshots for backup tools", it is in good part of cases but not all. sorry if I didn't explain myself well and for my bad english |
@Fantu - Thanks for the feedback! I will try to improve those sections that you have noticed. My English is also not as good as I would like. So I'm trying to do what I'm capable of. :) I can suggest you try to make the document better. Why not try? |
Changes according to the [comment](#2 (comment))
Hi! |
Hi. |
@SergeiShtepa the latest mail shipments seem to have been a bit chaotic^^'' v4 splitted and double v5 I saw and replies "scattered" |
Yeah, mail... I hope that in the future I will be able to organize work with mail so that such problems do not arise. |
looking https://github.com/torvalds/linux after the latest "block merge" of 2 days ago seems that "for-next" of block was fully merged (https://git.kernel.org/pub/scm/linux/kernel/git/axboe/linux-block.git/log/?h=for-next) so I think can blksnap can be rebased on latest https://github.com/torvalds/linux (now that include all the block changes) for working on next version of the patch |
Yes, thanks Fabio. |
Hi! In the 'stable-v2.0' branch of this repository and in the branch 'blksnap-master' based on vanilla 6.6-rc2 of linux repository , the concept of storing snapshot differences in a file was implemented. An interesting consequence of these changes:
I think that it is possible to return the ability to create a difference storage on a block device under snapshots. But this will require support from file systems. It can be quite a difficult job. In the near future, I will be engaged in testing, improve documentation and preparing a patch. |
Hi. |
Tested build on amd64 (both builtin and module), armhf, arm64 and various ppc config. |
Hi, I don't have enough time to test its use, I just launched some amd64 builds (builtin and module), armhf, arm64 and some ppc. (from automatic tests I prepared in past).
|
This time the send of patch serie seems complete and without duplicate 👍 |
Yep. |
Looking kernel bot message of older version seems it try also with linux-block for-next: https://lore.kernel.org/lkml/[email protected]/
So I think that if will apply correctly with master or linux-block don't report error, unless it detect other errors and/or warnings |
I checked it out. |
Of v7 I didn't pay attention to the patches subjects, from patch 3/8 to patch 8/8 I think it should be "blksnap:" or "block/blksnap:" instead of "block:" at the beginning of the subjects |
@SergeiShtepa hi, Christoph did write to you to find out if the latest version was good enough for the upstream application, or need other improvements, or did he not have time to review it? |
Hi, @Fantu !
Yep. Indeed, there is no reaction. I think that everyone who wanted to see the latest patchset did it, regardless of whether he is the recipient of the letter or not. I am currently preparing an updated standalone version of the module for one of the next releases of our product. Even if the blksnap module is never accepted into the kernel, the work has not been done in vain. I will definitely return to work on the upstream version later. |
Hi, this patchset is only for testing on 6.9 but not for submit, right? |
Hi, I don't know yet when I will write e-mails for maintainers. |
Hi, any update on this Topic? |
Hi.
And that's a good question. As usual, the most valuable resource is missing - time. Nevertheless, I plan to make at least one more attempt. It is possible that this will happen this autumn. |
Thanks for your honest answer! |
I would like to contribute more, but I lack the time and I lack sufficient knowledge for the parts of the kernel involved (and the time to learn them). |
Yes, that's right. I agree with every word @Fantu. Plus, I and the company I work for have pretty little experience working with open source. |
@SergeiShtepa Hi, thanks for your works on blksnap kernel module, I think will be very useful for improve backup on linux.
I'm curious about the status of its possible upstream integration, from 85bad8f seems you prepared a patches serie for upstream (for send a mail with it) but I not found it posted searching on lkml.org and google. I saw also other series of months ago on other branches but I not found them on upstream mailing list and found only older your works of 1 year ago or more.
Thanks for any reply and sorry for my bad english.
The text was updated successfully, but these errors were encountered: