diff options
author | Mike Snitzer <snitzer@redhat.com> | 2010-01-05 20:56:51 +0000 |
---|---|---|
committer | Mike Snitzer <snitzer@redhat.com> | 2010-01-05 20:56:51 +0000 |
commit | 7a8fa6aaab54a9da7289637e016eef553168bfe2 (patch) | |
tree | a93b1467523d000261cb4a23e493d7bf087d98f5 /scripts/lvm2_monitoring_init_red_hat.in | |
parent | 0e06c92fdf1973bf8a8e0096b7beaf6fc687f10e (diff) | |
download | lvm2-7a8fa6aaab54a9da7289637e016eef553168bfe2.tar.gz lvm2-7a8fa6aaab54a9da7289637e016eef553168bfe2.tar.xz lvm2-7a8fa6aaab54a9da7289637e016eef553168bfe2.zip |
Add a [--poll {y|n}] flag to vgchange and lvchange to control whether
the background polldaemon is allowed to start. It can be used
standalone or in conjunction with --refresh or --available y.
Control over when the background polldaemon starts will be particularly
important for snapshot-merge of a root filesystem.
Dracut will be updated to activate all LVs with: --poll n
The lvm2-monitor initscript will start polling with: --poll y
NOTE: Because we currently have no way of knowing if a background
polldaemon is active for a given LV the following limitations exist and
have been deemed acceptable:
1) it is not possible to stop an active polldaemon; so the lvm2-monitor
initscript doesn't stop running polldaemon(s)
2) redundant polldaemon instances will be started for all specified LVs
if vgchange or lvchange are repeatedly used with '--poll y'
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Diffstat (limited to 'scripts/lvm2_monitoring_init_red_hat.in')
-rw-r--r-- | scripts/lvm2_monitoring_init_red_hat.in | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lvm2_monitoring_init_red_hat.in b/scripts/lvm2_monitoring_init_red_hat.in index ef5a6e49..ed03f65e 100644 --- a/scripts/lvm2_monitoring_init_red_hat.in +++ b/scripts/lvm2_monitoring_init_red_hat.in @@ -26,7 +26,7 @@ # Required-Stop: $local_fs # Default-Start: 1 2 3 4 5 # Default-Stop: 0 6 -# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd +# Short-Description: Monitoring of LVM2 mirrors, snapshots etc. using dmeventd or progress polling ### END INIT INFO . /etc/init.d/functions @@ -50,7 +50,7 @@ start() VGSLIST=`$VGS --noheadings -o name 2> /dev/null` for vg in $VGSLIST do - action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y $vg || ret=$? + action "Starting monitoring for VG $vg:" $VGCHANGE --monitor y --poll y $vg || ret=$? done return $ret |