I began wondering how openSUSE used BTRFS. I used the latest Tumbleweed, which is a rolling release. I had looked at openSUSE a couple years ago and how it is configured now has changed significantly. The mixture of EXT4 and BTRFS has changed since the 2018 release.
Here is what the freshly installed configuration looks like now:
In Kubuntu (Ubuntu) one can access the <ROOT_FS> by doing this:
mount /dev/disk/by-uuid/someuuid /mnt
and vdir /mnt shows
@
@home
If you make a snapshot of @ you have an archive of /. Snapshot @home and you have an archive of /home. Since /home, i.e., @home, is a subvolume it does not get stored in a @ snapshot, so it has to be snapshotted on its own. That's why I make snapshots of my system as a dated pair.
Since EVERY line in the openSUSE listing is a subvolume, a manual snapshot of / will not include them, just like a snapshot of @ will not include @home.
Snapper is the default snapshot tool in Tumbleweed and the distro also includes the snapper UI, yast2-snapper. The snapper root account was automatically created during the installation. but the home account was not. I've used snapper on Kubuntu and I am fairly familiar with it on this platform. How it behaves on openSUSE is still a mystery to me. Even though only the root account, /, is set up in snapper, when I make changes to /home/jerry they appear in the / snapshot. However, it appears that after I create a home account
snapper -c create-config home /home
changes to my home account no longer appear in the root snapshots. So, it appears that changes in ID's 256 through 266 appear in a root snapshot if snapper configurations for them are not added to snapper.
Snapshots are stored in subvolumes with ID's equal to 267 or higher. As each new snapshot is added a new subvolume is generated using the next in sequence ID number. Snapshots grow with age and accumulating automatic snapshots can quickly overwhelm your storage capacity. Snapper allows limiting how many are created and deleting older ones.
IMO, @ and @home snapshots in Kubuntu are a lot easier to maintain, even manually.
More later.
Here is what the freshly installed configuration looks like now:
Code:
jerry@localhost:~> [B]sudo btrfs subvolume list /[/B] ID 256 gen 32 top level 5 path @ ID 258 gen 487 top level 256 path @/var ID 259 gen 78 top level 256 path @/usr/local ID 260 gen 487 top level 256 path @/tmp ID 261 gen 97 top level 256 path @/srv ID 262 gen 447 top level 256 path @/root ID 263 gen 95 top level 256 path @/opt ID 264 gen 487 top level 256 path @/home ID 265 gen 26 top level 256 path @/boot/grub2/x86_64-efi ID 266 gen 82 top level 256 path @/boot/grub2/i386-pc ID 267 gen 452 top level 256 path @/.snapshots ID 268 gen 487 top level 267 path @/.snapshots/1/snapshot ID 274 gen 81 top level 267 path @/.snapshots/2/snapshot ID 285 gen 407 top level 267 path @/.snapshots/13/snapshot ID 286 gen 408 top level 267 path @/.snapshots/14/snapshot ID 287 gen 437 top level 264 path @/home/.snapshots ID 288 gen 427 top level 287 path @/home/.snapshots/1/snapshot ID 289 gen 436 top level 267 path @/.snapshots/15/snapshot ID 290 gen 446 top level 267 path @/.snapshots/16/snapshot
mount /dev/disk/by-uuid/someuuid /mnt
and vdir /mnt shows
@
@home
If you make a snapshot of @ you have an archive of /. Snapshot @home and you have an archive of /home. Since /home, i.e., @home, is a subvolume it does not get stored in a @ snapshot, so it has to be snapshotted on its own. That's why I make snapshots of my system as a dated pair.
Since EVERY line in the openSUSE listing is a subvolume, a manual snapshot of / will not include them, just like a snapshot of @ will not include @home.
Snapper is the default snapshot tool in Tumbleweed and the distro also includes the snapper UI, yast2-snapper. The snapper root account was automatically created during the installation. but the home account was not. I've used snapper on Kubuntu and I am fairly familiar with it on this platform. How it behaves on openSUSE is still a mystery to me. Even though only the root account, /, is set up in snapper, when I make changes to /home/jerry they appear in the / snapshot. However, it appears that after I create a home account
snapper -c create-config home /home
changes to my home account no longer appear in the root snapshots. So, it appears that changes in ID's 256 through 266 appear in a root snapshot if snapper configurations for them are not added to snapper.
Snapshots are stored in subvolumes with ID's equal to 267 or higher. As each new snapshot is added a new subvolume is generated using the next in sequence ID number. Snapshots grow with age and accumulating automatic snapshots can quickly overwhelm your storage capacity. Snapper allows limiting how many are created and deleting older ones.
IMO, @ and @home snapshots in Kubuntu are a lot easier to maintain, even manually.
More later.
Comment