Questions tagged [btrfs]

btrfs is a B-tree based, copy-on-write filesystem for Linux. It's main features include snapshots, checksumming of data and filesystem level RAID support. It's similar to ZFS.

Btrfs tag should be used with all questions referring to usage of features specific to this filesystem:

  • defragmentation
  • resizing and addition and removal of block devices
  • it's RAID implementation
  • snapshot creation and usage

Also see:
for a similar copy-on-write filesystem.
http://btrfs.wiki.kernel.org for detailed information about the filesystem

232 questions
1
vote
0 answers

Convert ext4/xfs file system to btrfs with minimal application impact

I'm trying to find a way to convert the file system of app servers (some of which run ext4 and some xfs) to btrfs. Preferably, I'd like to do this without needing to turn off the services. So far I've looked into btrs-convert but this requires the…
numX412
  • 11
  • 1
1
vote
1 answer

BTRFS slow - maybe partially "full"?

My BTRFS file system has plenty of space free, but the "SINGLE" section seems to be almost full. Please see the output of btrfs fi usage here: btrfs fi usage / Overall: Device size: 37.95TiB Device allocated: 15.85TiB …
Andi
  • 11
  • 2
1
vote
1 answer

Can I remove a BTRFS device online if that device is the one that is mounted?

As described here, BTRFS devices can be removed from an array using: btrfs device delete /dev/sdc /mnt I have a BTRFS RAID 1 array made up of 3 devices. One of devices is failing and I want to remove it from the array (I have plenty of space so…
dippynark
  • 233
  • 3
  • 13
1
vote
0 answers

btrfs compress existing data with snapshots

I'm runninga a btrfs raid1 on 5 8 TB disks, where primarily urbackup stores backups to. Urbackup uses snapshots extensively. compsize produces the following output: Processed 106161732 files, 57335496 regular extents (190449694 refs), 63766108…
Christian
  • 111
  • 2
1
vote
2 answers

Is there a good way to shrink disk usage of sparse file containing luks-encrypted btrfs file system image?

I've created a sparse file filesystem.img, formatted in with cryptsetup luksFormat, created a btrfs filesystem on it. The image file disk usage expanding fine while adding files to the btrfs filesystem. However deleting a file on it of course do not…
Nick
  • 126
  • 5
1
vote
0 answers

Linux MD RAID with btrfs stuck and consume 100 % CPU

The issue During last several weeks, I am experiencing annoying issue on my physical server with Linux software RAID 6 (md, mdadm) with btrfs file system on it. Once in several days (irregularly, as I noticed), the md1_raid6 process starts to…
1
vote
0 answers

btrfs bad tree block - cant mount filesystem

I'm hoping someone can help me, trying to recover a btrfs pool, that lost 1st drive. I tried to mount the 2nd drive and I've been having fs errors. I got the 1st drive readable again, but it appears that it lost the filesystem, but it has not been…
Kareem
  • 151
  • 4
0
votes
1 answer

Listed btrfs mount options are not expected how I did

In my /etc/fstab: UUID=... / btrfs subvol=@,defaults,relatime,space_cache,autodefrag 0 1 UUID=... /media/fs.cave btrfs subvolid=5,defaults,relatime,space_cache,autodefrag 0 0 UUID=... /var/lib/libvirt/images btrfs…
Hamatoma
  • 1
  • 1
  • 3
0
votes
1 answer

How to recover unrecoverable errors in a btrfs RAID1 volume?

I have a 10TB BTRFS volume made of 7 whole-disk volumes (no partitions) in a JBOD server with each volume being a physical drive mounted as single-drive RAID0*. The BTRFS volume with the 7 drives was created as RAID1 data, metadata and system,…
0
votes
0 answers

zombie file under linux

When trying to unininstall cups from a linux machine some kind of "schrödingers file" was left behind: ls shows it, but otherwise its not there. System is ubuntu 17.10 / kernel 4.13, filesystem is BTRFS raid1 on 2 devices. Here's a shell snippet…
kiney
  • 1
  • 1
0
votes
3 answers

Why can't systemd find service files within a BTRFS subvolume within a BTRFS root file system?

I've installed Ubuntu 16.04 LTS Server using BTRFS and got the following setup according /etc/fstab: # # / was on /dev/sda1 during installation UUID=0841ef72-e9d4-45ca-af22-a403783859c6…
0
votes
0 answers

Synology: How to restore data from an accidentally deleted volumeX (BTRFS)?

The Synology in question has a RAID6 configured via mdadm which features a BTRFS filesystem mounted to /volume1. This path was mounted into a Debian chroot. The unmount was configured in the chroot stop script but for some obscure reason did not…
TylerDurden
  • 191
  • 1
  • 3
  • 14
0
votes
0 answers

Are SSD/HDD hybrid drives a good choice as drives in either BRTFS or md raid?

I'm currently planning to revamp a "computer". Using the term "computer" because I'm not sure what it's role exactly is... It runs Ubuntu (17.10 / artful), it's being used as multi-seat desktop for two users, it stores about 1.5 TB of data…
0
votes
0 answers

Why is mounted nas showing 0 inodes on users partition?

I am using a NetGear ReadyNAS machine as a NAS for our server. The server is a linux CentOS 6.6. The server is run using Rocks cluster, with all our users' home directories located on the NAS. My understanding is that the home directories are…
Abs
  • 33
  • 4
0
votes
1 answer

Btrfs is *not* using multiple devices

I've added a device to my existing Btrfs file system recently, but it doesn't report the new device as having even allocated any space for the data. Take a look: Before I started: # btrfs fi show / Label: 'LINUX' uuid:…
Isabell Cowan
  • 123
  • 1
  • 9