Talk:Using Btrfs with Multiple Devices

From btrfs Wiki
(Difference between revisions)
Jump to: navigation, search
(?'See the Gotchas page for some current issues when using btrfs with multiple volumes of differing sizes in a RAID1 style setup.': I suggest to remove the statement.)
 
(2 intermediate revisions by one user not shown)
Line 20: Line 20:
 
Do I understand this correctly? This should be described in the documentation.
 
Do I understand this correctly? This should be described in the documentation.
 
[[User:Bobpaul|Bobpaul]] 17:46, 24 April 2013 (UTC)
 
[[User:Bobpaul|Bobpaul]] 17:46, 24 April 2013 (UTC)
 +
 +
== ?'See the Gotchas page for some current issues when using btrfs with multiple volumes of differing sizes in a RAID1 style setup.' ==
 +
 +
It is not, or no longer, clear as to whch gotcha(s) are being referred to.
 +
 +
Could this statement please be re-vetted, and, if possible, the link targeted more precisely?
 +
 +
: The statement was introduced with version [https://btrfs.wiki.kernel.org/index.php?title=Using_Btrfs_with_Multiple_Devices&oldid=1852 1852] and should refer to a resolved problem accordingly to [https://btrfs.wiki.kernel.org/index.php?title=Gotchas&diff=12821&oldid=12811 this] change. I suggest to remove this statement. --[[User:Lbernd|Lbernd]] ([[User talk:Lbernd|talk]]) 16:09, 24 May 2021 (UTC)

Latest revision as of 16:09, 24 May 2021

Contents

[edit] Encrytion over multiple devices

I'm curious about using btrfs with encryption over multiple devices. What is the best way?

If i have a btrfs volume on an encrypted partition (using dm-crypt/luks), and i want to expand it to another physical drive, would i want to setup an encrypted volume on the second drive as well, or would the first volume's encryption apply to the 2.

In other words should i run "btrfs-vol -a /dev/mapper/encrypted-vol2 /media/foo" or would "btrfs-vol -a /dev/sdc1 /media/foo" work just as well to maintain the encryption applied to the first volume. Doing so with both volumes encrypted seems to lead to significant performance loss (as would be expected). (Evilgold 22:27, 6 September 2010 (UTC))

[edit] RAID from Drives of Differing Capacities

I've already described it here: Talk:Project_ideas

--Ddfitzy 23:54, 1 August 2010 (UTC)

The article says "When you have drives with differing sizes and want to use the full capacity of each drive, you have to use the single profile for the data blocks." As I understand it, this is only necessarily true for 2.x Linux kernels. Linux 3.0 included the quasi-round-robin chunk allocation patch, which should allow RAID1 and RAID0 to use the full space on some disk sets (ex: 1TB drive and 2 500GB drives, or a 2TB and a 1TB + 2 500GB drives).
Bobpaul 17:46, 24 April 2013 (UTC)

[edit] RAID Levels Explained

It seems that in the btrfs world, "raid0" means "striped on two devies" and "raid1" means "duplicated to 2 devices". So if you have -mraid1 -draid1 on a set of 4 n sized disks, you can still only loose 1 at a time and you'll be able to fit 2n bytes of data. Normally, a raid1 across 4 n byte disks would allow you to lose up to 3 drives and only provide n bytes of storage space.

Do I understand this correctly? This should be described in the documentation. Bobpaul 17:46, 24 April 2013 (UTC)

[edit]  ?'See the Gotchas page for some current issues when using btrfs with multiple volumes of differing sizes in a RAID1 style setup.'

It is not, or no longer, clear as to whch gotcha(s) are being referred to.

Could this statement please be re-vetted, and, if possible, the link targeted more precisely?

The statement was introduced with version 1852 and should refer to a resolved problem accordingly to this change. I suggest to remove this statement. --Lbernd (talk) 16:09, 24 May 2021 (UTC)
Personal tools