diff options
author | Alasdair Kergon <agk@redhat.com> | 2007-01-25 23:32:29 +0000 |
---|---|---|
committer | Alasdair Kergon <agk@redhat.com> | 2007-01-25 23:32:29 +0000 |
commit | aca043364e330f16f97e88de151b6304503e4e9b (patch) | |
tree | 7c37bda39ac08b502dacfc04db427154e75feef9 /daemons/dmeventd/plugins/mirror | |
parent | 41aec14ed5a12fe5ecf218f0184071805eeb2025 (diff) | |
download | lvm2-aca043364e330f16f97e88de151b6304503e4e9b.tar.gz lvm2-aca043364e330f16f97e88de151b6304503e4e9b.tar.xz lvm2-aca043364e330f16f97e88de151b6304503e4e9b.zip |
dmeventd mirror sets ignore_suspended_devices and avoids scanning mirrors.
Diffstat (limited to 'daemons/dmeventd/plugins/mirror')
-rw-r--r-- | daemons/dmeventd/plugins/mirror/dmeventd_mirror.c | 2 |
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 d12103da..5a7f7439 100644 --- a/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c +++ b/daemons/dmeventd/plugins/mirror/dmeventd_mirror.c @@ -151,7 +151,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 --removemissing %s", vg)) { + if (CMD_SIZE <= snprintf(cmd_str, CMD_SIZE, "vgreduce --config devices{ignore_suspended_devices=1} --removemissing %s", vg)) { /* 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 */ |