• We did not send an email asking for donations - please read this post.

BTRFS; How is it like to?

OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,473
Reaction score
1,196
Credits
10,706
@dos2unix you might be interested in this https://fedoramagazine.org/btrfs-snapshots-backup-incremental/ turns out I wasn't completely wrong about the backup part, only it's not an automatic feature, you can however make incremental backups from the snapshots. An excerpt from the article:
Incremental backup

Another useful feature of snapshots is the ability to perform the send task in an incremental way. Let’s take another snapshot.
Code:
sudo btrfs subvolume snapshot -r /home /.snapshots/home-day2
In order to perform the send task incrementally, you need to specify the previous snapshot as a base and this snapshot has to exist in the source and in the destination. Please note the -p option.
Code:
sudo btrfs send -p /.snapshot/home-day1 /.snapshot/home-day2 | sudo btrfs receive /run/media/user/mydisk/bk
And all of this without having to install anything else. That's pretty cool! :) By the way, when I said that snapper handles the whole snapshot process in openSUSE, that's not entirely right, you can handle snapshots with it but BTRFS does all the snapshot process by itself; create and delete them when necessary, usually it creates snapshots when the FS changes, .i.e. some mayor update, and it deletes old snapshots that are no longer necessary. Snnaper can do that as well, but it seems it's not really needed for this to work.
 
Last edited:


dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,566
Reaction score
1,190
Credits
9,989
Interesting, might have to give this a try.
 

Condobloke

Well-Known Member
Joined
Apr 30, 2017
Messages
5,147
Reaction score
4,319
Credits
30,310
Snapper is available in LM20.1....in the software manager
 
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,473
Reaction score
1,196
Credits
10,706
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,473
Reaction score
1,196
Credits
10,706
@dos2unix I installed Fedora 34, and as explained here https://fedoraproject.org/wiki/Changes/BtrfsWithFullSystemSnapshots#Scope and I quote
1. Adjust the default proposed Btrfs layout by Anaconda to be more optimal (potentially derived from the openSUSE one).

2. Add support for automatically configuring Snapper and the Snapper DNF plugin on Btrfs installs

3. Enable Snapper's ability to generate boot entries for GRUB 2 with the snapper plugin (or alternatively use Boom with snapper if we're using BLS)
It would seem that snapper is indeed necessary for the snapshots to be created automatically, otherwise you have to create them manually with the
Code:
btrfs-subvolume
command. I also found that the pkg grub2-snapper-plugin isn't available in fedora's repos, and it's necessary to gain the ability to select a snapshot from the grub menu, and boot to it in read-mode only to test it and see whether it fixes some issues, the same way it is in openSUSE. IMHO, and from my short so far experience dealing with BTRFS, openSUSE is a bit ahead of Fedora, at least for newcomers like me; the Yast installer creates the subvolumes on its own, Anaconda doesn't, at least not if you choose the custom partitioning, like I did in both cases. Maybe it does if you use the guided/automatic partitioning, like Fedora is the only OS and no dual-booting. By the way, I installed the KDE spin, and apart from a few "gotchas" here and there, specially with Wayland, it is working great. I wrote this from it :)
 

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,988
Reaction score
3,629
Credits
36,344
Quick update, a few weeks ago I switched my desktop system to Fedora and I'm using btrfs. Quite liking Btrfs as I have found the setup can do everything I used to do with my ext4+lvm setup.
 
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,473
Reaction score
1,196
Credits
10,706
Quick update, a few weeks ago I switched my desktop system to Fedora and I'm using btrfs. Quite liking Btrfs as I have found the setup can do everything I used to do with my ext4+lvm setup.
For BTRFS, I quite prefer OpenSUSE, since it has some handy tools already available, like snapper to roll back your OS to a previous state from GRUB. I remember reading Fedora was working on a similar approach (grub plugin for BTRFS snapshots), but don't know the status on that. Also, YAST will partition your disk properly, with the appropriate layout, so everything goes smoothly. My experience with Fedora (calamares Anaconda) wasn't very satisfactory. I've been thinking on switching to BTRFS, too, but like I said, I like OpenSUSE's take. Problem is, Leap doesn't have latest KDE, like KDE Neon Testing does (which is what I use), and Tumbleweed pulls too many updates, and I'm not sure if I want to use BTRFS on Neon/Ubuntu, so I'm still thinking about trying ... or not. :)
 
Last edited:

f33dm3bits

Gold Member
Gold Supporter
Joined
Dec 11, 2019
Messages
4,988
Reaction score
3,629
Credits
36,344
For BTRFS, I quite prefer OpenSUSE, since it has some handy tools already available, like snapper to roll back your OS to a previous state from GRUB. I remember reading Fedora was working on a similar approach (grub plugin for BTRFS snapshots), but don't know the status on that. Also, YAST will partition your disk properly, with the appropriate layout, so everything goes smoothly. My experience with Fedora (calamares) wasn't very satisfactory. I've been thinking on switching to BTRFS, too, but like I said, I like OpenSUSE's take. Problem is, Leap doesn't have latest KDE, like KDE Neon Testing does (which is what I use), and Tumbleweed pulls too many updates, and I'm not sure if I want to use BTRFS on Neon/Ubuntu, so I'm still thinking about trying ... or not. :)
I use Timeshift to make snapshots and restore, Fedora doesn't use the Calamares installer but another one the same one which is used by Rhel. I know that for sure because I have always avoided distributions with the Calamares installer because that installer doesn't support lvm setups. I was able to do choose the appropriate disk layout with the Fedora installer without any trouble. I haven't look at booting from btrfs snapshots yet but will have a look at it when I have time.

Update: I did a quick search, it doesn't seem to hard.
 
Last edited:
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,473
Reaction score
1,196
Credits
10,706
Fedora doesn't use the Calamares installer
Oh, you're right. It's Anaconda.
I was able to do choose the appropriate disk layout with the Fedora installer without any trouble.
Well, I couldn't, had to manually do it by using OpenSUSE's as a reference, and even then had to create a couple of missing volumes post-install. I don't know if it had something to do with the fact that I had a 4-booting setup at that time (3 distros + Windows 7), but I do know Yast will create them without issues, even in that scenario (I had leap then switched to tumbleweed).
 
Last edited:

dos2unix

Well-Known Member
Joined
May 3, 2019
Messages
1,566
Reaction score
1,190
Credits
9,989
For BTRFS, I quite prefer OpenSUSE

I haven't tried it on SuSE. Although I do have a OpenSuSE VM I use. It's just straight static (normal?) filesystems.
No LVM or BRTFS. But I like SuSE. We run SLES on a few servers here, those do have LVM and hardware RAID.
 
OP
Tolkem

Tolkem

Well-Known Member
Joined
Jan 6, 2019
Messages
1,473
Reaction score
1,196
Credits
10,706

forester

Active Member
Joined
Mar 5, 2022
Messages
442
Reaction score
240
Credits
3,148
I, personally, found McBride's discission of ZFS vs BTRFS especially enlightening. I like his succinct style of writing, too.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Staff online

Members online


Top