summaryrefslogtreecommitdiffstats
path: root/geo-replication/syncdaemon/monitor.py
diff options
context:
space:
mode:
authorKotresh HR <khiremat@redhat.com>2015-04-10 17:03:02 +0530
committerVijay Bellur <vbellur@redhat.com>2015-04-27 21:02:21 -0700
commitb4d909003851e327d2cf448f9409cf5e31893579 (patch)
tree91b33c1d8ddb18997af7c6eb462dd53cce9a081d /geo-replication/syncdaemon/monitor.py
parentddc8dece96b0c04fca564aa3990f484119713720 (diff)
geo-rep: Adhering to the common storage for geo-rep
Making geo-rep use the common storage shared by nfs, snapshot and geo-rep. The meta volume should be named as gluster_shared_storage, and it should be mounted at "/var/run/gluster/shared_storage/". geo-rep will have create a directory called 'geo-rep' in the meta-volume and all the lock files are created inside it. Change-Id: I82d0bff9be191f75f643606a9a21d53559047ac4 BUG: 1210344 Signed-off-by: Kotresh HR <khiremat@redhat.com> Reviewed-on: http://review.gluster.org/10196 Reviewed-by: Aravinda VK <avishwan@redhat.com> Tested-by: NetBSD Build System Tested-by: Gluster Build System <jenkins@build.gluster.com>
Diffstat (limited to 'geo-replication/syncdaemon/monitor.py')
-rw-r--r--geo-replication/syncdaemon/monitor.py20
1 files changed, 0 insertions, 20 deletions
diff --git a/geo-replication/syncdaemon/monitor.py b/geo-replication/syncdaemon/monitor.py
index e50893c793f..029726c7a5a 100644
--- a/geo-replication/syncdaemon/monitor.py
+++ b/geo-replication/syncdaemon/monitor.py
@@ -405,26 +405,6 @@ def distribute(*resources):
def monitor(*resources):
- # Mount geo-rep management volume
- if gconf.meta_volume:
- mgmt_mnt = os.path.join(gconf.working_dir, gconf.meta_volume)
- if not os.path.exists(mgmt_mnt):
- try:
- os.makedirs(mgmt_mnt)
- except OSError:
- ex = sys.exc_info()[1]
- if ex.errno == EEXIST:
- pass
- else:
- raise
-
- if not os.path.ismount(mgmt_mnt):
- po = Popen(["mount", "-t", "glusterfs", "localhost:%s"
- % gconf.meta_volume, mgmt_mnt], stdout=PIPE,
- stderr=PIPE)
- po.wait()
- po.terminate_geterr()
-
# Check if gsyncd restarted in pause state. If
# yes, send SIGSTOP to negative of monitor pid
# to go back to pause state.