Results 1 to 6 of 6

Thread: Btrfs / Snapper: Amazing Stuff!

  1. #1
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    2,039
    Blog Entries
    1

    Default Btrfs / Snapper: Amazing Stuff!

    I gave btrfs a try when assembling a small desktop with a i3-4130 with 8 GB RAM and a WD20EZRX 2 TB 'Green' HDD. I did a LEAP 42.1 default install and gave it to a Linux newbie. Performance of btrfs was poor and it did not work out at all: https://forums.opensuse.org/showthre...orrupted-BTRFS

    Now I gave btrfs another try on a i3-4130 with 16GB RAM and a SSD 850 EVO 250GB. Installing Tumbleweed on the machine with doubled RAM and SDD instead of HDD resulted in a totally different experience during the last year:




    Current status after running some massive 'zypper dup', deleting all but the last snapshot and running btrfs-balance.service:

    Code:
    linux-udd7:~ # btrfs filesystem usage /|head -6
    Overall:
        Device size:                  40.00GiB
        Device allocated:              7.54GiB
        Device unallocated:           32.46GiB
        Device missing:                  0.00B
        Used:                          6.92GiB
    linux-udd7:~ #
    Given this pleasant experience I decided to further maintain the system as a backup and gradually add the software installed on the primary system using ext4. When done I plan to use btrfs as the primary system and ext4 as a backup.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  2. #2
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,872
    Blog Entries
    14

    Default Re: Btrfs / Snapper: Amazing Stuff!

    I was not an early adapter of btrfs, but since I have my current laptop I've used it without any issues. And I do use the rollback feature a lot: install software to help support others, when done, rollback and I have my own clean TW back.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  3. #3
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    2,039
    Blog Entries
    1

    Default Re: Btrfs / Snapper: Amazing Stuff!

    Quote Originally Posted by Knurpht View Post
    I was not an early adapter of btrfs, but since I have my current laptop I've used it without any issues. And I do use the rollback feature a lot: install software to help support others, when done, rollback and I have my own clean TW back.
    That made me try 'snapper rollback 2'. After rebooting changes made to network configuration were perfectly undone without any hassle whatsoever.

    I will speed up my efforts to fully configure btrfs backup system and switch to using it as my primary system.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  4. #4
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    2,039
    Blog Entries
    1

    Default Don't hurry

    • 2016-08-16: first install on /dev/nvme0n1p2 ext4
    • 2019-11-08: new install on /dev/sdc5 btrfs, manually installed packages installed already on /dev/nvme0n1p2. Kept ext4 as backup system
    • 2020-05-17: replaced ext4 on /dev/nvme0n1p2 by new install using btrfs
    • 2020-10-26: rsynced /dev/sdc5 to /dev/nvme0n1p2 and reinstalled bootloader. /dev/nvme0n1p2 is now primary system and /dev/sdc5 backup.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

  5. #5
    Join Date
    Jun 2008
    Location
    San Diego, Ca, USA
    Posts
    12,868
    Blog Entries
    2

    Default Re: Btrfs / Snapper: Amazing Stuff!

    Next time
    Instead of manually building a duplicate system on BTRFS by hand,

    You can instead
    Clone your original system
    Use the btrfs-convert utility to convert your ext4 to btrfs
    https://btrfs.wiki.kernel.org/index..../btrfs-convert

    Possible benefit of a new install vs cloning and converting is that you'll get the latest recommended disk layout.

    TSU
    Beginner Wiki Quickstart - https://en.opensuse.org/User:Tsu2/Quickstart_Wiki
    Solved a problem recently? Create a wiki page for future personal reference!
    Learn something new?
    Attended a computing event?
    Post and Share!

  6. #6
    Join Date
    Jan 2014
    Location
    Erlangen
    Posts
    2,039
    Blog Entries
    1

    Default Re: Btrfs / Snapper: Amazing Stuff!

    Quote Originally Posted by tsu2 View Post
    Next time
    Instead of manually building a duplicate system on BTRFS by hand,

    You can instead
    Clone your original system
    Use the btrfs-convert utility to convert your ext4 to btrfs
    https://btrfs.wiki.kernel.org/index..../btrfs-convert

    Possible benefit of a new install vs cloning and converting is that you'll get the latest recommended disk layout.

    TSU
    • Main benefit of a new install is the creation of subvolumes used by the system partition: https://doc.opensuse.org/documentati...rfs-subvolumes.
    • Cloning the system to a new install is pretty fast with rsync skipping unchanged files and can by undone by 'snapper rollback' if something went wrong.
    • Using btrfs-convert is a nice option for data partitions such as /home, but I can't see whether it will be useful for system partitions.


    Being a newbie regarding btrfs I preferred the manual install to cloning in 2019-11-08. Doing it again I would go with new install plus cloning.
    AMD Athlon 4850e (2009), openSUSE 13.1, KDE 4, Intel i3-4130 (2014), i7-6700K (2016), i5-8250U (2018), AMD Ryzen 5 3400G (2020), openSUSE Tumbleweed, KDE Plasma 5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •