summaryrefslogtreecommitdiffstats
path: root/daemons/dmeventd/plugins/mirror
diff options
context:
space:
mode:
authorMilan Broz <mbroz@redhat.com>2009-06-04 12:01:15 +0000
committerMilan Broz <mbroz@redhat.com>2009-06-04 12:01:15 +0000
commitc26488d348101c15ddc9e14c07bdd99531c61cd5 (patch)
tree6c10809720c097026c3669c16632a96019395635 /daemons/dmeventd/plugins/mirror
parent896fc66e3202e02247afa9bc2f43963dd4d691f3 (diff)
downloadlvm2-c26488d348101c15ddc9e14c07bdd99531c61cd5.tar.gz
lvm2-c26488d348101c15ddc9e14c07bdd99531c61cd5.tar.xz
lvm2-c26488d348101c15ddc9e14c07bdd99531c61cd5.zip
Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO (mornfall)
Introduce lvconvert --use_policies (mornfall)
Diffstat (limited to 'daemons/dmeventd/plugins/mirror')
-rw-r--r--daemons/dmeventd/plugins/mirror/dmeventd_mirror.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c b/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c
index fc610aea..4c9fcf5c 100644
--- a/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c
+++ b/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c
@@ -152,7 +152,7 @@ static int _remove_failed_devices(const char *device)
}
/* FIXME Is any sanity-checking required on %s? */
- if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "vgreduce --config devices{ignore_suspended_devices=1} --removemissing --force %s", vg)) {
+ if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "lvconvert --config devices{ignore_suspended_devices=1} --repair --use-policies %s/%s", vg, lv)) {
/* this error should be caught above, but doesn't hurt to check again */
syslog(LOG_ERR, "Unable to form LVM command: Device name too long");
dm_pool_empty(_mem_pool); /* FIXME: not safe with multiple threads */