Commit b0584943 authored by Robert Spencer's avatar Robert Spencer
Browse files

Handle that one vg exception



Also handle a lv being deleted, but the configuration isn't updated.
Signed-off-by: Robert Spencer's avatarRobert Spencer <rspencer@lbsd.net>
parent 8f8fb0de
...@@ -104,7 +104,13 @@ for lv in ast.literal_eval(config.get(PERIOD, "backup_lvs")): ...@@ -104,7 +104,13 @@ for lv in ast.literal_eval(config.get(PERIOD, "backup_lvs")):
bind_mount_args = [] bind_mount_args = []
lvm_snapshot_args = [] lvm_snapshot_args = []
VG = "lvm-raid"
if os.path.exists("/dev/lvm-raid/" + lv):
VG = "lvm-raid"
elif os.path.exists("/dev/lvm-cache/" + lv):
VG = "lvm-cache"
else:
continue
if "," in lv: if "," in lv:
lv, bind_mount = lv.split(",") lv, bind_mount = lv.split(",")
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment