Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I am setting up a system with two 3TB hard drives as storage backing. As it's a desktop station, I thougth about the following disk setup:

sda
+ /boot with 500MB
+ btrfs for the remaining GBytes
sdb
+ btrfs for all the 3000GB

I then thought about using the single-mode for data on / and create a subvolume for /home (and potentially others) using raid1 as data mode. Is that possible with current (kernel 3.7.X) btrfs? Does anyone have sources for that, I was unable to find anything.

UPDATE: I made a small test setup consisting of two plain files hooked in as loopback devices for playing around. On those files, I created a plain btrfs. Then I did the following:

btrfs subvolume create test
dd if=/dev/urandom of=foo bs=1024 count=1  # use random data to prevent dedup
dd if=/dev/urandom of=test/bar bs=1024 count=1  # use random data to prevent dedup
btrfs balance start -dconvert=raid1 test
btrfs balance start -dconvert=single .
btrfs filesystem df .

That showed the filesystem having all its usage in single mode, instead of partial RAID1 and partial single mode… what did I do wrong?

share|improve this question

2 Answers 2

up vote 3 down vote accepted

The btrfs balance command applies to filesystems as shown by the help even thought the "filesystem" parameter is optional:

# btrfs balance start --help
usage: btrfs [filesystem] balance start [options] <path>

Until there is a "btrfs subvolume balance" command then I suspect this feature doesn't exist.

(Above based on Btrfs Btrfs v0.19)

share|improve this answer

I am just moving to btrfs and I have exactly the same request. The only solution I came up, is the obvious one: just create two separate/independent btrfs filesystemes (i.e. top-level subvolumes), one for each raid-level.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.