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
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)
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
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)
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)
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]
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)
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)