Re: [Gluster-users] Reconfiguring volume type

2011-02-17 Thread Rahul C S
Hey Fabricio,

No it can not be done as of now. To make the volume type distributed replicate, 
you need to have 2 brick replicated volume and then add 2 more bricks to make 
it distributed replicate. The conversion from distribute to 
distributed-replicate volume can not be done right now.

- Original Message -
From: "Fabricio Cannini" 
To: gluster-users@gluster.org
Cc: "Rahul C S" , "Udo Waechter" 

Sent: Wednesday, February 16, 2011 11:12:36 PM
Subject: Re: [Gluster-users] Reconfiguring volume type

Hi all.

> However if you have a replicate volume with count 2 already created, then
> you just need to add 2 more bricks and it will automatically become a
> distributed replicate volume. This can be scaled to 6 bricks by adding 2
> more bricks again and these steps can be done when the volume is online
> itself.

is it possible with the current 3 servers setup that Udo has, to add 1 server 
to the volume, then change the volume type to distribute-replicate, and after 
add the other 2 servers ?

-- 
regards,
Rahul
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Reconfiguring volume type

2011-02-16 Thread Fabricio Cannini
Hi all.

> However if you have a replicate volume with count 2 already created, then
> you just need to add 2 more bricks and it will automatically become a
> distributed replicate volume. This can be scaled to 6 bricks by adding 2
> more bricks again and these steps can be done when the volume is online
> itself.

is it possible with the current 3 servers setup that Udo has, to add 1 server 
to the volume, then change the volume type to distribute-replicate, and after 
add the other 2 servers ?
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


Re: [Gluster-users] Reconfiguring volume type

2011-02-15 Thread Rahul C S

Hi Udo,

For your first question, the answer right now is No and so you cannot change a 
volume type from distributed to distributed-replicate with gluster 3.1.2 
online. 

You would have to delete the volume and create a new volume with type 
distribute replicate using:
$ gluster volume create  replica 2 
(A volume must have 4 bricks to become a distributed-replicate volume)

However if you have a replicate volume with count 2 already created, then you 
just need to add 2 more bricks and it will automatically become a distributed 
replicate volume.
This can be scaled to 6 bricks by adding 2 more bricks again and these steps 
can be done when the volume is online itself.

For the last question,
"remove-brick" command does not migrate data, the data in that brick cannot be 
accessed from the client unlike "replace-brick" which actually migrates data 
from one brick to the another.


- Original Message -
From: "Udo Waechter" 
To: gluster-users@gluster.org
Sent: Tuesday, February 15, 2011 11:23:39 PM
Subject: [Gluster-users] Reconfiguring volume type

Hi all.
I have been looking around the web but did not find a satisfying answer.
Is it possible to change a volume type from distributed to distributed+replica 
with gluster 3.1.2?
An online way at least?

The manpage suggests that I can do:
$ gluster volume add-brick  [(replica )|(stripe )] 
 ...

I tried to add additional bricks to an existing distribute-type volume by:
gluster volume add-brick testvol replica 2 

This failed.

I have 3 bricks in a distribute volume and would like to add additional 3 
bricks to have it distribute+replicate.


I can do it offline by (something like):
- stop the volume
- delete it
- recreate it with addtional replicate bricks.

I guess i need to take care that the data from the bricks is somehow synched to 
just one or so...

Last small question: If I "gluster remove-brick" one brick, does its data get 
migrated to the other bricks? This is the case with "replace-brick".

Thanks for your time and thoughts,
udo.

-- 
:: udo waechter - r...@zoide.net :: N 52º16'30.5" E 8º3'10.1"
:: genuine input for your ears: http://auriculabovinari.de 
::  your eyes: http://ezag.zoide.net
::  your brain: http://zoide.net




___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users

-- 
regards,
Rahul
___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users


[Gluster-users] Reconfiguring volume type

2011-02-15 Thread Udo Waechter
Hi all.
I have been looking around the web but did not find a satisfying answer.
Is it possible to change a volume type from distributed to distributed+replica 
with gluster 3.1.2?
An online way at least?

The manpage suggests that I can do:
$ gluster volume add-brick  [(replica )|(stripe )] 
 ...

I tried to add additional bricks to an existing distribute-type volume by:
gluster volume add-brick testvol replica 2 

This failed.

I have 3 bricks in a distribute volume and would like to add additional 3 
bricks to have it distribute+replicate.


I can do it offline by (something like):
- stop the volume
- delete it
- recreate it with addtional replicate bricks.

I guess i need to take care that the data from the bricks is somehow synched to 
just one or so...

Last small question: If I "gluster remove-brick" one brick, does its data get 
migrated to the other bricks? This is the case with "replace-brick".

Thanks for your time and thoughts,
udo.

-- 
:: udo waechter - r...@zoide.net :: N 52º16'30.5" E 8º3'10.1"
:: genuine input for your ears: http://auriculabovinari.de 
::  your eyes: http://ezag.zoide.net
::  your brain: http://zoide.net




___
Gluster-users mailing list
Gluster-users@gluster.org
http://gluster.org/cgi-bin/mailman/listinfo/gluster-users