How to create and use BTRFS snapshots - Tutorial

Discussion in 'all things UNIX' started by Mrkvonic, Feb 25, 2012.

Thread Status:
Not open for further replies.
  1. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,277
  2. Mr. Y

    Mr. Y Registered Member

    Joined:
    Jan 11, 2006
    Posts:
    257
    I'm not trying to be a smart ass- Butt why would I want to use a file system that is not considered stable?
     
    Last edited: Feb 27, 2012
  3. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,417
    There are people who like to test new, unstable stuff. The rest of us who don't eventually benefit from their experience.
     
  4. linuxforall

    linuxforall Registered Member

    Joined:
    Feb 6, 2010
    Posts:
    2,137

    Exactly and thats why Linux has myriads of FS whereas the other system has but one ancient one which recently got updated. :D
     
  5. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,277
    Mr.Y, you should not. But if you want to know how to snapshot, then this tutorial might be handy. And when the filesystem does eventually become stable, then you will have killed three birds with one mortar round.
    Mrk
     
  6. vasa1

    vasa1 Registered Member

    Joined:
    May 1, 2010
    Posts:
    4,417
  7. Mr. Y

    Mr. Y Registered Member

    Joined:
    Jan 11, 2006
    Posts:
    257
  8. Mr. Y

    Mr. Y Registered Member

    Joined:
    Jan 11, 2006
    Posts:
    257
    Would I be able to use Ubuntu and install updates with this file system? What are the limitations?
     
  9. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,277
    In a nutshell, you may suffer from:

    Performance
    Inexplicable crashes
    Data loss

    Cheers,
    Mrk
     
  10. Mr. Y

    Mr. Y Registered Member

    Joined:
    Jan 11, 2006
    Posts:
    257
    I won't be using it after all.....!
     
  11. Mrkvonic

    Mrkvonic Linux Systems Expert

    Joined:
    May 9, 2005
    Posts:
    10,277
    Snapper - BTRFS snapshot management frontend

    I've written a short tutorial explaining how to use Snapper in openSUSE to manage and restore BTRFS snapshots. This article should complement the more in-depth BTRFS guide from earlier.

    http://www.dedoimedo.com/computers/snapper.html


    Cheers,
    Mrk
     
  12. Baserk

    Baserk Registered Member

    Joined:
    Apr 14, 2008
    Posts:
    1,321
    Location:
    AmstelodamUM
    'Oracle Unbreakable Enterprise Kernel Release 2' now also offers btrfs including, like Suse, a btrfs check/repair tool.

    "An updated version of btrfsfsck, a tool to check and repair a Btrfs file system, is now included in the btrfs-progs package. This new btrfsck now supports a --repair option that allows fixing errors in the extent allocation tree and block group accounting. btrfsck also provides the option --init-csum-tree which replaces the check-sum root with an empty one. This will clear out the CRCs but allows the file-system to be mounted with the mount option nodatasum." link
     
  13. Baserk

    Baserk Registered Member

    Joined:
    Apr 14, 2008
    Posts:
    1,321
    Location:
    AmstelodamUM
    A critique on the decision by Suse and Oracle to implement btrfs, in an article in Heise Online: 'Kernel Comment: Btrfs too fast?'

    "...Speaking of corrupted filesystems: Btrfs has at least been field tested here and there – which can't be said for the improved test and repair tool for Btrfs drives that everyone has been anticipating for so many months. The "improved" Btrfsck you now provide hasn't even become available on its own yet. Your code appears to be based on code that can be found in a Git branch of the Btrfs tools' source code – a branch that carries the alarming name "dangerdonteveruse". ..." link

    Some info on Thorsten Leemhuis link
     
Thread Status:
Not open for further replies.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.