master - generate man pages
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=698abdde165a3e747b81f18cf3405f2d4abb5bae Commit: 698abdde165a3e747b81f18cf3405f2d4abb5bae Parent: 13a6368522894e9d32544d8fb3d6360bbe9018d1 Author: David Teigland <[email protected]> AuthorDate: Fri Feb 10 16:20:19 2017 -0600 Committer: David Teigland <[email protected]> CommitterDate: Mon Feb 13 10:31:23 2017 -0600
generate man pages
--- configure.in | 2 + doc/license.txt | 14 + man/Makefile.in | 39 +- man/clvmd.8.in | 26 + man/lvchange.8.des | 2 + man/lvchange.8.end | 6 + man/lvchange.8.in | 491 ------------------- man/lvconvert.8.des | 32 ++ man/lvconvert.8.end | 95 ++++ man/lvconvert.8.in | 1199 ---------------------------------------------- man/lvcreate.8.des | 28 ++ man/lvcreate.8.end | 98 ++++ man/lvcreate.8.in | 914 ----------------------------------- man/lvdisplay.8.des | 5 + man/lvdisplay.8.in | 134 ----- man/lvextend.8.des | 5 + man/lvextend.8.end | 16 + man/lvextend.8.in | 134 ----- man/lvm-config.8.des | 5 + man/lvm-config.8.in | 1 - man/lvm-dumpconfig.8.des | 5 + man/lvm-dumpconfig.8.in | 1 - man/lvm-fullreport.8.des | 6 + man/lvm-fullreport.8.in | 145 ------ man/lvm-lvpoll.8.des | 4 + man/lvm-lvpoll.8.end | 33 ++ man/lvm-lvpoll.8.in | 89 ---- man/lvmchange.8.in | 10 - man/lvmconfig.8.des | 3 + man/lvmconfig.8.in | 225 --------- man/lvmdiskscan.8.des | 7 + man/lvmdiskscan.8.in | 27 - man/lvmlockd.8.in | 42 +- man/lvmsadc.8.des | 3 + man/lvmsadc.8.in | 16 - man/lvmsar.8.des | 3 + man/lvmsar.8.in | 16 - man/lvreduce.8.des | 14 + man/lvreduce.8.end | 5 + man/lvreduce.8.in | 110 ----- man/lvremove.8.des | 22 + man/lvremove.8.end | 11 + man/lvremove.8.in | 80 --- man/lvrename.8.des | 2 + man/lvrename.8.end | 10 + man/lvrename.8.in | 51 -- man/lvresize.8.des | 2 + man/lvresize.8.end | 6 + man/lvresize.8.in | 124 ----- man/lvs.8.des | 1 + man/lvs.8.end | 75 +++ man/lvs.8.in | 290 ----------- man/lvscan.8.des | 5 + man/lvscan.8.in | 52 -- man/pvchange.8.des | 1 + man/pvchange.8.end | 6 + man/pvchange.8.in | 59 --- man/pvck.8.des | 1 + man/pvck.8.end | 8 + man/pvck.8.in | 37 -- man/pvcreate.8.des | 18 + man/pvcreate.8.end | 13 + man/pvcreate.8.in | 210 -------- man/pvdisplay.8.des | 5 + man/pvdisplay.8.in | 109 ----- man/pvmove.8.des | 61 +++ man/pvmove.8.end | 46 ++ man/pvmove.8.in | 187 ------- man/pvremove.8.des | 2 + man/pvremove.8.in | 37 -- man/pvresize.8.des | 2 + man/pvresize.8.end | 16 + man/pvresize.8.in | 56 --- man/pvs.8.des | 1 + man/pvs.8.end | 11 + man/pvs.8.in | 153 ------ man/pvscan.8.des | 105 ++++ man/pvscan.8.in | 178 ------- man/see_also.end | 67 +++ man/vgcfgbackup.8.des | 16 + man/vgcfgbackup.8.in | 36 -- man/vgcfgrestore.8.des | 8 + man/vgcfgrestore.8.end | 9 + man/vgcfgrestore.8.in | 58 --- man/vgchange.8.des | 2 + man/vgchange.8.end | 16 + man/vgchange.8.in | 346 ------------- man/vgck.8.des | 1 + man/vgck.8.in | 22 - man/vgconvert.8.des | 7 + man/vgconvert.8.in | 48 -- man/vgcreate.8.des | 4 + man/vgcreate.8.end | 6 + man/vgcreate.8.in | 187 ------- man/vgdisplay.8.des | 4 + man/vgdisplay.8.in | 123 ----- man/vgexport.8.des | 8 + man/vgexport.8.in | 37 -- man/vgextend.8.des | 11 + man/vgextend.8.end | 6 + man/vgextend.8.in | 71 --- man/vgimport.8.des | 5 + man/vgimport.8.in | 38 -- man/vgimportclone.8.des | 6 + man/vgimportclone.8.end | 9 + man/vgimportclone.8.in | 46 -- man/vgmerge.8.des | 3 + man/vgmerge.8.end | 7 + man/vgmerge.8.in | 41 -- man/vgmknodes.8.des | 5 + man/vgmknodes.8.in | 30 -- man/vgreduce.8.des | 1 + man/vgreduce.8.in | 49 -- man/vgremove.8.des | 6 + man/vgremove.8.in | 46 -- man/vgrename.8.des | 9 + man/vgrename.8.end | 10 + man/vgrename.8.in | 58 --- man/vgs.8.des | 1 + man/vgs.8.end | 17 + man/vgs.8.in | 161 ------- man/vgscan.8.des | 1 + man/vgscan.8.in | 43 -- man/vgsplit.8.des | 13 + man/vgsplit.8.in | 80 --- tools/Makefile.in | 1 - 126 files changed, 1159 insertions(+), 6683 deletions(-)
configure.in +2 -0
@@ -86,6 +86,8 @@ AC_PROG_RANLIB AC_PATH_TOOL(CFLOW_CMD, cflow) AC_PATH_TOOL(CSCOPE_CMD, cscope) AC_PATH_TOOL(CHMOD, chmod) +AC_PATH_TOOL(WC, wc) +AC_PATH_TOOL(SORT, sort) ################################################################################ dnl -- Check for header files.
doc/license.txt new file +14 -0
@@ -0,0 +1,14 @@ +/* + * Copyright (C) 2001-2004 Sistina Software, Inc. All rights reserved. + * Copyright (C) 2004-2017 Red Hat, Inc. All rights reserved. + * + * This file is part of LVM2. + * + * This copyrighted material is made available to anyone wishing to use, + * modify, copy, or redistribute it subject to the terms and conditions + * of the GNU Lesser General Public License v.2.1. + * + * You should have received a copy of the GNU Lesser General Public License + * along with this program; if not, write to the Free Software Foundation, + * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA + */
man/Makefile.in +27 -12
@@ -31,18 +31,20 @@ LVMRAIDMAN = lvmraid.7 MAN5=lvm.conf.5 MAN7=lvmsystemid.7 lvmreport.7 -MAN8=lvm-config.8 lvm-dumpconfig.8 lvm-fullreport.8 lvm-lvpoll.8 \ - lvchange.8 lvmconfig.8 lvconvert.8 lvcreate.8 lvdisplay.8 lvextend.8 \ - lvm.8 lvmchange.8 lvmconf.8 lvmdiskscan.8 lvmdump.8 lvmsadc.8 lvmsar.8 \ +MAN8=lvm.8 lvmconf.8 lvmdump.8 +MAN8DM=dmsetup.8 dmstats.8 +MAN8CLUSTER= +MAN8SYSTEMD_GENERATORS=lvm2-activation-generator.8 + +MAN8GEN=lvm-config.8 lvm-dumpconfig.8 lvm-fullreport.8 lvm-lvpoll.8 \ + lvcreate.8 lvchange.8 lvmconfig.8 lvconvert.8 lvdisplay.8 lvextend.8 \ lvreduce.8 lvremove.8 lvrename.8 lvresize.8 lvs.8 \ lvscan.8 pvchange.8 pvck.8 pvcreate.8 pvdisplay.8 pvmove.8 pvremove.8 \ pvresize.8 pvs.8 pvscan.8 vgcfgbackup.8 vgcfgrestore.8 vgchange.8 \ vgck.8 vgcreate.8 vgconvert.8 vgdisplay.8 vgexport.8 vgextend.8 \ vgimport.8 vgimportclone.8 vgmerge.8 vgmknodes.8 vgreduce.8 vgremove.8 \ - vgrename.8 vgs.8 vgscan.8 vgsplit.8 -MAN8DM=dmsetup.8 dmstats.8 -MAN8CLUSTER= -MAN8SYSTEMD_GENERATORS=lvm2-activation-generator.8 + vgrename.8 vgs.8 vgscan.8 vgsplit.8 \ + lvmsar.8 lvmsadc.8 lvmdiskscan.8 lvmchange.8 ifeq ($(MAKECMDGOALS),all_man) MAN_ALL="yes"
@@ -113,8 +115,8 @@ MAN8DIR=$(mandir)/man8 include $(top_builddir)/make.tmpl -CLEAN_TARGETS+=$(MAN5) $(MAN7) $(MAN8) $(MAN8CLUSTER) \ - $(MAN8SYSTEMD_GENERATORS) $(MAN8DM) +CLEAN_TARGETS+=$(MAN5) $(MAN7) $(MAN8) $(MAN8GEN) $(MAN8CLUSTER) \ + $(MAN8SYSTEMD_GENERATORS) $(MAN8DM) *.gen man-generator DISTCLEAN_TARGETS+=$(FSADMMAN) $(BLKDEACTIVATEMAN) $(DMEVENTDMAN) \ $(LVMETADMAN) $(LVMPOLLDMAN) $(LVMLOCKDMAN) $(CLVMDMAN) $(CMIRRORDMAN) \ $(LVMCACHEMAN) $(LVMTHINMAN) $(LVMDBUSDMAN) $(LVMRAIDMAN)
@@ -125,11 +127,11 @@ all: man device-mapper device-mapper: $(MAN8DM) -man: $(MAN5) $(MAN7) $(MAN8) $(MAN8CLUSTER) $(MAN8SYSTEMD_GENERATORS) +man: $(MAN5) $(MAN7) $(MAN8) $(MAN8GEN) $(MAN8CLUSTER) $(MAN8SYSTEMD_GENERATORS) all_man: man -$(MAN5) $(MAN7) $(MAN8) $(MAN8DM) $(MAN8CLUSTER): Makefile +$(MAN5) $(MAN7) $(MAN8) $(MAN8GEN) $(MAN8DM) $(MAN8CLUSTER): Makefile Makefile: Makefile.in @:
@@ -140,6 +142,18 @@ Makefile: Makefile.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_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@+;s+#DEFAULT_PID_DIR#+ at DEFAULT_PID_DIR@+;s+#SYSTEMD_GENERATOR_DIR#+$(SYSTEMD_GENERATOR_DIR)+;s+#DEFAULT_MANGLING#+$(DEFAULT_MANGLING)+;" $< > $@ ;; \ esac +man-generator: + $(CC) -DMAN_PAGE_GENERATOR -I$(top_builddir)/tools $(CFLAGS) $(top_srcdir)/tools/command.c -o $@ + - ./man-generator lvmconfig > test.gen + if [ ! -s test.gen ] ; then cp genfiles/*.gen $(top_builddir)/man; fi; + +$(MAN8GEN): man-generator + echo "Generating $@" ; + if [ ! -e [email protected] ]; then ./man-generator $(basename $@) $(top_srcdir)/man/[email protected] > [email protected]; fi + if [ -f $(top_srcdir)/man/[email protected] ]; then cat $(top_srcdir)/man/[email protected] >> [email protected]; fi; + cat $(top_srcdir)/man/see_also.end >> [email protected] + $(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@+;s+#DEFAULT_PID_DIR#+ at DEFAULT_PID_DIR@+;s+#SYSTEMD_GENERATOR_DIR#+$(SYSTEMD_GENERATOR_DIR)+;s+#DEFAULT_MANGLING#+$(DEFAULT_MANGLING)+;" [email protected] > $@ + install_man5: $(MAN5) $(INSTALL) -d $(MAN5DIR) $(INSTALL_DATA) $(MAN5) $(MAN5DIR)/
@@ -148,9 +162,10 @@ install_man7: $(MAN7) $(INSTALL) -d $(MAN7DIR) $(INSTALL_DATA) $(MAN7) $(MAN7DIR)/ -install_man8: $(MAN8) +install_man8: $(MAN8) $(MAN8GEN) $(INSTALL) -d $(MAN8DIR) $(INSTALL_DATA) $(MAN8) $(MAN8DIR)/ + $(INSTALL_DATA) $(MAN8GEN) $(MAN8DIR)/ install_lvm2: install_man5 install_man7 install_man8
man/clvmd.8.in +26 -0
@@ -154,6 +154,32 @@ This timeout will be ignored if you start \fBclvmd\fP with the \fB\-d\fP. .br Display the version of the cluster LVM daemon. . +.SH NOTES +. +.SS Activation +. +In a clustered VG, clvmd is used for activation, and the following values are +possible with \fBlvchange/vgchange -a\fP: +.IP \fBy\fP|\fBsy\fP +clvmd activates the LV in shared mode (with a shared lock), +allowing multiple nodes to activate the LV concurrently. +If the LV type prohibits shared access, such as an LV with a snapshot, +an exclusive lock is automatically used instead. +clvmd attempts to activate the LV concurrently on all nodes. +.IP \fBey\fP +clvmd activates the LV in exclusive mode (with an exclusive lock), +allowing a single node to activate the LV. +clvmd attempts to activate the LV concurrently on all nodes, but only +one will succeed. +.IP \fBly\fP +clvmd attempts to activate the LV only on the local node. +If the LV type allows concurrent access, then shared mode is used, +otherwise exclusive. +.IP \fBn\fP +clvmd deactivates the LV on all nodes. +.IP \fBln\fP +clvmd deactivates the LV on the local node. +. .SH ENVIRONMENT VARIABLES .TP .B LVM_CLVMD_BINARY
man/lvchange.8.des new file +2 -0
@@ -0,0 +1,2 @@ +lvchange changes LV attributes in the VG, changes LV activation in the +kernel, and includes other utilities for LV maintenance.
man/lvchange.8.end new file +6 -0
@@ -0,0 +1,6 @@ +.SH EXAMPLES + +Change LV permission to read-only: +.sp +.B lvchange \-pr vg00/lvol1 +
man/lvchange.8.in deleted +0 -491
491 lines not on this page · raw message
man/lvconvert.8.des new file +32 -0
@@ -0,0 +1,32 @@ +lvconvert changes the LV type and includes utilities for LV data +maintenance. The LV type controls data layout and redundancy. +The LV type is also called the segment type or segtype. + +To display the current LV type, run the command: + +.B lvs \-o name,segtype +.I LV + +The +.B linear +type is equivalent to the +.B striped +type when one stripe exists. +In that case, the types can sometimes be used interchangably. + +In most cases, the +.B mirror +type is deprecated and the +.B raid1 +type should be used. They are both implementations of mirroring. + +In some cases, an LV is a single device mapper (dm) layer above physical +devices. In other cases, hidden LVs (dm devices) are layered between the +visible LV and physical devices. LVs in the middle layers are called sub LVs. +A command run on a visible LV sometimes operates on a sub LV rather than +the specified LV. In other cases, a sub LV must be specified directly on +the command line. + +Sub LVs can be displayed with the command +.B lvs -a +
man/lvconvert.8.end new file +95 -0
95 lines not on this page · raw message
man/lvconvert.8.in deleted +0 -1199
1,199 lines not on this page · raw message
man/lvcreate.8.des new file +28 -0
@@ -0,0 +1,28 @@ +lvcreate creates a new LV in a VG. For standard LVs, this requires +allocating logical extents from the VG's free physical extents. If there +is not enough free space, then the VG can be extended (see +\fBvgextend\fP(8)) with other PVs, or existing LVs can be reduced or +removed (see \fBlvremove\fP, \fBlvreduce\fP.) + +To control which PVs a new LV will use, specify one or more PVs as +position args at the end of the command line. lvcreate will allocate +physical extents only from the specified PVs. + +lvcreate can also create snapshots of existing LVs, e.g. for backup +purposes. The data in a new snapshot LV represents the content of the +original LV from the time the snapshot was created. + +RAID LVs can be created by specifying an LV type when creating the LV (see +\fBlvmraid\fP(7)). Different RAID levels require different numbers of +unique PVs be available in the VG for allocation. + +Thin pools (for thin provisioning) and cache pools (for caching) are +represented by special LVs with types thin-pool and cache-pool (see +\fBlvmthin\fP(7) and \fBlvmcache\fP(7)). The pool LVs are not usable as +standard block devices, but the LV names act references to the pools. + +Thin LVs are thinly provisioned from a thin pool, and are created with a +virtual size rather than a physical size. A cache LV is the combination of +a standard LV with a cache pool, used to cache active portions of the LV +to improve performance. +
man/lvcreate.8.end new file +98 -0
98 lines not on this page · raw message
man/lvcreate.8.in deleted +0 -914
914 lines not on this page · raw message
man/lvdisplay.8.des new file +5 -0
@@ -0,0 +1,5 @@ +lvdisplay shows the attributes of LVs, like size, read/write status, +snapshot information, etc.
Lines of this file are not shown. View the raw message.
man/lvdisplay.8.in deleted +0 -134
134 lines not on this page · raw message
man/lvextend.8.in deleted +0 -134
134 lines not on this page · raw message
man/lvm-fullreport.8.in deleted +0 -145
145 lines not on this page · raw message
man/lvm-lvpoll.8.in deleted +0 -89
89 lines not on this page · raw message
man/lvmconfig.8.in deleted +0 -225
225 lines not on this page · raw message
man/lvmlockd.8.in +27 -15
42 lines not on this page · raw message
man/lvreduce.8.in deleted +0 -110
110 lines not on this page · raw message
man/lvremove.8.in deleted +0 -80
80 lines not on this page · raw message
man/lvrename.8.in deleted +0 -51
51 lines not on this page · raw message
man/lvresize.8.in deleted +0 -124
124 lines not on this page · raw message
man/lvs.8.end new file +75 -0
75 lines not on this page · raw message
man/lvs.8.in deleted +0 -290
290 lines not on this page · raw message
man/lvscan.8.in deleted +0 -52
52 lines not on this page · raw message
man/pvchange.8.in deleted +0 -59
59 lines not on this page · raw message
man/pvcreate.8.in deleted +0 -210
210 lines not on this page · raw message
man/pvdisplay.8.in deleted +0 -109
109 lines not on this page · raw message
man/pvmove.8.des new file +61 -0
61 lines not on this page · raw message
man/pvmove.8.end new file +46 -0
46 lines not on this page · raw message
man/pvmove.8.in deleted +0 -187
187 lines not on this page · raw message
man/pvresize.8.in deleted +0 -56
56 lines not on this page · raw message
man/pvs.8.in deleted +0 -153
153 lines not on this page · raw message
man/pvscan.8.des new file +105 -0
105 lines not on this page · raw message
man/pvscan.8.in deleted +0 -178
178 lines not on this page · raw message
man/see_also.end new file +67 -0
67 lines not on this page · raw message
man/vgcfgrestore.8.in deleted +0 -58
58 lines not on this page · raw message
man/vgchange.8.in deleted +0 -346
346 lines not on this page · raw message
man/vgconvert.8.in deleted +0 -48
48 lines not on this page · raw message
man/vgcreate.8.in deleted +0 -187
187 lines not on this page · raw message
man/vgdisplay.8.in deleted +0 -123
123 lines not on this page · raw message
man/vgextend.8.in deleted +0 -71
71 lines not on this page · raw message
man/vgimportclone.8.in deleted +0 -46
46 lines not on this page · raw message
man/vgmerge.8.in deleted +0 -41
41 lines not on this page · raw message
man/vgreduce.8.in deleted +0 -49
49 lines not on this page · raw message
man/vgremove.8.in deleted +0 -46
46 lines not on this page · raw message
man/vgrename.8.in deleted +0 -58
58 lines not on this page · raw message
man/vgs.8.in deleted +0 -161
161 lines not on this page · raw message
man/vgscan.8.in deleted +0 -43
43 lines not on this page · raw message
man/vgsplit.8.in deleted +0 -80
80 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.