summaryrefslogtreecommitdiffstats
path: root/tools/commands.h
Commit message (Collapse)AuthorAgeFilesLines
...
* Add a [--poll {y|n}] flag to vgchange and lvchange to control whetherMike Snitzer2010-01-051-3/+5
| | | | | | | | | | | | | | | | | | | | | | 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>
* Document --all option in man pages, cleanup {pv|vg|lv}{s|display} man pages.Dave Wysochanski2009-10-261-14/+14
| | | | | | | Option --all is only partially documented currently, so document in all commands. Also make {pv|vg|lv}{display|s} man pages consistent with help output. Remove ununsed 'disk_ARG' parameter. Leave --trustcache out of the man page output. Update --units argument to show all possible units.
* Add --pvmetadatacopies as a synonym for --metadatacopies in various commands.Dave Wysochanski2009-10-051-8/+10
| | | | | | | | | | | | | | | | | | | | | | | Going forward, we would like to allow users to specify the total number of metadatacopies in a VG rather than on a per-PV basis. In order to facilitate that, introduce --pvmetadatacopes to replace --metadatacopies everywhere. We still allow --metadatacopies for pv commands, but require --pvmetadatacopies for vg commands. Eventually we will introduce --vgmetadatacopies. Once we do that, we should either deprecate --metadatacopies or make it a synonym based on the command (pvmetadatacopies for pv commands, and vgmetadatacopies for vg commands). The latter option would likely just require a simple 'strncpy' check against cmd->command->name to qualify the merge_synonym call. Update nightly tests to cover the pvmetadatacopies synonym. Note that this patch is the result of an eariler review comment for the implicit pvcreate patches. Should apply cleanly on top of the implicit pvcreate patches (I applied after patch 10/10 in that series). NOTE: This patch will require --pvmetadatacopies for vgconvert as --metadatacopies is no longer accepted.
* Update help messages for vgextend / vgcreate to mention PHYSICAL DEVICE OPTIONS.Dave Wysochanski2009-10-051-1/+3
|
* Add implicit pvcreate support to vgcreate and vgextend.Dave Wysochanski2009-10-051-2/+7
| | | | | | Adds implicit pvcreate support when calling vgcreate or vgextend with device paths that are not yet PVs. This changes the behavior of vgcreate and vgextend from failing with an error message to implicitly pvcreating.
* Add --noudevsync option for relevant LVM tools.Peter Rajnoha2009-08-041-20/+35
|
* Add --dataalignmentoffset to pvcreate to shift start of aligned data areaMike Snitzer2009-07-301-3/+4
| | | | | | | | Adds pe_align_offset to 'struct physical_volume'; is initialized with set_pe_align_offset(). After pe_start is established pe_align_offset is added to it. Signed-off-by: Mike Snitzer <snitzer@redhat.com>
* Allow commandline sizes to be specified in terms of bytes and sectors.Mike Snitzer2009-07-061-13/+13
| | | | Update the man pages to document size units uniformly.
* pre-release tidy upAlasdair Kergon2009-06-301-0/+2
|
* Use lvconvert --repair instead of vgreduce in mirror dmeventd DSO (mornfall)Milan Broz2009-06-041-2/+2
| | | | Introduce lvconvert --use_policies (mornfall)
* Make --snapshot optional with lvcreate --virtualsize.Alasdair Kergon2009-05-271-4/+5
| | | | Generalise --virtualoriginsize to --virtualsize.
* Add sparse devices: lvcreate -s --virtualoriginsize (hidden zero origin).Alasdair Kergon2009-04-251-2/+4
| | | | | | | | Add lvs origin_size field. Fix linux configure --enable-debug to exclude -O2. Still a few rough edges, but hopefully usable now: lvcreate -s vg1 -L 100M --virtualoriginsize 1T
* Implement, test and document (first iteration of) lvconvert --repair.Petr Rockai2009-04-231-1/+3
|
* Enable use of cached metadata for pvs & pvdisplay.Milan Broz2009-04-081-2/+2
| | | | | | | | | | | | Currently PV commands, which performs full device scan, repeatly re-reads PVs and scans for all devices. This behaviour can lead to OOM for large VG. This patch allows using internal metadata cache for pvs & pvdisplay, so the commands scan the PVs only once. (We have to use VG_GLOBAL otherwise cache is invalidated on every VG unlock in process_single PV call.)
* Add --dataalignment to pvcreate to specify alignment of data area. (mbroz)Alasdair Kergon2009-02-221-3/+4
| | | | | | | | | | | | | | | | | | This patch is not fully tested and leaves some related bugs unfixed. Intended behaviour of the code now: pe_start in the lvm2 format PV label header is set only by pvcreate (or vgconvert -M2) and then preserved in *all* operations thereafter. In some specialist cases, after the PV is added to a VG, the pe_start field in the VG metadata may hold a different value and if so, it overrides the other one for as long as the PV is in such a VG. Currently, the field storing the size of the data area in the PV label header always holds 0. As it only has meaning in the context of a volume group, it is calculated whenever the PV is added to a VG (and can be derived from extent_size and pe_count in the VG metadata).
* Add "--refresh" functionality to vgchange and vgmknodes.Peter Rajnoha2008-12-221-2/+5
|
* .Alasdair Kergon2008-09-191-2/+2
|
* Improve the way VGs with PVs missing are handled so manual interventionAlasdair Kergon2008-09-191-1/+3
| | | | is required in fewer circumstances. (mornfall)
* Add --rows to reports.Alasdair Kergon2008-06-241-5/+8
|
* Add --unquoted to reporting tools.Alasdair Kergon2008-06-241-3/+7
|
* Add --force to lvextend and lvresize.Alasdair Kergon2008-06-121-5/+8
|
* post-releaseAlasdair Kergon2008-06-061-7/+10
|
* back out unnecessary changes for this releaseAlasdair Kergon2008-06-061-6/+3
|
* post-release - reinstate incomplete enhancementsAlasdair Kergon2008-04-291-3/+6
|
* pre-release (bug fixes only - enhancements excluded)Alasdair Kergon2008-04-291-6/+3
|
* Add --prefixes to reporting tools for field name prefix output format.Alasdair Kergon2008-04-201-6/+11
| | | | | | E.g. lvs --prefixes --noheadings --unbuffered --units m --nosuffix (Used '--prefixes' for now, but I'm looking for a better name.)
* Update vgsplit to take "-n LogicalVolumeName" on the commandline.Dave Wysochanski2008-04-091-2/+3
|
* Add per-command flags to control which commands use the VG metadata cache.Alasdair Kergon2008-04-021-0/+48
|
* Fix vgsplit - print error if vgcreate option given w/existing vg destinationDave Wysochanski2008-01-221-3/+2
| | | | | | Fix vgsplit - reject split if metadata types or clustered attributes differ Fix vgsplit - remove physicalextentsize option Add vgsplit test cases
* Remove unused 'list' param from vgsplit - conflict with maxlogicalvolumes param.Dave Wysochanski2008-01-161-2/+1
| | | | | | | | | | | Initialize lvm command getopt buffer to zero before building options string. Bugzilla: bz251992 --- man/vgsplit.8 | 3 +-- tools/commands.h | 3 +-- tools/lvmcmdline.c | 1 + 3 files changed, 3 insertions(+), 4 deletions(-)
* Allow vgcreate options as input to vgsplit when new vg is split destination.Dave Wysochanski2008-01-141-2/+9
|
* lvconvert uses polldaemon nowAlasdair Kergon2007-12-221-2/+4
|
* Enhance the management of readahead settings.Alasdair Kergon2007-11-091-3/+3
|
* Add %PVS extents option to lvresize, lvextend, and lvcreate.Dave Wysochanski2007-09-201-3/+3
|
* Modify lvremove to prompt for removal if LV active on other cluster nodes.Dave Wysochanski2007-08-281-1/+2
| | | | | Add '-f' to vgremove to force removal of VG even if LVs exist. Update vgremove man page for '-f'.
* Clean up mirrorlog argument processing.Alasdair Kergon2007-08-211-7/+7
| | | | Only permit --force, --verbose and --debug arguments to be repeated.
* Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.Alasdair Kergon2007-08-201-3/+3
|
* - change new log_ARG variable to more explicit mirrorlog_ARG.Jonathan Earl Brassow2007-08-091-2/+2
|
* This patch changes the arguments that specify the mirrorJonathan Earl Brassow2007-08-011-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | log type. Previously, we had a '--corelog' argument that would change the default type from 'disk' to 'core'. I think that creates too much confusion - especially when doing conversions on mirrors. The new argument '--log' takes either "disk" or "core" as a parameter. This could be expanded in the future for additional logging types as well. Examples: # Creating a 2-way mirror $> lvcreate -m1 ... # implicitly use default disk logging $> lvcreate -m1 --log disk ... # explicit disk logging $> lvcreate -m1 --log core ... # specify core logging $> lvcreate -m1 --corelog ... # old way still works # Conversion examples $> lvconvert --log core ... # convert to core logging $> lvconvert --log disk ... # convert to disk logging $> lvconvert -mX --corelog ... # old way still works $> lvconvert -mX ... # old way of converting to disk logging still works Changes are reflected in the man pages.
* Add --ignoremonitoring to disable all dmeventd interaction.Alasdair Kergon2007-06-181-6/+8
|
* Update pvck to read labels on disk, with flexible --labelsectorDave Wysochanski2007-04-251-1/+4
| | | | | | parameter. --
* Add stub for pvck, a command to check physical volume consistency.Dave Wysochanski2007-03-301-0/+9
|
* Add --clustered to man pages.Alasdair Kergon2007-01-231-1/+1
|
* dumpconfig accepts a list of configuration variables to display.Alasdair Kergon2007-01-091-1/+4
| | | | Change dumpconfig to use --file to redirect output to a file.
* Add some missing bounds checks on 32 bit extent counters.Alasdair Kergon2006-11-101-12/+12
| | | | | Add Petabyte and Exabyte support. Fix lvcreate error message when 0 extents requested.
* resync alphabetical orderAlasdair Kergon2006-10-241-3/+3
|
* try forcesync -> resyncAlasdair Kergon2006-10-241-2/+2
|
* Add lvchange --forcesync.Alasdair Kergon2006-10-231-2/+5
|
* Accept regionsize with lvconvert.Alasdair Kergon2006-10-071-1/+2
|
* Add %VG, %LV and %FREE suffices to lvcreate/lvresize --extents arg.Alasdair Kergon2006-09-261-4/+4
| | | | | | e.g. lvcreate -l 100%FREE to create an LV using all available space. lvextend -l 50%LV to increase an LV by 50% of its existing size. lvcreate -l 20%VG to create an LV using 20% of the total VG size.