summaryrefslogtreecommitdiffstats
path: root/extras/volgen
diff options
context:
space:
mode:
authorAmar Tumballi <amar@gluster.com>2010-08-12 04:49:50 +0000
committerAnand V. Avati <avati@dev.gluster.com>2010-08-12 03:29:58 -0700
commita9383208a60163f49e87c88a86439acd06f8356c (patch)
treefc86250330d11c81fed833cdb7d639be38a860d4 /extras/volgen
parente0347526dd77f7171ae9da72fc92ca99a79dd282 (diff)
client changes for 'gluster volume migration' to work
Signed-off-by: Amar Tumballi <amar@gluster.com> Signed-off-by: Pavan Vilas Sondur <pavan@gluster.com> Signed-off-by: Anand V. Avati <avati@dev.gluster.com> BUG: 1303 (Cleanup replace-brick state info) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1303
Diffstat (limited to 'extras/volgen')
-rw-r--r--extras/volgen/CreateVolfile.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/extras/volgen/CreateVolfile.py b/extras/volgen/CreateVolfile.py
index f243f7e9c..df38a9946 100644
--- a/extras/volgen/CreateVolfile.py
+++ b/extras/volgen/CreateVolfile.py
@@ -309,6 +309,21 @@ class CreateVolfile:
exp_fd.write (" subvolumes posix\n")
exp_fd.write ("end-volume\n\n")
+ exp_fd.write ("volume replace-brick\n")
+ exp_fd.write (" type protocol/client\n")
+ if self.transport:
+ exp_fd.write (" option transport-type %s\n" % self.transport)
+
+ if self.gfs_port:
+ exp_fd.write (" option transport.remote-port %d\n" % self.gfs_port)
+ exp_fd.write (" option ping-timeout 42\n")
+ exp_fd.write ("end-volume\n\n")
+
+ exp_fd.write ("volume pump\n")
+ exp_fd.write (" type cluster/pump\n")
+ exp_fd.write (" subvolumes locks replace-brick\n")
+ exp_fd.write ("end-volume\n\n")
+
exp_fd.write ("volume %s\n" % export)
exp_fd.write (" type performance/io-threads\n")
exp_fd.write (" option thread-count 8\n")
@@ -316,7 +331,7 @@ class CreateVolfile:
exp_fd.write ("# option min-threads 2 # min count for thread pool\n")
exp_fd.write ("# option max-threads 64 # max count for thread pool\n")
- exp_fd.write (" subvolumes locks\n")
+ exp_fd.write (" subvolumes pump\n")
exp_fd.write ("end-volume\n\n")
for transport in self.transports: