add-brick command with replica parameter fails

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thanks for the quick response, but if you look at the end of my message you will see that I already tried that and the mirroring did not appear to work (see my link to my earlier thread in that same message).

Still looking for a working answer to either this question or the linked one.

James Burnash, Unix Engineering

-----Original Message-----
From: Anush Shetty [mailto:anush at gluster.com]
Sent: Tuesday, March 15, 2011 9:50 AM
To: Burnash, James
Cc: gluster-users at gluster.org
Subject: Re: add-brick command with replica parameter fails

On Tue, Mar 15, 2011 at 6:59 PM, Burnash, James <jburnash at knight.com> wrote:
> Hello.
>
> According to the GlusterFS documentation, adding bricks allows a "replica N" argument in the command line, as show by this phrase from the manual:
>
>    Brick Commands
>
>        volume add-brick VOLNAME [(replica COUNT)|(stripe COUNT)] NEW-BRICK ...
>
>            Add the specified brick to the specified volume.
>
> I currently have two servers, volume configured like this:
>
> Volume Name: test-pfs-ro1
> Type: Distributed-Replicate
> Status: Started
> Number of Bricks: 2 x 2 = 4
> Transport-type: tcp
> Bricks:
> Brick1: jc1letgfs5:/export/read-only/g01
> Brick2: jc1letgfs6:/export/read-only/g01
> Brick3: jc1letgfs5:/export/read-only/g02
> Brick4: jc1letgfs6:/export/read-only/g02
> Options Reconfigured:
> performance.stat-prefetch: on
> performance.cache-size: 2GB
> network.ping-timeout: 10
>
> I want to add the next two servers, which are identically configured with hardware, storage, filesystems, etc. However, adding the bricks using the "replica" argument to indicate that I want this added as another set of mirrors, fails - as seen below:
>
> gluster volume add-brick test-pfs-ro1 replica 2 jc1letgfs7:/export/read-only/g01 jc1letgfs8:/export/read-only/g01 jc1letgfs7:/export/read-only/g02 jc1letgfs8:/export/read-only/g02
>
> wrong brick type: replica, use <HOSTNAME>:<export-dir-abs-path>
> Usage: volume add-brick <VOLNAME> <NEW-BRICK> ...
> Adding brick to Volume test-pfs-ro1 failed
>


You needn't specify replica there for add-brick. So it should be,

gluster volume add-brick test-pfs-ro1
jc1letgfs7:/export/read-only/g01 jc1letgfs8:/export/read-only/g01
jc1letgfs7:/export/read-only/g02 jc1letgfs8:/export/read-only/g02

-
Anush


DISCLAIMER:
This e-mail, and any attachments thereto, is intended only for use by the addressee(s) named herein and may contain legally privileged and/or confidential information. If you are not the intended recipient of this e-mail, you are hereby notified that any dissemination, distribution or copying of this e-mail, and any attachments thereto, is strictly prohibited. If you have received this in error, please immediately notify me and permanently delete the original and any copy of any e-mail and any printout thereof. E-mail transmission cannot be guaranteed to be secure or error-free. The sender therefore does not accept liability for any errors or omissions in the contents of this message which arise as a result of e-mail transmission.
NOTICE REGARDING PRIVACY AND CONFIDENTIALITY Knight Capital Group may, at its discretion, monitor and review the content of all e-mail communications. http://www.knight.com


[Index of Archives]     [Gluster Development]     [Linux Filesytems Development]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux