From a9383208a60163f49e87c88a86439acd06f8356c Mon Sep 17 00:00:00 2001 From: Amar Tumballi Date: Thu, 12 Aug 2010 04:49:50 +0000 Subject: client changes for 'gluster volume migration' to work Signed-off-by: Amar Tumballi Signed-off-by: Pavan Vilas Sondur Signed-off-by: Anand V. Avati BUG: 1303 (Cleanup replace-brick state info) URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=1303 --- extras/volgen/CreateVolfile.py | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'extras') diff --git a/extras/volgen/CreateVolfile.py b/extras/volgen/CreateVolfile.py index f243f7e9c7a..df38a9946a5 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: -- cgit