Re: How do really work RAID1 on btrfs?

2020-12-09 Thread Roberto Ragusa
On 12/9/20 1:31 AM, Kevin Kofler via devel wrote: It follows that the solutions are nonnegative under the following conditions: * a+b≥c * a+c≥b * b+c≥a which are quite logical. Consider a=4, b=1, and c=1, i.e., disks of 4 GB, 1 GB, and 1 GB. Each of the 1 GB disks can only mirror (at most) 1 of

Re: How do really work RAID1 on btrfs?

2020-12-08 Thread Chris Murphy
On Tue, Dec 8, 2020 at 5:08 PM Kevin Kofler via devel wrote: > > Sergio Belkin wrote: > > So, let's say we have 3 small disks: 4GB, 3G, and 2GB. > > > > If I create one file of 3GB I think that > > 3 GB is written on 4GB disk, it leaves 1 GB free. > > 3 GB of copy is written on 3 GB disk, it

Re: How do really work RAID1 on btrfs?

2020-12-08 Thread Sergio Belkin
El mar, 8 dic 2020 a las 20:21, Chris Murphy () escribió: > On Tue, Dec 8, 2020 at 12:22 PM Sergio Belkin wrote: > > > > Hi! > > I've read the explanation about how much space is available using disks > with different sizes[1]. I understand the rules, but I see a contradiction > with definition

Re: How do really work RAID1 on btrfs?

2020-12-08 Thread Kevin Kofler via devel
PS: I wrote: > The optimum size can theoretically be achieved by using the following > physical partitioning: > * x GB on the 4 GB disk and the 3 GB disk, > * y GB on the 4 GB disk and the 2 GB disk, and > * z GB on the 3 GB disk and the 2 GB disk, > for a total of x+y+z GB, where x, y, and z

Re: How do really work RAID1 on btrfs?

2020-12-08 Thread Kevin Kofler via devel
Sergio Belkin wrote: > So, let's say we have 3 small disks: 4GB, 3G, and 2GB. > > If I create one file of 3GB I think that > 3 GB is written on 4GB disk, it leaves 1 GB free. > 3 GB of copy is written on 3 GB disk, it leaves 0 GB Free. > > So, I create one file of 1GB that is written on 4GB

Re: How do really work RAID1 on btrfs?

2020-12-08 Thread Chris Murphy
On Tue, Dec 8, 2020 at 12:22 PM Sergio Belkin wrote: > > Hi! > I've read the explanation about how much space is available using disks with > different sizes[1]. I understand the rules, but I see a contradiction with > definition of RAID-1 in btrs: > > «A form of RAID which stores two complete

How do really work RAID1 on btrfs?

2020-12-08 Thread Sergio Belkin
Hi! I've read the explanation about how much space is available using disks with different sizes[1]. I understand the rules, but I see a contradiction with definition of RAID-1 in btrs: «A form of *RAID* which stores two complete copies of each piece of data. Each copy is stored on a different