Question

Getting started with btrfs

  • Posted November 30, 2013

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?

Subscribe
Share

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


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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: https://meta.discourse.org/t/rough-notes-getting-btrfs-working-on-digital-ocean/20246 http://www.funtoo.org/BTRFS_Fun

Unfortunately we do not support partitioning yet.