mirror of
git://sourceware.org/git/lvm2.git
synced 2025-01-02 01:18:26 +03:00
Add --ignoremonitoring to disable all dmeventd interaction.
This commit is contained in:
parent
ff77bb1ab6
commit
53c774b948
@ -1,5 +1,6 @@
|
|||||||
Version 2.02.27 -
|
Version 2.02.27 -
|
||||||
================================
|
================================
|
||||||
|
Add --ignoremonitoring to disable all dmeventd interaction.
|
||||||
|
|
||||||
Version 2.02.26 - 15th June 2007
|
Version 2.02.26 - 15th June 2007
|
||||||
================================
|
================================
|
||||||
|
@ -10,6 +10,7 @@ lvchange \- change attributes of a logical volume
|
|||||||
[\-\-resync]
|
[\-\-resync]
|
||||||
[\-h/\-?/\-\-help]
|
[\-h/\-?/\-\-help]
|
||||||
[\-\-ignorelockingfailure]
|
[\-\-ignorelockingfailure]
|
||||||
|
[\-\-ignoremonitoring]
|
||||||
[\-\-monitor {y|n}]
|
[\-\-monitor {y|n}]
|
||||||
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
[\-M/\-\-persistent y/n] [\-\-minor minor]
|
||||||
[\-P/\-\-partial]
|
[\-P/\-\-partial]
|
||||||
@ -60,6 +61,11 @@ the failure is handled according to
|
|||||||
\fBmirror_image_fault_policy\fP and \fBmirror_log_fault_policy\fP
|
\fBmirror_image_fault_policy\fP and \fBmirror_log_fault_policy\fP
|
||||||
set in \fBlvm.conf\fP.
|
set in \fBlvm.conf\fP.
|
||||||
.TP
|
.TP
|
||||||
|
.I \-\-ignoremonitoring
|
||||||
|
Make no attempt to interact with dmeventd unless \-\-monitor
|
||||||
|
is specified.
|
||||||
|
Do not use this if dmeventd is already monitoring a device.
|
||||||
|
.TP
|
||||||
.I \-M, \-\-persistent y/n
|
.I \-M, \-\-persistent y/n
|
||||||
Set to y to make the minor number specified persistent.
|
Set to y to make the minor number specified persistent.
|
||||||
.TP
|
.TP
|
||||||
|
@ -16,6 +16,7 @@ vgchange \- change attributes of a volume group
|
|||||||
.IR Tag ]
|
.IR Tag ]
|
||||||
.RB [ \-h | \-\-help]
|
.RB [ \-h | \-\-help]
|
||||||
.RB [ \-\-ignorelockingfailure]
|
.RB [ \-\-ignorelockingfailure]
|
||||||
|
.RB [ \-\-ignoremonitoring]
|
||||||
.RB [ \-l | \-\-logicalvolume
|
.RB [ \-l | \-\-logicalvolume
|
||||||
.IR MaxLogicalVolumes ]
|
.IR MaxLogicalVolumes ]
|
||||||
.RB [ -p | \-\-maxphysicalvolumes
|
.RB [ -p | \-\-maxphysicalvolumes
|
||||||
@ -80,6 +81,12 @@ and
|
|||||||
set in
|
set in
|
||||||
.BR lvm.conf (5).
|
.BR lvm.conf (5).
|
||||||
.TP
|
.TP
|
||||||
|
.BR \-\-ignoremonitoring
|
||||||
|
Make no attempt to interact with dmeventd unless
|
||||||
|
.BR \-\-monitor
|
||||||
|
is specified.
|
||||||
|
Do not use this if dmeventd is already monitoring a device.
|
||||||
|
.TP
|
||||||
.BR \-l ", " \-\-logicalvolume " " \fIMaxLogicalVolumes\fR
|
.BR \-l ", " \-\-logicalvolume " " \fIMaxLogicalVolumes\fR
|
||||||
Changes the maximum logical volume number of an existing inactive
|
Changes the maximum logical volume number of an existing inactive
|
||||||
volume group.
|
volume group.
|
||||||
|
@ -51,6 +51,7 @@ arg(corelog_ARG, '\0', "corelog", NULL)
|
|||||||
arg(monitor_ARG, '\0', "monitor", yes_no_arg)
|
arg(monitor_ARG, '\0', "monitor", yes_no_arg)
|
||||||
arg(config_ARG, '\0', "config", string_arg)
|
arg(config_ARG, '\0', "config", string_arg)
|
||||||
arg(trustcache_ARG, '\0', "trustcache", NULL)
|
arg(trustcache_ARG, '\0', "trustcache", NULL)
|
||||||
|
arg(ignoremonitoring_ARG, '\0', "ignoremonitoring", NULL)
|
||||||
|
|
||||||
/* Allow some variations */
|
/* Allow some variations */
|
||||||
arg(resizable_ARG, '\0', "resizable", yes_no_arg)
|
arg(resizable_ARG, '\0', "resizable", yes_no_arg)
|
||||||
|
@ -66,6 +66,7 @@ xx(lvchange,
|
|||||||
"\t[-f|--force]\n"
|
"\t[-f|--force]\n"
|
||||||
"\t[-h|--help]\n"
|
"\t[-h|--help]\n"
|
||||||
"\t[--ignorelockingfailure]\n"
|
"\t[--ignorelockingfailure]\n"
|
||||||
|
"\t[--ignoremonitoring]\n"
|
||||||
"\t[--monitor {y|n}]\n"
|
"\t[--monitor {y|n}]\n"
|
||||||
"\t[-M|--persistent y|n] [--major major] [--minor minor]\n"
|
"\t[-M|--persistent y|n] [--major major] [--minor minor]\n"
|
||||||
"\t[-P|--partial] " "\n"
|
"\t[-P|--partial] " "\n"
|
||||||
@ -80,9 +81,9 @@ xx(lvchange,
|
|||||||
"\tLogicalVolume[Path] [LogicalVolume[Path]...]\n",
|
"\tLogicalVolume[Path] [LogicalVolume[Path]...]\n",
|
||||||
|
|
||||||
alloc_ARG, autobackup_ARG, available_ARG, contiguous_ARG, force_ARG,
|
alloc_ARG, autobackup_ARG, available_ARG, contiguous_ARG, force_ARG,
|
||||||
ignorelockingfailure_ARG, major_ARG, minor_ARG, monitor_ARG,
|
ignorelockingfailure_ARG, ignoremonitoring_ARG, major_ARG, minor_ARG,
|
||||||
partial_ARG, permission_ARG, persistent_ARG, readahead_ARG, resync_ARG,
|
monitor_ARG, partial_ARG, permission_ARG, persistent_ARG, readahead_ARG,
|
||||||
refresh_ARG, addtag_ARG, deltag_ARG, test_ARG, yes_ARG)
|
resync_ARG, refresh_ARG, addtag_ARG, deltag_ARG, test_ARG, yes_ARG)
|
||||||
|
|
||||||
xx(lvconvert,
|
xx(lvconvert,
|
||||||
"Change logical volume layout",
|
"Change logical volume layout",
|
||||||
@ -617,6 +618,7 @@ xx(vgchange,
|
|||||||
"\t[-d|--debug] " "\n"
|
"\t[-d|--debug] " "\n"
|
||||||
"\t[-h|--help] " "\n"
|
"\t[-h|--help] " "\n"
|
||||||
"\t[--ignorelockingfailure]\n"
|
"\t[--ignorelockingfailure]\n"
|
||||||
|
"\t[--ignoremonitoring]\n"
|
||||||
"\t[--monitor {y|n}]\n"
|
"\t[--monitor {y|n}]\n"
|
||||||
"\t[-t|--test]" "\n"
|
"\t[-t|--test]" "\n"
|
||||||
"\t[-u|--uuid] " "\n"
|
"\t[-u|--uuid] " "\n"
|
||||||
@ -633,9 +635,9 @@ xx(vgchange,
|
|||||||
"\t[VolumeGroupName...]\n",
|
"\t[VolumeGroupName...]\n",
|
||||||
|
|
||||||
addtag_ARG, alloc_ARG, allocation_ARG, autobackup_ARG, available_ARG,
|
addtag_ARG, alloc_ARG, allocation_ARG, autobackup_ARG, available_ARG,
|
||||||
clustered_ARG, deltag_ARG, ignorelockingfailure_ARG, logicalvolume_ARG,
|
clustered_ARG, deltag_ARG, ignorelockingfailure_ARG, ignoremonitoring_ARG,
|
||||||
maxphysicalvolumes_ARG, monitor_ARG, partial_ARG, physicalextentsize_ARG,
|
logicalvolume_ARG, maxphysicalvolumes_ARG, monitor_ARG, partial_ARG,
|
||||||
resizeable_ARG, resizable_ARG, test_ARG, uuid_ARG)
|
physicalextentsize_ARG, resizeable_ARG, resizable_ARG, test_ARG, uuid_ARG)
|
||||||
|
|
||||||
xx(vgck,
|
xx(vgck,
|
||||||
"Check the consistency of volume group(s)",
|
"Check the consistency of volume group(s)",
|
||||||
|
@ -600,7 +600,7 @@ static int lvchange_single(struct cmd_context *cmd, struct logical_volume *lv,
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_dmeventd_monitor(arg_int_value(cmd, monitor_ARG,
|
init_dmeventd_monitor(arg_int_value(cmd, monitor_ARG,
|
||||||
cmd->is_static ?
|
(cmd->is_static || arg_count(cmd, ignoremonitoring_ARG)) ?
|
||||||
DMEVENTD_MONITOR_IGNORE : DEFAULT_DMEVENTD_MONITOR));
|
DMEVENTD_MONITOR_IGNORE : DEFAULT_DMEVENTD_MONITOR));
|
||||||
|
|
||||||
/* access permission change */
|
/* access permission change */
|
||||||
|
@ -536,7 +536,7 @@ static int vgchange_single(struct cmd_context *cmd, const char *vg_name,
|
|||||||
}
|
}
|
||||||
|
|
||||||
init_dmeventd_monitor(arg_int_value(cmd, monitor_ARG,
|
init_dmeventd_monitor(arg_int_value(cmd, monitor_ARG,
|
||||||
cmd->is_static ?
|
(cmd->is_static || arg_count(cmd, ignoremonitoring_ARG)) ?
|
||||||
DMEVENTD_MONITOR_IGNORE : DEFAULT_DMEVENTD_MONITOR));
|
DMEVENTD_MONITOR_IGNORE : DEFAULT_DMEVENTD_MONITOR));
|
||||||
|
|
||||||
if (arg_count(cmd, available_ARG))
|
if (arg_count(cmd, available_ARG))
|
||||||
|
Loading…
Reference in New Issue
Block a user