Questions tagged [btrfs]

B-tree file system is a copy-on-write file system for Linux

From the official project site:

Btrfs is a new copy on write (CoW) filesystem for Linux aimed at implementing advanced features while focusing on fault tolerance, repair and easy administration. Jointly developed at Oracle, Red Hat, Fujitsu, Intel, SUSE, STRATO and many others, Btrfs is licensed under the GPL and open for contribution from anyone.

The main Btrfs features available at the moment (as of 23 March 2014) include:

  • Extent based file storage
  • 2^64 byte == 16 EiB maximum file size
  • Space-efficient packing of small files
  • Space-efficient indexed directories
  • Dynamic inode allocation
  • Writable snapshots, read-only snapshots
  • Subvolumes (separate internal filesystem roots)
  • Checksums on data and metadata (crc32c)
  • Compression (zlib and LZO)
  • Integrated multiple device support
  • File Striping, File Mirroring, File Striping+Mirroring, Striping with Single and Dual Parity implementations
  • SSD (Flash storage) awareness (TRIM/Discard for reporting free blocks for reuse) and optimizations (e.g. avoiding unnecessary seek optimizations, sending writes in clusters, even if they are from unrelated files. This results in larger write operations and faster write throughput)
  • Efficient Incremental Backup
  • Background scrub process for finding and fixing errors on files with redundant copies
  • Online filesystem defragmentation
  • Offline filesystem check
  • Conversion of existing ext3/4 file systems
  • Seed devices. Create a (readonly) filesystem that acts as a template to seed other Btrfs filesystems. The original filesystem and devices are included as a readonly starting point for the new filesystem. Using copy on write, all modifications are stored on different devices; the original is unchanged.
  • Subvolume-aware quota support
  • Send/receive of subvolume changes
  • Efficient incremental filesystem mirroring
  • Batch, or out-of-band deduplication (happens after writes, not during)
87 questions
0
votes
1 answer

How can I get 3 uncorrectable errors on a BTRFS with 3 disks?

I did this: /sbin/btrfs scrub start -B /mnt/ospool ospool is a pool with 3 sata drives. $ sudo btrfs filesystem show /mnt/ospool Label: ospool uuid: ef62a9ec-887f-4a70-9c89-cf4ce29dfeb1 Total devices 3 FS bytes used 125.16GiB devid 1…
philcolbourn
  • 4,042
  • 3
  • 28
  • 33
0
votes
1 answer

How to fix btrfs root inode errors

Running btrfsck, or more officially, btrfs check --repair gives this output stating that there are root inode errors. The repair command does not fix the issue and reruns will display the same output. The system is fully mountable and operational,…
RayfenWindspear
  • 6,116
  • 1
  • 30
  • 42
0
votes
0 answers

BTRFS & F2FS userspace utilites cross compilation

Is there any weblink/document which describes the steps to cross-compile btrfs & F2fs user space utilities ? Any steps ? special tuning suggestion for arm based board.(AM335x) ?
ART
  • 1,509
  • 3
  • 29
  • 47
0
votes
1 answer

Is EXT4 outdated for production?

I just downloaded OpenSuse 13.2, and now, it gives two different file system option than the ext4 , but i see people debating about problems btrfs and xfs So, if ext4 is outdated, then which one is the best for production? (to serve static files…
Abdelouahab
  • 7,331
  • 11
  • 52
  • 82
0
votes
1 answer

What would be pros and cons of using Docker Vs Vanilla LXC?

I have mostly been an LXC guy running Vanilla LXC with BTRFS,and was wondering what would be the advantages & disadvantages of replacing this with Docker (I know Docker has features like Versioning,Sharing containers e.t.c) ? Is it a matter of ease…
hmmm
  • 93
  • 2
  • 9
0
votes
1 answer

Docker: Layering on top of shared volume

I want to use a shared volume in a container but the updates to data in the shared volume cannot go to the underlying directory on the host and these updates should be discarded when the container goes away. For example: Create shared directory…
RobertG
  • 1
  • 2
-1
votes
1 answer

btrfs-transacti kills my VMWare guests, because it makes I/O unresponsive

Most of the time when BTRFS maintenance starts with process btrfs-transacti, my VMWare guest cannot access disk and restarts. Is there anything I can do? I tried to give to guest machine high io priority with ionice, but that does not help.
Jan
  • 115
  • 5
-1
votes
1 answer

How to mount btrfs subvolume?

findmnt gives me this entry: TARGET SOURCE FSTYPE OPTIONS |-/apps /dev/md127[/.apps] btrfs rw,noatime,nodiratime,nospace_cache,subvolid=259,subvol=/.apps The .apps folder is a subvol. I have created a subvolume on the same…
ScubaInstructor
  • 493
  • 1
  • 5
  • 13
-1
votes
1 answer

Trying to install manjaro and have a problem with allocating of the disk free space

I'm trying to install manjaro on laptop with oem windows 10 on board, I do it using manjaro architect cli installer. I've created LVM, parted logical volumes, made luks on LVM, formatted partitions to btrfs and mounted it. When I moved next and…
-1
votes
1 answer

Btrfs subvolume for 2 distros

I use btrfs as my filesystem from one year. I have a question. Can I use one partition with two root subvolume of two different distros? For example, /dev/sda2 contain subvolume root arch (@), if I renonym @ in @arch, can I create in sda2 new…
-1
votes
1 answer

How can I move /var/log to a btrfs subvolume? (ubuntu 15.04 desktop)

I'm trying to move /var/log/. to its own subvolume. I've tried a number of things, but the /etc/fstab entry never does what I'd hope. My examples here use /spam because I don't want to trash the log files while I work this out. My questions are…
Erik Bennett
  • 1,049
  • 6
  • 15
-2
votes
1 answer

How to recover a resized btrfs lvm partition

I tried shrinking a btrfs lvm partition to make room for another new partition. I've used fdisk. I deleted and recreated the btrfs partition. To my despair, the btrfs partition is now typeless. I tried $ sudo btrfs restore /dev/sda6 /mnt/sda6/ No…
Necktwi
  • 2,483
  • 7
  • 39
  • 62
1 2 3 4 5
6