Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Combination of add-brick and replica and stripe seems to be invalid #20

Open
zstyblik opened this issue Aug 5, 2015 · 2 comments
Open

Comments

@zstyblik
Copy link

zstyblik commented Aug 5, 2015

Hello,

it seems to me like combination of add-brick and replica and stripe is invalid.

/usr/sbin/gluster volume add-brick logs stripe 2 replica 2 <new_brick1> <new_brick2>
Wrong brick type: 2, use <HOSTNAME>:<export-dir-abs-path>
Usage: volume add-brick <VOLNAME> [<stripe|replica> <COUNT>] <NEW-BRICK> ... [force]

However, the same command without replica 2

/usr/sbin/gluster volume add-brick logs stripe 2 <new_brick1> <new_brick2>
Changing the 'stripe count' of the volume is not a supported feature. In some cases it may result in data loss on the volume. Also there may be issues with regular filesystem operations on the volume after the change. Do you really want to continue with 'stripe' count option ?  (y/n) n

Now, how this came to be. I've setup glusterfs with two servers and replica factor 2 first.

  gluster::peer { $gluster_peers:
    pool    => 'xxx',
  }
  gluster::volume { 'xxx':
    replica => 2,
    bricks  => $gluster_bricks,
    require => Gluster::Peer[$gluster_peers],
  }

Then I've decided to throw in two more servers and add stripe => 2, because that was original plan and I wanted to test it. You know the rest.

I'm not sure about how to fix this. I guess don't add replica when adding new brick? stripe and the fact you're unable to change it is probably another story :)

@jyaworski
Copy link
Member

Is this still an issue?

@zstyblik
Copy link
Author

@jyaworski, sorry, but I have no idea. Somebody would have to check. But unless something has changed in GlusterFS, then, I presume, it's still an issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants