Welcome to the most active Linux Forum on the web.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 05-19-2014, 07:24 PM   #1
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Rep: Reputation: 30
btrfs filesystem df /mnt/btrfs/ shows bothe data and metdata with raid1 and single.

Ubuntu server
OS drive is 80GB
The BTRFS drives(/dev/sdb, /dev/sdc) are both 1TB.

So I started playing with BTRFS after playing with ZFS to learn a bit but I think I made a mistake. I ran the following to create the file system-

sudo mkfs.btrfs -d raid1 /dev/sdb /dev/sdc

Now when I run-

sudo btrfs filesystem df /mnt/btrfs/

I get the following output-

Data, RAID1: total=16.00GiB, used=15.24GiB
Data, single: total=8.00MiB, used=0.00
System, RAID1: total=8.00MiB, used=16.00KiB
System, single: total=4.00MiB, used=0.00
Metadata, RAID1: total=1.00GiB, used=17.14MiB
Metadata, single: total=8.00MiB, used=0.00

Reading this (Newb that I am) it appears to have two devices one in raid 1 and one not.

Am I reading this incorrectly or with out the knowledge to properly interpret?

Any knowledge kicked my way would be appreciated.
Old 05-21-2014, 02:59 PM   #2
Registered: Apr 2002
Location: Huntsville, Alabama
Distribution: Ubuntu 9.04
Posts: 445

Original Poster
Rep: Reputation: 30
Looks like this is normal. Thanks to any one who may have pondered this.
Old 07-17-2014, 11:09 AM   #3
LQ Newbie
Registered: Dec 2003
Posts: 5

Rep: Reputation: 0
Using the -m raid1 flag

Hi gonus,

I noticed that you didn't use the
-m raid1
parameter when you created your RAID1 array here. I think that is why you are getting the "single" line; your data is set up as RAID1 but not your metadata. Not sure if you can do this retroactively or not.
Old 07-17-2014, 02:48 PM   #4
Registered: Mar 2008
Posts: 22,029

Rep: Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632Reputation: 3632
I may be wrong but to find free space on a btrfs is a different command.

Yes, it should show a goofy number.
"$ btrfs fi df /mountpoint

will probably report available space in both metadata and data. The problem here is that one particular 256MiB or 1GiB block is full, and wants to allocate another whole block. The easy fix is to run, as root: # btrfs fi balance /mountpoint -dusage=5 "

Reading further gives the question, "Why is free space so complicated? "

Last edited by jefro; 07-17-2014 at 02:50 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Using The btrfs Filesystem (With RAID1) With Ubuntu 12.10 On A Hetzner Server LXer Syndicated Linux News 0 01-06-2013 09:03 AM
LXer: Rollback To A Working State With btrfs + apt-btrfs-snapshot On Ubuntu 12.10 LXer Syndicated Linux News 0 11-25-2012 10:42 AM
ext4 vs btrfs, and with btrfs do I still need to use LVM? blue_k Linux - Software 4 08-17-2012 11:31 PM
[SOLVED] Btrfs as a filesystem type option during install? pupok Slackware - Installation 4 06-10-2012 06:15 PM
[SOLVED] Question about BtrFS filesystem compression. silvyus_06 Linux - Newbie 2 02-09-2011 12:03 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 02:48 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration