diff options
Diffstat (limited to 'xlators/mgmt/glusterd/src')
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-op-sm.c | 16 | ||||
-rw-r--r-- | xlators/mgmt/glusterd/src/glusterd-utils.c | 2 |
2 files changed, 10 insertions, 8 deletions
diff --git a/xlators/mgmt/glusterd/src/glusterd-op-sm.c b/xlators/mgmt/glusterd/src/glusterd-op-sm.c index 57ec659f999..b3d27efa0fb 100644 --- a/xlators/mgmt/glusterd/src/glusterd-op-sm.c +++ b/xlators/mgmt/glusterd/src/glusterd-op-sm.c @@ -287,10 +287,10 @@ glusterd_volume_create_generate_volfiles (glusterd_volinfo_t *volinfo) case GF_CLUSTER_TYPE_REPLICATE: { snprintf (cmd_str, 8192, - "glusterfs-volgen -n %s -c %s -r 1 %s -p %d " - "--num-replica %d", - volinfo->volname, path, bricks, - volinfo->port, volinfo->sub_count); + "glusterfs-volgen --portmapper-mode -n %s " + " -c %s -r 1 %s -p %d --num-replica %d", + volinfo->volname, path, bricks, + volinfo->port, volinfo->sub_count); ret = system (cmd_str); break; } @@ -298,8 +298,8 @@ glusterd_volume_create_generate_volfiles (glusterd_volinfo_t *volinfo) case GF_CLUSTER_TYPE_STRIPE: { snprintf (cmd_str, 8192, - "glusterfs-volgen -n %s -c %s -r 0 %s -p %d " - "--num-stripe %d", + "glusterfs-volgen --portmapper-mode -n %s " + " -c %s -r 0 %s -p %d --num-stripe %d", volinfo->volname, path, bricks, volinfo->port, volinfo->sub_count); ret = system (cmd_str); @@ -309,9 +309,11 @@ glusterd_volume_create_generate_volfiles (glusterd_volinfo_t *volinfo) case GF_CLUSTER_TYPE_NONE: { snprintf (cmd_str, 8192, - "glusterfs-volgen -n %s -c %s %s -p %d", + "glusterfs-volgen --portmapper-mode -n %s " + " -c %s %s -p %d", volinfo->volname, path, bricks, volinfo->port); + gf_log ("", 1, "%s", cmd_str); ret = system (cmd_str); break; } diff --git a/xlators/mgmt/glusterd/src/glusterd-utils.c b/xlators/mgmt/glusterd/src/glusterd-utils.c index c135e75264f..81c6cb2f4e4 100644 --- a/xlators/mgmt/glusterd/src/glusterd-utils.c +++ b/xlators/mgmt/glusterd/src/glusterd-utils.c @@ -754,7 +754,7 @@ glusterd_volume_start_glusterfs (glusterd_volinfo_t *volinfo, brickinfo->hostname, volinfo->volname, count); snprintf (cmd_str, 8192, - "glusterfs --xlator-option server-tcp.listen-port=%d -f %s -p %s", + "glusterfs --xlator-option server-*.listen-port=%d -f %s -p %s", port, volfile, pidfile); ret = system (cmd_str); |