Getting started with btrfs

Posted November 30, 2013 6.3k views
I would like to try using btrfs so that I can easily snapshot my application data before rolling out new versions. I don't need my whole filesystem to be btrfs (as nice as that might be), one mount point (say, /data) would be fine. Are there any guides for how to repartition disks in the context of Digital Ocean?
1 comment
  • u can convert fs from recovery mode.

    0 ur root fs should be ext4

    1. install btrfs-tools
    2. reboot to recovery mode
    3. mount ur disk and cp btrfs-convert to /
    4. umount disk
    5. btrfs-convert
    6. mount disk & chroot & edit fstab
    7. boot into default kernel

    now u have btrfs as root fs

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
2 answers
Unfortunately we do not support partitioning yet.

One solution would be to use btrfs with a loop device. Your data will be stored in a btrfs image file.

Note: I recommend you use a recent kernel version (4+). I use BTRFS on my personal system and things are mostly ok, some performance issues when databases/indexing happens. I’ve read that Facebook is preparing to roll it in production systems. The future is bright :)

Some notes: