Beispiel #1
0
    def restart(self, *args, **kwargs):
        self.insert_extra_params(kwargs)

        self.sys.rm_scst_local()
        r = self.run("/opt/dedupv1/bin/dedupv1_adm restart", "--config=%s" % sh_escape(self.config), *args, **kwargs)
        self.sys.add_scst_local()
        return r
Beispiel #2
0
    def stop(self, *args, **kwargs):
        self.insert_extra_params(kwargs)

        self.sys.rm_scst_local()
        return self.run("/opt/dedupv1/bin/dedupv1_adm stop", "--config=%s" % sh_escape(self.config), *args, **kwargs)
Beispiel #3
0
 def start_bypassing(self, *args, **kwargs):
     self.insert_extra_params(kwargs)
     r = self.run("/opt/dedupv1/bin/dedupv1_support start-bypassing", 
                     "--config=%s" % sh_escape(self.config), *args, **kwargs)
     self.sys.add_scst_local()
     return r
Beispiel #4
0
 def clean(self, *args, **kwargs):
     self.insert_extra_params(kwargs)
     return self.run("/opt/dedupv1/bin/dedupv1_support clean", "--force", "--config=%s" % sh_escape(self.config), *args, **kwargs)
Beispiel #5
0
 def self_test(self, *args, **kwargs):
     # use root
     return self.run("/opt/dedupv1/bin/dedupv1_support self-test", "--force", "--config=%s" % sh_escape(self.config), *args, **kwargs)
Beispiel #6
0
 def read_md5(self, volume_id, size):
     d = self.run("/opt/dedupv1/bin/dedupv1_read --config=%s --volume_id=%s --size=%s | md5sum" % (sh_escape(self.config), volume_id, (size * 1024 * 1024)))
     return d.split(" ")[0]
Beispiel #7
0
 def check(self, *args, **kwargs):
     self.insert_extra_params(kwargs)
     return self.run("/opt/dedupv1/bin/dedupv1_check", "--config=%s" % sh_escape(self.config), *args, **kwargs)
Beispiel #8
0
 def debug(self, *args, **kwargs):
     self.insert_extra_params(kwargs)
     return self.run("/opt/dedupv1/bin/dedupv1_debug",  "--logging=/opt/dedupv1/etc/dedupv1/logging.xml", "--config=%s" % sh_escape(self.config), *args, **kwargs)