All of lore.kernel.org
 help / color / mirror / Atom feed
* raid 1 to 10 conversion
@ 2015-06-10  5:28 Guilherme Gonçalves
  2015-06-10  5:31 ` Gareth Pye
  0 siblings, 1 reply; 3+ messages in thread
From: Guilherme Gonçalves @ 2015-06-10  5:28 UTC (permalink / raw)
  To: linux-btrfs

Hello!, i think i made a mistake
i had two 3tb drivre on a raid 1 setup, i bought two aditional 3tb
drives to make my raid 10 array
i used this commands

btrfs -f device add /dev/sdc /mnt/nas/    (i used -f because i
formatted my new drives using gpt)
btrfs -f device add /dev/sdf /mnt/nas/

finally:
btrfs balance start -dconvert=raid10 -mconvert=raid10 /mnt/nas/

after a couple of hours i ran:

btrfs filesystem  df /mnt/nas/

Data, RAID1: total=963.00GiB, used=962.69GiB
System, RAID1: total=32.00MiB, used=176.00KiB
Metadata, RAID1: total=6.00GiB, used=4.59GiB
GlobalReserve, single: total=512.00MiB, used=0.00B

should that not read raid 10 ?

output for btrfs fi usage /mnt/nas

Overall:
    Device size:  10.92TiB
    Device allocated:   1.89TiB
    Device unallocated:   9.02TiB
    Device missing:     0.00B
    Used:   1.89TiB
    Free (estimated):   4.51TiB (min: 4.51TiB)
    Data ratio:      2.00
    Metadata ratio:      2.00
    Global reserve: 512.00MiB (used: 0.00B)

Data,RAID1: Size:963.00GiB, Used:962.69GiB
   /dev/sdc 481.00GiB
   /dev/sdd1 482.00GiB
   /dev/sde1 482.00GiB
   /dev/sdf 481.00GiB

Metadata,RAID1: Size:6.00GiB, Used:4.59GiB
   /dev/sdc   4.00GiB
   /dev/sdd1   2.00GiB
   /dev/sde1   2.00GiB
   /dev/sdf   4.00GiB

System,RAID1: Size:32.00MiB, Used:176.00KiB
   /dev/sdd1  32.00MiB
   /dev/sde1  32.00MiB

Unallocated:
   /dev/sdc   2.25TiB
   /dev/sdd1   2.26TiB
   /dev/sde1   2.26TiB
   /dev/sdf   2.25TiB


I think i made a mess here...  why is system only on two drives? why
is it not showing raid 10?
If i actually failed how do i acheive this? i want all four drives in
a raid 10 setup.

Thanks in advance

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: raid 1 to 10 conversion
  2015-06-10  5:28 raid 1 to 10 conversion Guilherme Gonçalves
@ 2015-06-10  5:31 ` Gareth Pye
  2015-06-22 23:42   ` Suman Chakravartula
  0 siblings, 1 reply; 3+ messages in thread
From: Gareth Pye @ 2015-06-10  5:31 UTC (permalink / raw)
  To: Guilherme Gonçalves; +Cc: linux-btrfs

btrfs has a small bug at the moment where balance can't convert raid
levels (it just does nothing), it is meant to be fixed with the next
kernel release.

On Wed, Jun 10, 2015 at 3:28 PM, Guilherme Gonçalves
<agamennon@gmail.com> wrote:
> Hello!, i think i made a mistake
> i had two 3tb drivre on a raid 1 setup, i bought two aditional 3tb
> drives to make my raid 10 array
> i used this commands
>
> btrfs -f device add /dev/sdc /mnt/nas/    (i used -f because i
> formatted my new drives using gpt)
> btrfs -f device add /dev/sdf /mnt/nas/
>
> finally:
> btrfs balance start -dconvert=raid10 -mconvert=raid10 /mnt/nas/
>
> after a couple of hours i ran:
>
> btrfs filesystem  df /mnt/nas/
>
> Data, RAID1: total=963.00GiB, used=962.69GiB
> System, RAID1: total=32.00MiB, used=176.00KiB
> Metadata, RAID1: total=6.00GiB, used=4.59GiB
> GlobalReserve, single: total=512.00MiB, used=0.00B
>
> should that not read raid 10 ?
>
> output for btrfs fi usage /mnt/nas
>
> Overall:
>     Device size:  10.92TiB
>     Device allocated:   1.89TiB
>     Device unallocated:   9.02TiB
>     Device missing:     0.00B
>     Used:   1.89TiB
>     Free (estimated):   4.51TiB (min: 4.51TiB)
>     Data ratio:      2.00
>     Metadata ratio:      2.00
>     Global reserve: 512.00MiB (used: 0.00B)
>
> Data,RAID1: Size:963.00GiB, Used:962.69GiB
>    /dev/sdc 481.00GiB
>    /dev/sdd1 482.00GiB
>    /dev/sde1 482.00GiB
>    /dev/sdf 481.00GiB
>
> Metadata,RAID1: Size:6.00GiB, Used:4.59GiB
>    /dev/sdc   4.00GiB
>    /dev/sdd1   2.00GiB
>    /dev/sde1   2.00GiB
>    /dev/sdf   4.00GiB
>
> System,RAID1: Size:32.00MiB, Used:176.00KiB
>    /dev/sdd1  32.00MiB
>    /dev/sde1  32.00MiB
>
> Unallocated:
>    /dev/sdc   2.25TiB
>    /dev/sdd1   2.26TiB
>    /dev/sde1   2.26TiB
>    /dev/sdf   2.25TiB
>
>
> I think i made a mess here...  why is system only on two drives? why
> is it not showing raid 10?
> If i actually failed how do i acheive this? i want all four drives in
> a raid 10 setup.
>
> Thanks in advance
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html



-- 
Gareth Pye
Level 2 MTG Judge, Melbourne, Australia
"Dear God, I would like to file a bug report"

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: raid 1 to 10 conversion
  2015-06-10  5:31 ` Gareth Pye
@ 2015-06-22 23:42   ` Suman Chakravartula
  0 siblings, 0 replies; 3+ messages in thread
From: Suman Chakravartula @ 2015-06-22 23:42 UTC (permalink / raw)
  To: Gareth Pye; +Cc: Guilherme Gonçalves, linux-btrfs

I can confirm that convert works now with 4.1 kernel and btrfs-progs

Suman

On Tue, Jun 9, 2015 at 10:31 PM, Gareth Pye <gareth@cerberos.id.au> wrote:
> btrfs has a small bug at the moment where balance can't convert raid
> levels (it just does nothing), it is meant to be fixed with the next
> kernel release.
>
> On Wed, Jun 10, 2015 at 3:28 PM, Guilherme Gonçalves
> <agamennon@gmail.com> wrote:
>> Hello!, i think i made a mistake
>> i had two 3tb drivre on a raid 1 setup, i bought two aditional 3tb
>> drives to make my raid 10 array
>> i used this commands
>>
>> btrfs -f device add /dev/sdc /mnt/nas/    (i used -f because i
>> formatted my new drives using gpt)
>> btrfs -f device add /dev/sdf /mnt/nas/
>>
>> finally:
>> btrfs balance start -dconvert=raid10 -mconvert=raid10 /mnt/nas/
>>
>> after a couple of hours i ran:
>>
>> btrfs filesystem  df /mnt/nas/
>>
>> Data, RAID1: total=963.00GiB, used=962.69GiB
>> System, RAID1: total=32.00MiB, used=176.00KiB
>> Metadata, RAID1: total=6.00GiB, used=4.59GiB
>> GlobalReserve, single: total=512.00MiB, used=0.00B
>>
>> should that not read raid 10 ?
>>
>> output for btrfs fi usage /mnt/nas
>>
>> Overall:
>>     Device size:  10.92TiB
>>     Device allocated:   1.89TiB
>>     Device unallocated:   9.02TiB
>>     Device missing:     0.00B
>>     Used:   1.89TiB
>>     Free (estimated):   4.51TiB (min: 4.51TiB)
>>     Data ratio:      2.00
>>     Metadata ratio:      2.00
>>     Global reserve: 512.00MiB (used: 0.00B)
>>
>> Data,RAID1: Size:963.00GiB, Used:962.69GiB
>>    /dev/sdc 481.00GiB
>>    /dev/sdd1 482.00GiB
>>    /dev/sde1 482.00GiB
>>    /dev/sdf 481.00GiB
>>
>> Metadata,RAID1: Size:6.00GiB, Used:4.59GiB
>>    /dev/sdc   4.00GiB
>>    /dev/sdd1   2.00GiB
>>    /dev/sde1   2.00GiB
>>    /dev/sdf   4.00GiB
>>
>> System,RAID1: Size:32.00MiB, Used:176.00KiB
>>    /dev/sdd1  32.00MiB
>>    /dev/sde1  32.00MiB
>>
>> Unallocated:
>>    /dev/sdc   2.25TiB
>>    /dev/sdd1   2.26TiB
>>    /dev/sde1   2.26TiB
>>    /dev/sdf   2.25TiB
>>
>>
>> I think i made a mess here...  why is system only on two drives? why
>> is it not showing raid 10?
>> If i actually failed how do i acheive this? i want all four drives in
>> a raid 10 setup.
>>
>> Thanks in advance
>> --
>> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
>> the body of a message to majordomo@vger.kernel.org
>> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>
>
>
> --
> Gareth Pye
> Level 2 MTG Judge, Melbourne, Australia
> "Dear God, I would like to file a bug report"
> --
> To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
--
To unsubscribe from this list: send the line "unsubscribe linux-btrfs" in

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-06-22 23:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-06-10  5:28 raid 1 to 10 conversion Guilherme Gonçalves
2015-06-10  5:31 ` Gareth Pye
2015-06-22 23:42   ` Suman Chakravartula

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.