def start_volume(name, force=False):
 cmd = 'volume start {0}'.format(name)
 if force:
  cmd = '{0} force'.format(cmd)
 volinfo = info(name)
 if (name not in volinfo):
  log.error('Cannot start non-existing volume {0}'.format(name))
  return False
 if ((not force) and (volinfo[name]['status'] == '1')):
  log.info('Volume {0} already started'.format(name))
  return True
 return _gluster(cmd)

def start_volume ( name , force = False ) : cmd = 'volume start {0}' . format ( name ) if force : cmd = '{0} force' . format ( cmd ) volinfo = info ( name ) if ( name not in volinfo ) : log . error ( 'Cannot start non-existing volume {0}' . format ( name ) ) return False if ( ( not force ) and ( volinfo [ name ] [ 'status' ] == '1' ) ) : log . info ( 'Volume {0} already started' . format ( name ) ) return True return _gluster ( cmd )
start a gluster volume .