master - man: document profile config and related options
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=0a5b68e87bb901480eb95c98b7811dbb64a54c67 Commit: 0a5b68e87bb901480eb95c98b7811dbb64a54c67 Parent: 21cd275b37cafa7605451aeeef3f1f7fae98447a Author: Peter Rajnoha <[email protected]> AuthorDate: Wed Jul 3 16:45:27 2013 +0200 Committer: Peter Rajnoha <[email protected]> CommitterDate: Wed Jul 3 16:49:26 2013 +0200
man: document profile config and related options
Document following items:
configuration cascade (man lvm.conf)
--profile ProfileName (man lvm)
--detachprofile (man vgchange/lvchange)
-o vg_profile/lv_profile (man vgs/lvs)
Also document --config a bit so we can see where it fits in the configuration cascade - will be documented more in following commit...
--- WHATS_NEW | 1 + man/Makefile.in | 2 +- man/lvchange.8.in | 8 +++++++ man/lvm.8.in | 14 ++++++++++++ man/lvm.conf.5.in | 61 +++++++++++++++++++++++++++++++++++++++++++++++++--- man/lvs.8.in | 1 + man/vgchange.8.in | 8 +++++++ man/vgs.8.in | 6 ++-- 8 files changed, 93 insertions(+), 8 deletions(-)
WHATS_NEW +1 -0
@@ -1,5 +1,6 @@ Version 2.02.99 - =================================== + Add man page entries for profile configuration and related options. Improve error loging when user tries to interrupt commands. Rename _swap_lv to _swap_lv_identifiers and move to allow an additional user. Rename snapshot segment returning methods from find_*_cow to find_*_snapshot.
man/Makefile.in +1 -1
@@ -85,7 +85,7 @@ $(MAN5) $(MAN8) $(MAN8DM) $(MAN8CLUSTER): Makefile %: %.in @case "$@" in \ */*) ;; \ - *) echo "Creating $@" ; $(SED) -e "s+#VERSION#+$(LVM_VERSION)+;s+#DEFAULT_SYS_DIR#+$(DEFAULT_SYS_DIR)+;s+#DEFAULT_ARCHIVE_DIR#+$(DEFAULT_ARCHIVE_DIR)+;s+#DEFAULT_BACKUP_DIR#+$(DEFAULT_BACKUP_DIR)+;s+#DEFAULT_CACHE_DIR#+$(DEFAULT_CACHE_DIR)+;s+#DEFAULT_LOCK_DIR#+$(DEFAULT_LOCK_DIR)+;s+#CLVMD_PATH#+ at CLVMD_PATH@+;s+#LVM_PATH#+ at LVM_PATH@+;s+#DEFAULT_RUN_DIR#+ at DEFAULT_RUN_DIR@+;" $< > $@ ;; \ + *) echo "Creating $@" ; $(SED) -e "s+#VERSION#+$(LVM_VERSION)+;s+#DEFAULT_SYS_DIR#+$(DEFAULT_SYS_DIR)+;s+#DEFAULT_ARCHIVE_DIR#+$(DEFAULT_ARCHIVE_DIR)+;s+#DEFAULT_BACKUP_DIR#+$(DEFAULT_BACKUP_DIR)+;s+#DEFAULT_PROFILE_DIR#+$(DEFAULT_PROFILE_DIR)+;s+#DEFAULT_CACHE_DIR#+$(DEFAULT_CACHE_DIR)+;s+#DEFAULT_LOCK_DIR#+$(DEFAULT_LOCK_DIR)+;s+#CLVMD_PATH#+ at CLVMD_PATH@+;s+#LVM_PATH#+ at LVM_PATH@+;s+#DEFAULT_RUN_DIR#+ at DEFAULT_RUN_DIR@+;" $< > $@ ;; \ esac install_man5: $(MAN5)
man/lvchange.8.in +8 -0
@@ -16,6 +16,9 @@ lvchange \- change attributes of a logical volume .RB [ \-d | \-\-debug ] .RB [ \-\-deltag .IR Tag ] +.RB [ \-\-profile +.IR ProfileName ] +.RB [ \-\-detachprofile ] .RB [ \-\-discards .RI { ignore | nopassdown | passdown }] .RB [ \-\-resync ]
@@ -81,6 +84,11 @@ logical volumes. It's only possible to change a non-contiguous logical volume's allocation policy to contiguous, if all of the allocated physical extents are already contiguous. .TP +.BR \-\-detachprofile +Detach any configuration profiles attached to given Logical Volumes. +See also \fBlvm\fP(8) and \fBlvm.conf\fP(5) for more +information about configuration profiles. +.TP .BR \-\-discards " {" \fIignore | \fInopassdown | \fIpassdown } Set this to \fIignore\fP to ignore any discards received by a thin pool Logical Volume. Set to \fInopassdown\fP to process such
man/lvm.8.in +14 -0
@@ -259,6 +259,20 @@ If there are sufficient free Physical Extents to satisfy an allocation request but \fInormal\fP doesn't use them, \fIanywhere\fP will - even if that reduces performance by placing two stripes on the same Physical Volume. +.TP +.IR \fB\-\-profile \ ProfileName +Selects the configuration profile to use when processing an LVM command. +In addition to that, when creating a Volume Group or a Logical Volume, +it causes the ProfileName to be stored in metadata for each Volume Group +or Logical Volume. If the profile is stored in metadata, it is automatically +applied next time the Volume Group or the Logical Volume is processed and the +use of --profile is not necessary when running LVM commands further. If different +profiles are defined for the Volume Group and its Logical Volumes, the profile +defined for the Logical Volumes are used during command processing. The profile can +be changed or detached using the \fBvgchange\fP(8) and \fBlvchange\fP(8) command +and their \fB\-\-profile ProfileName\fP and \fB--detachprofile\fP options. +See also \fBlvm.conf\fP(5) for more information about configuration profiles +and the way they fit with other LVM configuration methods. .SH ENVIRONMENT VARIABLES .TP .B HOME
man/lvm.conf.5.in +57 -4
78 lines not on this page · raw message
man/lvs.8.in +1 -0
@@ -90,6 +90,7 @@ lv_major, lv_minor, lv_name, lv_path, +lv_profile, lv_read_ahead, lv_size, lv_tags,
man/vgchange.8.in +8 -0
@@ -22,6 +22,9 @@ vgchange \- change attributes of a volume group .RB [ \-d | \-\-debug ] .RB [ \-\-deltag .IR Tag ] +.RB [ \-\-profile +.IR ProfileName ] +.RB [ \-\-detachprofile ] .RB [ \-h | \-\-help ] .RB [ \-\-ignorelockingfailure ] .RB [ \-\-ignoremonitoring ]
@@ -89,6 +92,11 @@ If the cluster infrastructure is unavailable on a particular node at a particular time, you may still be able to use Volume Groups that are not marked as clustered. .TP +.BR \-\-detachprofile +Detach any configuration profiles attached to given Volume Groups. +See also \fBlvm\fP(8) and \fBlvm.conf\fP(5) for more +information about configuration profiles. +.TP .BR \-u ", " \-\-uuid Generate new random UUID for specified Volume Groups. .TP
man/vgs.8.in +3 -3
@@ -60,9 +60,9 @@ Use \fB\-o vg_all\fP to select all volume group columns. Use \fB\-o help\fP to view the full list of columns available. .IP Column names include: vg_fmt, vg_uuid, vg_name, vg_attr, vg_size, vg_free, -vg_sysid, vg_extent_size, vg_extent_count, vg_free_count, max_lv, max_pv, -pv_count, lv_count, snap_count, vg_seqno, vg_tags, vg_mda_count, vg_mda_free, -and vg_mda_size, vg_mda_used_count. +vg_sysid, vg_extent_size, vg_extent_count, vg_free_count, vg_profile, max_lv, +max_pv, pv_count, lv_count, snap_count, vg_seqno, vg_tags, vg_mda_count, +vg_mda_free, and vg_mda_size, vg_mda_used_count. .IP Any "vg_" prefixes are optional. Columns mentioned in either \fBpvs\fP(8) or \fBlvs\fP(8) can also be chosen, but columns cannot be taken from both