[Gluster-devel] Allow ":" as brick path

Gandalf Corvotempesta gandalf.corvotempesta at gmail.com
Sat Oct 29 11:07:33 UTC 2016


Would be possible to add support for ":" in brick path?

i'm trying to use the following command:

# gluster volume replace-brick gv0 1.2.3.4:/export/brick1/brick
1.2.3.4:/export/pci-0000:01:00.0-scsi-0:0:2:0/brick commit force
wrong brick type: 1.2.3.4:/export/pci-0000:01:00.0-scsi-0:0:2:0/brick,
use <HOSTNAME>:<export-dir-abs-path>
Usage: volume replace-brick <VOLNAME> <SOURCE-BRICK> <NEW-BRICK> {commit force}

but the new brick name is not reconized, probably because there are
too many ":" in the argument.

As the hostname (or the IP address) can't have ":", you should get the
hostname/ip up to the first occurence of ":" and leaving the rest as
brick name/path


More information about the Gluster-devel mailing list