Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have btrfs on two partitions using btrfs's raid1 mode:


Now I plan to run btrfs device add /dev/sda2 /dev/sdb2, so I'll have four partitions:

/dev/sda2 /dev/sda3
/dev/sdb2 /dev/sdb3

My question: will btrfs know that sda2 and sda3 are the same disk, so it shouldn't mirror data between those two?

(I realize it's a bit silly to have two partitions on each disk, but I already have data on the filesystem and this seems the fastest way to add space.)

The closest thing I could find to an answer is a project idea from the wiki concerned with devices on the same controller: . It almost seems to imply this already happens for devices, but this might just be wishful thinking on my part.

Edit: I forgot to mention, these will all be luks-encrypted, so the actual btrfs devices will be /dev/dm-[0123] or some such. But I'm curious to know the answer with or without the encryption layer.

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.