|
@@ -50,7 +50,7 @@ def is_volume_open(volpath):
|
|
|
def create_backup_snapshot(vol_str):
|
|
|
snap_path = Path("{}_snap_{}".format(vol_str, time.strftime("%Y-%m-%d")))
|
|
|
snapshot_size = '10G'
|
|
|
- subprocess.call(['lvcreate', '--snapshot', '--size', snapshot_size, '--name', snap_path.name, vol_str], stdout = log_file, stderr = log_file)
|
|
|
+ subprocess.call(['lvcreate', '--snapshot', '--size', snapshot_size, '--name', snap_path.name, vol_str], stdout = subprocess.DEVNULL, stderr = log_file)
|
|
|
return snap_path
|
|
|
|
|
|
def backup(dom_name, vol_str):
|