Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

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 [tag:ZFS].

-1
votes
0answers
8 views

Backup Solution for BTRFS filesystem to another machine [on hold]

So I have read a lot of articles here and have tried multiple solutions for this, so here is the breakdown. Our old Netowkr Administrator partitioned several of our Linux machines with btrfs. I have ...
1
vote
0answers
41 views

Why does btrfs filesystem df return larger number than du?

I have a Linux machine (Ubuntu with Btrfs) which runs Docker and 4 cointainers. Docker images # docker images REPOSITORY TAG IMAGE ID CREATED ...
2
votes
1answer
41 views

Why doesn't btrfs send | btrfs receive preserve the “no dump” file attribute?

Btrfs supports the "no dump" file attribute and it is preserved when taking snapshots. But after sending such a snapshot to another Btrfs using btrfs send and btrfs receive, all values of the "no ...
7
votes
1answer
507 views

Cannot shrink btrfs filesystem although there is still data and metadata space left : ERROR: unable to resize '/home': No space left on device

I cannot shrink btrfs filesystem although there is still data and metadata space left : $ sudo btrfs filesystem resize -11G /home;echo $? Resize '/home' of '-11G' ERROR: unable to resize '/home': No ...
0
votes
0answers
21 views

Very slow copy from BTRFS to OCFS2 with “cp -a”

I am backing up a large file system (~40TB) using cp -a -v command. The source filesystem is BTRFS and the target is OCFS2. The backup has been running for 3 days now and it slowed down considerably ...
1
vote
1answer
62 views

BTRFS unmountable after cold reboot (total_rw_bytes is twice too big)

One of my users in research environment invoked out-of-memory on a server which mounts a 52TB btrfs partition. I had to power cycle the server. After the reboot my btrfs partition cannot be mounted in ...
0
votes
0answers
99 views

Fix Crashed/Degraded RAID when Data is intact but Disk Dropped from Array (btrfs/Synology)

The Volume on my Synology Expansion crashed and can't recover on its own. Drive is probably OK. It happen after cleaning the device from dust. Until that time Volume was also OK so I believe it ...
2
votes
0answers
66 views

How to cancel btrfs defragmentation

How can I cancel a btrfs defragmentation? With btrfs fi balance / you can use btrfs balance cancel /. I can find no option for defragmentation. How can I safely cancel?
0
votes
1answer
94 views

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 ...
1
vote
1answer
186 views

NFS export an overlay of ext4 and btrfs

I have 2 data sources. One is btrfs (raid) and one is a simple ext4 partition. Those should be transparently displayed as one. This is a simple read only example, but the lower/upper/workdir version ...
1
vote
1answer
42 views

btrfs recover: reliable or last-straw?

The chunk tree of a btrfs filesystem corrupted and I could not recreate it after hour-long reconstruction. As a last resort (besides restoring from backup) I could use btrfs restore -S -x -m -v to get ...
2
votes
1answer
163 views

Add btrfs devices to raid1 array, increasing total size

I have a btrfs array comprising of two 2TB disks in raid 1. I am running out of space, and I want to add two 3TB disks that I have lying around. The final setup will be 2x2TB+2x3TB drives. One drive ...
2
votes
1answer
61 views

BTRFS, out of space, but there is plenty of space

I am facing No space left on BTRFS. What I already tried myself: After remount RW: btrfs filesystem resize max /mnt/hdd I ran balance (for weeks ;-) ) with different parameters btrfs balance start /...
1
vote
1answer
217 views

How to reduce size of mounted lvm volume with btrfs file system

My State: $: lvs LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert home myvg -wi-ao---- 100.00g $: btrfs filesystem resize -20g /home $: lvreduce -L-20G /...
3
votes
1answer
87 views

Btrfs Raid10 Two drives have failed. What are my options?

Here's my story: I noticed read errors on one of my four RAID10 Btrfs drives (/dev/sde). This occurred when I was attempting a backup using btrfs send/receive. I bought a new hard drive of the same ...
10
votes
1answer
766 views

Increase disk detection timeout at boot with Linux/Systemd

I have a machine with a lot of disks, and an extra SAS controller in HBA mode. This seems to cause Linux to think for at least 8-10 seconds once in initramfs before the disks actually appear. The ...
0
votes
1answer
339 views

Btrfs check repair give device busy. How to see what it keeps busy?

I am in a chicken-egg situation for my secondary harddrive (non boot): My BTRFS mount has gone readonly because no space left. btrfs filesystem resize only works on mounted volumes. I needed to ...
0
votes
0answers
33 views

btrfs-convert out of space, unable to create initial ctree

I'm trying to convert my root EXT4 partition to btrfs. I booted from a live CD image and ran btrfs-convert, but it claims there is not enough space on the drive. [root@localhost-live ~]# btrfs-...
1
vote
2answers
338 views

How do I generate a regex to restore a specific folder for “btrfs restore”?

I am trying to recover files after a crash of a btrfs filesystem using: btrfs restore --path-regex 'regex' -sv -D /dev/sdXX /mnt/destination for example, to retrieve all files in /snapshots/@_2018-...
1
vote
0answers
49 views

Btrfs minimum free space for raid 5 convert

I have a btrfs array of 7 drives that I just finished building. It's currently in "single" mode and I'd like to convert it to raid5 (I understand the risks and the write hole issue). Per the ...
0
votes
0answers
144 views

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 ...
0
votes
1answer
413 views

Btrfs with different sized drives and parity

I want to upgrade my NAS to 8x 4TB + 4x 2TB drives and wonder if Btrfs can deal with drives of different sizes and still provide reduncancy. If one drive fails I do not want to loose my data! So does ...
0
votes
3answers
125 views

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: # <file system> <mount point> <type> <options> <dump> <pass&...
0
votes
1answer
575 views

Move LXD container to other storage

I have an issue with my current storage.img file (btrfs). I had 2TB data inside a container and so the storage.img got 2TB large. After this I deleted everything, leaving me with 100GB of real data. ...
0
votes
0answers
842 views

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 ...
1
vote
1answer
2k views

Possible to see btrfs defrag progress?

If I do btrfs fi defrag -rv /home then I get a long list of files which needs to be defragmented. It seams as if it doesn't actually do anything. Is it possible to see how far in the defrag ...
1
vote
0answers
270 views

Is it possible to partially recover files from a btrfs raid-0 filesystem with a missing disk?

I've got a bit of a quite terrible situation on my hands and I'm just looking for a bit of insight before calling this a lost cause. To put things into context, I'll just give you my partitioning ...
2
votes
1answer
674 views

BTRFS single data FS still striped?

UPDATE So after a long time of research in the official documentation, I found out that btrfs allocates space in chunks each 1Gb and when using single mode, these chunks are allocated on the disk ...
0
votes
0answers
316 views

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 ...
0
votes
1answer
91 views

Is it safe to continue working during btrfs balance operation?

I have a rocks cluster system with a NAS using a btrfs file system in a RAID 10 configuration. Recently we have been facing "no space left on device" errors that I have finally tracked down to ...
0
votes
0answers
160 views

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 ...
2
votes
1answer
413 views

How to shrink btrfs image file used by LXD storage?

I have btrfs image file set as backend for LXD (2.18) but I would like to shrink it's size. What I did: mounted image to loop device losetup /dev/loop1 /home/btrfs.img mounted device to /mnt dir ...
2
votes
0answers
300 views

btrfs: subvolume/snapshot tree

How do I list all subvolumes / snapshots on a btrfs filesystem in parent / child hierarchy? I want something like the tree command for directories/files, but for parent/child subvolumes with ...
0
votes
1answer
690 views

Does BTRFS self-healing work only by software RAID?

Afaik. there are 3 types of RAID: hardware - e.g. an expensive PCIE RAID card / or rarely onboard RAID which have a dedicated CPU, probably with write cache and BBU software - e.g. ZFS, MD, BTRFS ...
0
votes
1answer
813 views

Does ZFS without RAID make any sense?

Is it possible to use ZFS without RAID? Does it have any advantage to do so compared to using BTRFS instead?
1
vote
1answer
1k views

Postgresql 9.6 over BTRFS. Good or bad idea?

I'm just preparing a VM machine (running onver Proxmox) to run a postgresql 9.6 over a Ubuntu 16.04 LTS. This postgres would be used to handle Jira/FisheEye/Confluence databases for a small company. ...
5
votes
4answers
3k views

Linux KVM Client filesystem (BTRFS?)

in our company we have a lot of kvm clients on multiple server, most of the clients are running ubuntu 16.04 as well as their host systems. The filesystem of choice became EXT4, for clients and hosts....
4
votes
0answers
759 views

Docker Community Edition for production environment?

I was planning to use docker in a production environment. Now I see Docker Inc. differentiates strongly free and paid versions with the Community and Enterprise Editions. This sentence about CE is ...
0
votes
0answers
394 views

System hang when mounting btrfs

I have a btrfs filesystem that includes 3 disks in raid0: # btrfs fi show /dev/sdb1 Label: 'disco_backup' uuid: 10726648-202c-4792-82d4-5d0911cce762 Total devices 3 FS bytes used 8.05TiB ...
4
votes
1answer
909 views

ZFS on single virtual disk

How do companies manage large file servers (e.g. 17 TB) and their related backups on a very tight-budget? Is it ok to use ZFS (or BTRFS) on a single virtual disk for its copy-on-write nature to ...
0
votes
0answers
100 views

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 / ...
1
vote
1answer
360 views

Should “System” chunks be included in a btrfs RAID1 balance?

The btrfs wiki RAID1 conversion example gives the following command: btrfs balance start -dconvert=raid1 -mconvert=raid1 /mnt There is also the option -s which `man btrfs-balance page defines as: ...
4
votes
0answers
465 views

Any possibility to use ZFS for Samba4 AD DC share on Ubuntu 16.04?

For a few (~ 5) PCs running Windows 8.1 I have to setup a domain controller using Samba4 on Ubuntu 16.04 Server. Additionally the DC should provide a few shared folders with user-specific access and ...
0
votes
1answer
2k views

Replacing BTRFS snapshots with XFS+LVM

I working on replacing an unstable btrfs snapshot based backup system. One of the option was to go ZFS but it's not natively in the kernel. XFS was reliable for me since 10 years but as my research ...
4
votes
1answer
782 views

BTRFS-RAID and booting from EFI system partition

UEFI requires booting from a ESP which is most of the time formatted as vFAT. If I recall correctly BTRFS could have sub-volumes formatted as ext3/ext4 like the Logical Volume Manager (LVM). However, ...
0
votes
1answer
429 views

Install BTRFS Rootfs inside LVM Volume inside MDADM RAID

is it a good idea in terms of performance and stability? I have 4 disks whit the same size where i want to install the rootfs(opensuse) using btrfs, but i need swap and virtualmachine storage.. ...
1
vote
2answers
888 views

KVM/Libvirt/Btrfs Filesystem speed improvements

i wanted to install a windows terminal server on a kvm hypervisor. On the host i am using btrfs, i have read that there are some speed problems if i use btrfs whit libvirt. I wanted to use the btrfs ...
0
votes
2answers
622 views

Grub fails to boot my barebone Arch BTRFS setup

I'm not sure what I'm doing wrong. I basically used the latest arch linux live disk in a VM (Linux KVM), booted the latest arch linux live disk in a VM (Linux KVM on Arch) made a single partition ...
-1
votes
1answer
679 views

Best software raid /filesystem for samba on linux [closed]

I am running ubuntu 16.04 server and need to store files for a samba file server on a software raid. There are 4 500GB SSDs and stability / redundance / iops are of utmost importance. I tried running ...
2
votes
1answer
779 views

Mount command hanging after attaching EBS volumes on AWS

I'm creating four volumes from four EBS snapshots on AWS. The four volumes make up one BTRFS multi-device drive. The drives have no partition tables, i.e I've ran mkfs.btrfs /dev/xvdf /dev/xvdg etc. ...