This is LVM2, the rewrite of The Linux Logical Volume Manager. LVM supports enterprise level volume management of disk and disk subsystems by grouping arbitrary disks into volume groups. The total capacity of volume groups can be allocated to logical volumes, which are accessed as regular block devices.
Dependências: dmeventd, dmsetup, libaio1t64, libblkid1, libc6, libdevmapper-event1.02.1, libedit2, libselinux1, libsystemd0, libudev1
fsadm
Utility to resize or check filesystem on a device
root@kali:~# fsadm -h
fsadm: Utility to resize or check the filesystem on a device
fsadm [options] check <device>
- Check the filesystem on device using fsck
fsadm [options] resize <device> [<new_size>[BKMGTPE]]
- Change the size of the filesystem on device to new_size
Options:
-h | --help Show this help message
-v | --verbose Be verbose
-e | --ext-offline unmount filesystem before ext2/ext3/ext4 resize
-f | --force Bypass sanity checks
-n | --dry-run Print commands without running them
-l | --lvresize Resize given device (if it is LVM device)
-c | --cryptresize Resize given crypt device
-y | --yes Answer "yes" at any prompts
new_size - Absolute number of filesystem blocks to be in the filesystem,
or an absolute size using a suffix (in powers of 1024).
If new_size is not supplied, the whole device is used.
lvchange
Change the attributes of logical volume(s)
root@kali:~# lvchange -h
lvchange - Change the attributes of logical volume(s)
Change a general LV attribute.
For options listed in parentheses, any one is
required, after which the others are optional.
lvchange
( -C|--contiguous y|n,
-p|--permission rw|r,
-r|--readahead auto|none|Number,
-k|--setactivationskip y|n,
-Z|--zero y|n,
-M|--persistent n,
--addtag Tag,
--deltag Tag,
--alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit,
--compression y|n,
--deduplication y|n,
--detachprofile,
--metadataprofile String,
--profile String,
--setautoactivation y|n,
--errorwhenfull y|n,
--discards passdown|nopassdown|ignore,
--cachemode writethrough|writeback|passthrough,
--cachepolicy String,
--cachesettings String,
--minrecoveryrate Size[k|UNIT],
--maxrecoveryrate Size[k|UNIT],
--vdosettings String,
--integritysettings String,
--writebehind Number,
--writemostly PV[:t|n|y] )
VG|LV|Tag|Select ...
[ -a|--activate y|n|ay ]
[ --poll y|n ]
[ --monitor y|n ]
[ COMMON_OPTIONS ]
Resynchronize a mirror or raid LV.
Use to reset 'R' attribute on a not initially synchronized LV.
lvchange --resync VG|LV|Tag|Select ...
[ -a|--activate y|n|ay ]
[ COMMON_OPTIONS ]
Resynchronize or check a raid LV.
lvchange --syncaction check|repair VG|LV|Tag|Select ...
[ COMMON_OPTIONS ]
Reconstruct data on specific PVs of a raid LV.
lvchange --rebuild PV VG|LV|Tag|Select ...
[ COMMON_OPTIONS ]
Activate or deactivate an LV.
lvchange -a|--activate y|n|ay VG|LV|Tag|Select ...
[ -P|--partial ]
[ -K|--ignoreactivationskip ]
[ --activationmode partial|degraded|complete ]
[ --poll y|n ]
[ --monitor y|n ]
[ --ignorelockingfailure ]
[ --sysinit ]
[ --readonly ]
[ COMMON_OPTIONS ]
Reactivate an LV using the latest metadata.
lvchange --refresh VG|LV|Tag|Select ...
[ -P|--partial ]
[ --activationmode partial|degraded|complete ]
[ --poll y|n ]
[ --monitor y|n ]
[ COMMON_OPTIONS ]
Start or stop monitoring an LV from dmeventd.
lvchange --monitor y|n VG|LV|Tag|Select ...
[ COMMON_OPTIONS ]
Start or stop processing an LV conversion.
lvchange --poll y|n VG|LV|Tag|Select ...
[ --monitor y|n ]
[ COMMON_OPTIONS ]
Make the minor device number persistent for an LV.
lvchange -M|--persistent y --minor Number LV
[ -j|--major Number ]
[ -a|--activate y|n|ay ]
[ --poll y|n ]
[ --monitor y|n ]
[ COMMON_OPTIONS ]
Common options for command:
[ -A|--autobackup y|n ]
[ -f|--force ]
[ -S|--select String ]
[ --ignoremonitoring ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvconvert
Change logical volume layout
root@kali:~# lvconvert -h
lvconvert - Change logical volume layout
Convert LV to linear.
lvconvert --type linear LV
[ COMMON_OPTIONS ]
[ PV ... ]
Convert LV to striped.
lvconvert --type striped LV
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ -i|--interval Number ]
[ --stripes Number ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert LV to type mirror (also see type raid1),
lvconvert --type mirror LV
[ -m|--mirrors [+|-]Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ -i|--interval Number ]
[ --stripes Number ]
[ --mirrorlog core|disk ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert LV to raid or change raid layout
(a specific raid level must be used, e.g. raid1).
lvconvert --type raid LV
[ -m|--mirrors [+|-]Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ -i|--interval Number ]
[ --stripes Number ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert LV to raid1 or mirror, or change number of mirror images.
lvconvert -m|--mirrors [+|-]Number LV
[ -R|--regionsize Size[m|UNIT] ]
[ -i|--interval Number ]
[ --mirrorlog core|disk ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert raid LV to change number of stripe images.
lvconvert --stripes Number LV
[ -i|--interval Number ]
[ -R|--regionsize Size[m|UNIT] ]
[ -I|--stripesize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert raid LV to change the stripe size.
lvconvert -I|--stripesize Size[k|UNIT] LV
[ -i|--interval Number ]
[ -R|--regionsize Size[m|UNIT] ]
[ COMMON_OPTIONS ]
Split images from a raid1 or mirror LV and use them to create a new LV.
lvconvert --splitmirrors Number -n|--name LV_new LV
[ COMMON_OPTIONS ]
[ PV ... ]
Split images from a raid1 LV and track changes to origin for later merge.
lvconvert --splitmirrors Number --trackchanges LV
[ COMMON_OPTIONS ]
[ PV ... ]
Merge LV images that were split from a raid1 LV.
lvconvert --mergemirrors VG|LV|Tag ...
[ COMMON_OPTIONS ]
Convert LV to a thin LV, using the original LV as an external origin.
lvconvert --type thin --thinpool LV LV
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ -r|--readahead auto|none|Number ]
[ -W|--wipesignatures y|n ]
[ -Z|--zero y|n ]
[ --originname LV_new ]
[ --poolmetadata LV ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --metadataprofile String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert LV to a thin LV, using LV as thin-pool data volume.
lvconvert --type thin LV
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ -r|--readahead auto|none|Number ]
[ -W|--wipesignatures y|n ]
[ -Z|--zero y|n ]
[ --poolmetadata LV ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --metadataprofile String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Attach a cache pool to an LV, converts the LV to type cache.
lvconvert --type cache --cachepool LV LV
[ -H|--cache ]
[ -Z|--zero y|n ]
[ -c|--chunksize Size[k|UNIT] ]
[ -r|--readahead auto|none|Number ]
[ -W|--wipesignatures y|n ]
[ --cachemetadataformat auto|1|2 ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --poolmetadata LV ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --metadataprofile String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Attach a writecache to an LV, converts the LV to type writecache.
lvconvert --type writecache --cachevol LV LV
[ --cachesettings String ]
[ COMMON_OPTIONS ]
Attach a cache to an LV, converts the LV to type cache.
lvconvert --type cache --cachevol LV LV
[ -H|--cache ]
[ -Z|--zero y|n ]
[ -c|--chunksize Size[k|UNIT] ]
[ --cachemetadataformat auto|1|2 ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --poolmetadatasize Size[m|UNIT] ]
[ COMMON_OPTIONS ]
Add a writecache to an LV, using a specified cache device.
lvconvert --type writecache --cachedevice PV LV
[ --cachesize Size[m|UNIT] ]
[ --cachesettings String ]
[ COMMON_OPTIONS ]
Add a cache to an LV, using a specified cache device.
lvconvert --type cache --cachedevice PV LV
[ -c|--chunksize Size[k|UNIT] ]
[ --cachesize Size[m|UNIT] ]
[ --cachesettings String ]
[ COMMON_OPTIONS ]
Convert LV to type thin-pool.
lvconvert --type thin-pool LV
[ -I|--stripesize Size[k|UNIT] ]
[ -c|--chunksize Size[k|UNIT] ]
[ -r|--readahead auto|none|Number ]
[ -W|--wipesignatures y|n ]
[ -Z|--zero y|n ]
[ --stripes Number ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ --pooldatavdo y|n ]
[ --compression y|n ]
[ --deduplication y|n ]
[ --vdosettings String ]
[ --poolmetadata LV ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --metadataprofile String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert LV to type cache-pool.
lvconvert --type cache-pool LV
[ -Z|--zero y|n ]
[ -c|--chunksize Size[k|UNIT] ]
[ -r|--readahead auto|none|Number ]
[ -W|--wipesignatures y|n ]
[ --cachemetadataformat auto|1|2 ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --poolmetadata LV ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ --metadataprofile String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Convert LV to type vdopool.
lvconvert --type vdo-pool LV
[ -n|--name LV_new ]
[ -V|--virtualsize Size[m|UNIT] ]
[ -r|--readahead auto|none|Number ]
[ -W|--wipesignatures y|n ]
[ -Z|--zero y|n ]
[ --compression y|n ]
[ --deduplication y|n ]
[ --vdosettings String ]
[ --metadataprofile String ]
[ COMMON_OPTIONS ]
Detach a cache from an LV.
lvconvert --splitcache LV
[ --cachesettings String ]
[ COMMON_OPTIONS ]
Merge thin LV into its origin LV.
lvconvert --mergethin LV ...
[ COMMON_OPTIONS ]
Merge COW snapshot LV into its origin.
lvconvert --mergesnapshot LV ...
[ -i|--interval Number ]
[ COMMON_OPTIONS ]
Combine a former COW snapshot (second arg) with a former
origin LV (first arg) to reverse a splitsnapshot command.
lvconvert --type snapshot LV LV
[ -s|--snapshot ]
[ -c|--chunksize Size[k|UNIT] ]
[ -Z|--zero y|n ]
[ COMMON_OPTIONS ]
Replace failed PVs in a raid or mirror LV.
Repair a thin pool.
Repair a cache pool.
lvconvert --repair LV
[ -i|--interval Number ]
[ -k|--setactivationskip y|n ]
[ --usepolicies ]
[ --poolmetadataspare y|n ]
[ COMMON_OPTIONS ]
[ PV ... ]
Replace specific PV(s) in a raid LV with another PV.
lvconvert --replace PV LV
[ COMMON_OPTIONS ]
[ PV ... ]
Poll LV to continue conversion.
lvconvert --startpoll LV
[ COMMON_OPTIONS ]
Add or remove data integrity checksums to raid images.
lvconvert --raidintegrity y|n LV
[ --raidintegritymode String ]
[ --raidintegrityblocksize Number ]
[ --integritysettings String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Common options for command:
[ -b|--background ]
[ -f|--force ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --noudevsync ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvcreate
Create a logical volume
root@kali:~# lvcreate -h
lvcreate - Create a logical volume
Create a linear LV.
lvcreate -L|--size Size[m|UNIT] VG
[ --type linear ] (implied)
[ -l|--extents Number[PERCENT] ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a striped LV.
lvcreate -i|--stripes Number -L|--size Size[m|UNIT] VG
[ --type striped ] (implied)
[ -l|--extents Number[PERCENT] ]
[ -I|--stripesize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a raid1 or mirror LV.
lvcreate -m|--mirrors Number -L|--size Size[m|UNIT] VG
[ --type raid1|mirror ] (implied)
[ -l|--extents Number[PERCENT] ]
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ --mirrorlog core|disk ]
[ --minrecoveryrate Size[k|UNIT] ]
[ --maxrecoveryrate Size[k|UNIT] ]
[ --raidintegrity y|n ]
[ --raidintegritymode String ]
[ --raidintegrityblocksize Number ]
[ --integritysettings String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a raid LV (a specific raid level must be used, e.g. raid1).
lvcreate --type raid -L|--size Size[m|UNIT] VG
[ -l|--extents Number[PERCENT] ]
[ -m|--mirrors Number ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ --minrecoveryrate Size[k|UNIT] ]
[ --maxrecoveryrate Size[k|UNIT] ]
[ --raidintegrity y|n ]
[ --raidintegritymode String ]
[ --raidintegrityblocksize Number ]
[ --integritysettings String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a raid10 LV.
lvcreate -m|--mirrors Number -i|--stripes Number -L|--size Size[m|UNIT] VG
[ --type raid10 ] (implied)
[ -l|--extents Number[PERCENT] ]
[ -I|--stripesize Size[k|UNIT] ]
[ -R|--regionsize Size[m|UNIT] ]
[ --minrecoveryrate Size[k|UNIT] ]
[ --maxrecoveryrate Size[k|UNIT] ]
[ --raidintegrity y|n ]
[ --raidintegritymode String ]
[ --raidintegrityblocksize Number ]
[ --integritysettings String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a COW snapshot LV of an origin LV.
lvcreate -s|--snapshot -L|--size Size[m|UNIT] LV
[ --type snapshot ] (implied)
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -c|--chunksize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a thin pool.
lvcreate --type thin-pool -L|--size Size[m|UNIT] VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -T|--thin ]
[ -c|--chunksize Size[k|UNIT] ]
[ --thinpool LV_new ]
[ --discards passdown|nopassdown|ignore ]
[ --errorwhenfull y|n ]
[ --pooldatavdo y|n ]
[ --compression y|n ]
[ --deduplication y|n ]
[ --vdosettings String ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a cache pool.
lvcreate --type cache-pool -L|--size Size[m|UNIT] VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -H|--cache ]
[ -c|--chunksize Size[k|UNIT] ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a thin LV in a thin pool.
lvcreate -V|--virtualsize Size[m|UNIT] --thinpool LV VG
[ --type thin ] (implied)
[ -T|--thin ]
[ COMMON_OPTIONS ]
Create a thin LV that is a snapshot of an existing thin LV.
lvcreate -s|--snapshot LV
[ --type thin ] (implied)
[ COMMON_OPTIONS ]
Create a thin LV that is a snapshot of an external origin LV.
lvcreate --type thin --thinpool LV LV
[ -T|--thin ]
[ COMMON_OPTIONS ]
Create a LV that returns VDO when used.
lvcreate --type vdo -L|--size Size[m|UNIT] VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -V|--virtualsize Size[m|UNIT] ]
[ --vdo ]
[ --vdopool LV_new ]
[ --compression y|n ]
[ --deduplication y|n ]
[ --vdosettings String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a new LV, then attach the specified cachepool
which converts the new LV to type cache.
lvcreate --type cache -L|--size Size[m|UNIT] --cachepool LV VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -H|--cache ]
[ -c|--chunksize Size[k|UNIT] ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ --poolmetadatasize Size[m|UNIT] ]
[ --poolmetadataspare y|n ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a new LV, then attach the specified cachevol
which converts the new LV to type cache.
lvcreate --type cache -L|--size Size[m|UNIT] --cachevol LV VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -c|--chunksize Size[k|UNIT] ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a new LV, then attach a cachevol created from
the specified cache device, which converts the
new LV to type cache.
lvcreate --type cache -L|--size Size[m|UNIT] --cachedevice PV VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -c|--chunksize Size[k|UNIT] ]
[ --cachesize Size[m|UNIT] ]
[ --cachemode writethrough|writeback|passthrough ]
[ --cachepolicy String ]
[ --cachesettings String ]
[ --cachemetadataformat auto|1|2 ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a new LV, then attach the specified cachevol
which converts the new LV to type writecache.
lvcreate --type writecache -L|--size Size[m|UNIT] --cachevol LV VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --cachesettings String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Create a new LV, then attach a cachevol created from
the specified cache device, which converts the
new LV to type writecache.
lvcreate --type writecache -L|--size Size[m|UNIT] --cachedevice PV VG
[ -l|--extents Number[PERCENT] ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --cachesize Size[m|UNIT] ]
[ --cachesettings String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Common options for command:
[ -a|--activate y|n|ay ]
[ -A|--autobackup y|n ]
[ -C|--contiguous y|n ]
[ -M|--persistent y|n ]
[ -j|--major Number ]
[ -k|--setactivationskip y|n ]
[ -K|--ignoreactivationskip ]
[ -n|--name String ]
[ -p|--permission rw|r ]
[ -r|--readahead auto|none|Number ]
[ -W|--wipesignatures y|n ]
[ -Z|--zero y|n ]
[ --addtag Tag ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --setautoactivation y|n ]
[ --ignoremonitoring ]
[ --metadataprofile String ]
[ --minor Number ]
[ --monitor y|n ]
[ --nosync ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvdisplay
Display information about a logical volume
root@kali:~# lvdisplay -h
lvdisplay - Display information about a logical volume
lvdisplay
[ -m|--maps ]
[ COMMON_OPTIONS ]
[ VG|LV|Tag ... ]
Display output in columns like lvs.
lvdisplay -C|--columns
[ -o|--options String ]
[ -O|--sort String ]
[ --aligned ]
[ --binary ]
[ --headings none|abbrev|full|0|1|2 ]
[ --nameprefixes ]
[ --noheadings ]
[ --nosuffix ]
[ --rows ]
[ --separator String ]
[ --unbuffered ]
[ --unquoted ]
[ COMMON_OPTIONS ]
[ VG|LV|Tag ... ]
Generate colon separated output.
lvdisplay -c|--colon
[ COMMON_OPTIONS ]
[ VG|LV|Tag ... ]
Common options for command:
[ -a|--all ]
[ -H|--history ]
[ -S|--select String ]
[ --configreport log|vg|lv|pv|pvseg|seg ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --logonly ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ --segments ]
[ --shared ]
[ --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvextend
Add space to a logical volume
root@kali:~# lvextend -h
lvextend - Add space to a logical volume
Extend an LV by a specified size.
lvextend -L|--size [+]Size[m|UNIT] LV
[ -l|--extents [+]Number[PERCENT] ]
[ -r|--resizefs ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --poolmetadatasize [+]Size[m|UNIT] ]
[ --fs String ]
[ --fsmode String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Extend an LV by specified PV extents.
lvextend LV PV ...
[ -r|--resizefs ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ --fs String ]
[ --fsmode String ]
[ COMMON_OPTIONS ]
Extend a pool metadata SubLV by a specified size.
lvextend --poolmetadatasize [+]Size[m|UNIT] LV
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ COMMON_OPTIONS ]
[ PV ... ]
Extend an LV according to a predefined policy.
lvextend --usepolicies LV
[ -r|--resizefs ]
[ --fs String ]
[ --fsmode String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Common options for command:
[ -A|--autobackup y|n ]
[ -f|--force ]
[ -m|--mirrors Number ]
[ -n|--nofsck ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --nosync ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ --type linear|striped|snapshot|raid|mirror|thin|thin-pool|vdo|vdo-pool|cache|cache-pool|writecache ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvm
LVM tools
root@kali:~# lvm -h
Available lvm commands:
Use 'lvm help <command>' for more information
config Display and manipulate configuration information
devtypes Display recognised built-in block device types
dumpconfig Display and manipulate configuration information
formats List available metadata formats
fullreport Display full report
help Display help for commands
lastlog Display last command's log report
lvchange Change the attributes of logical volume(s)
lvconvert Change logical volume layout
lvcreate Create a logical volume
lvdisplay Display information about a logical volume
lvextend Add space to a logical volume
lvmchange With the device mapper, this is obsolete and does nothing.
lvmconfig Display and manipulate configuration information
lvmdevices Manage the devices file
lvmdiskscan List devices that may be used as physical volumes
lvmsadc Collect activity data
lvmsar Create activity report
lvpoll Continue already initiated poll operation on a logical volume
lvreduce Reduce the size of a logical volume
lvremove Remove logical volume(s) from the system
lvrename Rename a logical volume
lvresize Resize a logical volume
lvs Display information about logical volumes
lvscan List all logical volumes in all volume groups
pvchange Change attributes of physical volume(s)
pvck Check metadata on physical volumes
pvcreate Initialize physical volume(s) for use by LVM
pvdata Display the on-disk metadata for physical volume(s)
pvdisplay Display various attributes of physical volume(s)
pvmove Move extents from one physical volume to another
pvremove Remove LVM label(s) from physical volume(s)
pvresize Resize physical volume(s)
pvs Display information about physical volumes
pvscan List all physical volumes
segtypes List available segment types
systemid Display the system ID, if any, currently set on this host
tags List tags defined on this host
version Display software and driver version information
vgcfgbackup Backup volume group configuration(s)
vgcfgrestore Restore volume group configuration
vgchange Change volume group attributes
vgck Check the consistency of volume group(s)
vgconvert Change volume group metadata format
vgcreate Create a volume group
vgdisplay Display volume group information
vgexport Unregister volume group(s) from the system
vgextend Add physical volumes to a volume group
vgimport Register exported volume group with system
vgimportclone Import a VG from cloned PVs
vgimportdevices Add devices for a VG to the devices file.
vgmerge Merge volume groups
vgmknodes Create the special files for volume group devices in /dev
vgreduce Remove physical volume(s) from a volume group
vgremove Remove volume group(s)
vgrename Rename a volume group
vgs Display information about volume groups
vgscan Search for all volume groups
vgsplit Move physical volumes into a new or existing volume group
lvmconfig
Display and manipulate configuration information
root@kali:~# lvmconfig -h
lvmconfig - Display and manipulate configuration information
lvmconfig
[ -f|--file String ]
[ -l|--list ]
[ --atversion String ]
[ --typeconfig current|default|diff|full|list|missing|new|profilable|profilable-command|profilable-metadata ]
[ --ignoreadvanced ]
[ --ignoreunsupported ]
[ --ignorelocal ]
[ --mergedconfig ]
[ --metadataprofile String ]
[ --sinceversion String ]
[ --showdeprecated ]
[ --showunsupported ]
[ --validate ]
[ --valuesonly ]
[ --withsummary ]
[ --withcomments ]
[ --withgeneralpreamble ]
[ --withlocalpreamble ]
[ --withspaces ]
[ --unconfigured ]
[ --withversions ]
[ COMMON_OPTIONS ]
[ String ... ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvmdiskscan
List devices that may be used as physical volumes
root@kali:~# lvmdiskscan -h
lvmdiskscan - List devices that may be used as physical volumes
lvmdiskscan
[ -l|--lvmpartition ]
[ --readonly ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvmdump
Create lvm2 information dumps for diagnostic purposes
root@kali:~# lvmdump --help
/usr/sbin/lvmdump: unknown option -
/usr/sbin/lvmdump [options]
-h print this message
-a advanced collection - warning: if lvm is already hung,
then this script may hang as well if -a is used
-c if running clvmd, gather cluster data as well
-d <directory> dump into a directory instead of tarball
-l gather lvmetad state if running
-p gather lvmpolld state if running
-m gather LVM metadata from the PVs
-s gather system info and context
-u gather udev info and context
lvmpolld
LVM poll daemon
root@kali:~# lvmpolld -h
Usage:
lvmpolld [-V] [-h] [-f] [-l {all|wire|debug}] [-s path] [-B path] [-p path] [-t secs]
lvmpolld --dump [-s path]
-V|--version Show version info
-h|--help Show this help information
-f|--foreground Don't fork, run in the foreground
--dump Dump full lvmpolld state
-l|--log Logging message level (-l {all|wire|debug})
-p|--pidfile Set path to the pidfile
-s|--socket Set path to the communication socket
-B|--binary Path to lvm2 binary
-t|--timeout Time to wait in seconds before shutdown on idle (missing or 0 = infinite)
lvmsadc
LVM system activity data collector
root@kali:~# lvmsadc -h
lvmsadc - Collect activity data
lvmsadc
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvmsar
LVM system activity reporter
root@kali:~# lvmsar -h
lvmsar - Create activity report
lvmsar
[ -f|--full ]
[ -s|--stdin ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvreduce
Reduce the size of a logical volume
root@kali:~# lvreduce -h
lvreduce - Reduce the size of a logical volume
lvreduce -L|--size [-]Size[m|UNIT] LV
[ -l|--extents [-]Number[PERCENT] ]
[ -A|--autobackup y|n ]
[ -f|--force ]
[ -n|--nofsck ]
[ -r|--resizefs ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ --fs String ]
[ --fsmode String ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvremove
Remove logical volume(s) from the system
root@kali:~# lvremove -h
lvremove - Remove logical volume(s) from the system
lvremove VG|LV|Tag|Select ...
[ -A|--autobackup y|n ]
[ -f|--force ]
[ -S|--select String ]
[ --nohistory ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvrename
Rename a logical volume
root@kali:~# lvrename -h
lvrename - Rename a logical volume
lvrename VG LV LV_new
[ COMMON_OPTIONS ]
lvrename LV LV_new
[ COMMON_OPTIONS ]
Common options for command:
[ -A|--autobackup y|n ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvresize
Resize a logical volume
root@kali:~# lvresize -h
lvresize - Resize a logical volume
Resize an LV by a specified size.
lvresize -L|--size [+|-]Size[m|UNIT] LV
[ -l|--extents [+|-]Number[PERCENT] ]
[ -r|--resizefs ]
[ --poolmetadatasize [+]Size[m|UNIT] ]
[ --fs String ]
[ --fsmode String ]
[ COMMON_OPTIONS ]
[ PV ... ]
Resize an LV by specified PV extents.
lvresize LV PV ...
[ -r|--resizefs ]
[ --fs String ]
[ --fsmode String ]
[ COMMON_OPTIONS ]
Resize a pool metadata SubLV by a specified size.
lvresize --poolmetadatasize [+]Size[m|UNIT] LV
[ COMMON_OPTIONS ]
[ PV ... ]
Common options for command:
[ -A|--autobackup y|n ]
[ -f|--force ]
[ -i|--stripes Number ]
[ -I|--stripesize Size[k|UNIT] ]
[ -n|--nofsck ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --nosync ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ --type linear|striped|snapshot|raid|mirror|thin|thin-pool|vdo|vdo-pool|cache|cache-pool|writecache ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvs
Display information about logical volumes
root@kali:~# lvs -h
lvs - Display information about logical volumes
lvs
[ -H|--history ]
[ -S|--select String ]
[ -a|--all ]
[ -o|--options String ]
[ -O|--sort String ]
[ --segments ]
[ --configreport log|vg|lv|pv|pvseg|seg ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --logonly ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ --shared ]
[ --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
[ --aligned ]
[ --binary ]
[ --headings none|abbrev|full|0|1|2 ]
[ --nameprefixes ]
[ --noheadings ]
[ --nosuffix ]
[ --rows ]
[ --separator String ]
[ --unbuffered ]
[ --unquoted ]
[ COMMON_OPTIONS ]
[ VG|LV|Tag ... ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
lvscan
List all logical volumes in all volume groups
root@kali:~# lvscan -h
lvscan - List all logical volumes in all volume groups
lvscan
[ -a|--all ]
[ -b|--blockdevice ]
[ --ignorelockingfailure ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvchange
Change attributes of physical volume(s)
root@kali:~# pvchange -h
pvchange - Change attributes of physical volume(s)
Change properties of all PVs.
pvchange -a|--all
( -x|--allocatable y|n,
-u|--uuid,
--addtag Tag,
--deltag Tag,
--metadataignore y|n )
[ COMMON_OPTIONS ]
Change properties of specified PVs.
pvchange
( -x|--allocatable y|n,
-u|--uuid,
--addtag Tag,
--deltag Tag,
--metadataignore y|n )
PV|Select ...
[ -S|--select String ]
[ COMMON_OPTIONS ]
Common options for command:
[ -A|--autobackup y|n ]
[ -f|--force ]
[ -u|--uuid ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvck
Check metadata on physical volumes
root@kali:~# pvck -h
pvck - Check metadata on physical volumes
Check for metadata on a device
pvck PV ...
[ COMMON_OPTIONS ]
Check and print LVM headers and metadata on a device
pvck --dump headers|metadata|metadata_all|metadata_search PV
[ -f|--file String ]
[ --settings String ]
[ --pvmetadatacopies 0|1|2 ]
[ COMMON_OPTIONS ]
Repair LVM headers or metadata on a device
pvck --repairtype pv_header|metadata|label_header PV
[ -f|--file String ]
[ --settings String ]
[ COMMON_OPTIONS ]
Repair LVM headers and metadata on a device
pvck --repair -f|--file String PV
[ --settings String ]
[ COMMON_OPTIONS ]
Common options for command:
[ --labelsector Number ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvcreate
Initialize physical volume(s) for use by LVM
root@kali:~# pvcreate -h
pvcreate - Initialize physical volume(s) for use by LVM
pvcreate PV ...
[ -f|--force ]
[ -M|--metadatatype lvm2 ]
[ -u|--uuid String ]
[ -Z|--zero y|n ]
[ --dataalignment Size[k|UNIT] ]
[ --dataalignmentoffset Size[k|UNIT] ]
[ --bootloaderareasize Size[m|UNIT] ]
[ --labelsector Number ]
[ --pvmetadatacopies 0|1|2 ]
[ --metadatasize Size[m|UNIT] ]
[ --metadataignore y|n ]
[ --norestorefile ]
[ --setphysicalvolumesize Size[m|UNIT] ]
[ --reportformat basic|json|json_std ]
[ --restorefile String ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvdisplay
Display various attributes of physical volume(s)
root@kali:~# pvdisplay -h
pvdisplay - Display various attributes of physical volume(s)
pvdisplay
[ -m|--maps ]
[ -s|--short ]
[ COMMON_OPTIONS ]
[ PV|Tag ... ]
Display output in columns like pvs.
pvdisplay -C|--columns
[ -a|--all ]
[ -o|--options String ]
[ -O|--sort String ]
[ --aligned ]
[ --binary ]
[ --headings none|abbrev|full|0|1|2 ]
[ --nameprefixes ]
[ --noheadings ]
[ --nosuffix ]
[ --rows ]
[ --separator String ]
[ --unbuffered ]
[ --unquoted ]
[ COMMON_OPTIONS ]
[ PV|Tag ... ]
Generate colon separated output.
pvdisplay -c|--colon
[ COMMON_OPTIONS ]
[ PV|Tag ... ]
Common options for command:
[ -S|--select String ]
[ --configreport log|vg|lv|pv|pvseg|seg ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --logonly ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ --segments ]
[ --shared ]
[ --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvmove
Move extents from one physical volume to another
root@kali:~# pvmove -h
pvmove - Move extents from one physical volume to another
Move PV extents.
pvmove PV
[ -A|--autobackup y|n ]
[ -n|--name LV ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --atomic ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ PV ... ]
Continue or abort existing pvmove operations.
pvmove
[ COMMON_OPTIONS ]
Common options for command:
[ -b|--background ]
[ -i|--interval Number ]
[ --abort ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvremove
Remove LVM label(s) from physical volume(s)
root@kali:~# pvremove -h
pvremove - Remove LVM label(s) from physical volume(s)
pvremove PV ...
[ -f|--force ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvresize
Resize physical volume(s)
root@kali:~# pvresize -h
pvresize - Resize physical volume(s)
pvresize PV ...
[ --setphysicalvolumesize Size[m|UNIT] ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvs
Display information about physical volumes
root@kali:~# pvs -h
pvs - Display information about physical volumes
pvs
[ -A|--allpvs ]
[ -S|--select String ]
[ -a|--all ]
[ -o|--options String ]
[ -O|--sort String ]
[ --segments ]
[ --configreport log|vg|lv|pv|pvseg|seg ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --logonly ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ --shared ]
[ --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
[ --aligned ]
[ --binary ]
[ --headings none|abbrev|full|0|1|2 ]
[ --nameprefixes ]
[ --noheadings ]
[ --nosuffix ]
[ --rows ]
[ --separator String ]
[ --unbuffered ]
[ --unquoted ]
[ COMMON_OPTIONS ]
[ PV|Tag ... ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
pvscan
List all physical volumes
root@kali:~# pvscan -h
pvscan - List all physical volumes
Display PV information.
pvscan
[ -e|--exported ]
[ -n|--novolumegroup ]
[ -s|--short ]
[ -u|--uuid ]
[ -A|--allpvs ]
[ --ignorelockingfailure ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Record that a PV is online or offline.
pvscan --cache
[ -j|--major Number ]
[ --ignorelockingfailure ]
[ --reportformat basic|json|json_std ]
[ --minor Number ]
[ --noudevsync ]
[ COMMON_OPTIONS ]
[ String|PV ... ]
Record that a PV is online and autoactivate the VG if complete.
pvscan --cache -a|--activate ay
[ -j|--major Number ]
[ --ignorelockingfailure ]
[ --reportformat basic|json|json_std ]
[ --minor Number ]
[ --noudevsync ]
[ --autoactivation String ]
[ COMMON_OPTIONS ]
[ String|PV ... ]
Record that a PV is online and list the VG using the PV.
pvscan --cache --listvg PV
[ --ignorelockingfailure ]
[ --checkcomplete ]
[ --vgonline ]
[ --udevoutput ]
[ --autoactivation String ]
[ COMMON_OPTIONS ]
Record that a PV is online and list LVs using the PV.
pvscan --cache --listlvs PV
[ --ignorelockingfailure ]
[ --checkcomplete ]
[ --vgonline ]
[ COMMON_OPTIONS ]
List LVs using the PV.
pvscan --listlvs PV
[ COMMON_OPTIONS ]
List the VG using the PV.
pvscan --listvg PV
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgcfgbackup
Backup volume group configuration(s)
root@kali:~# vgcfgbackup -h
vgcfgbackup - Backup volume group configuration(s)
vgcfgbackup
[ -f|--file String ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG ... ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgcfgrestore
Restore volume group configuration
root@kali:~# vgcfgrestore -h
vgcfgrestore - Restore volume group configuration
Restore VG metadata from last backup.
vgcfgrestore VG
[ COMMON_OPTIONS ]
Restore VG metadata from specified file.
vgcfgrestore -f|--file String VG
[ COMMON_OPTIONS ]
List all VG metadata backups.
vgcfgrestore -l|--list VG
[ COMMON_OPTIONS ]
List one VG metadata backup file.
vgcfgrestore -l|--list -f|--file String
[ COMMON_OPTIONS ]
[ VG ]
Common options for command:
[ -M|--metadatatype lvm2 ]
[ --force ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgchange
Change volume group attributes
root@kali:~# vgchange -h
vgchange - Change volume group attributes
Change a general VG attribute.
For options listed in parentheses, any one is
required, after which the others are optional.
vgchange
( -l|--logicalvolume Number,
-p|--maxphysicalvolumes Number,
-u|--uuid,
-s|--physicalextentsize Size[m|UNIT],
-x|--resizeable y|n,
--addtag Tag,
--deltag Tag,
--alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit,
--pvmetadatacopies 0|1|2,
--vgmetadatacopies all|unmanaged|Number,
--profile String,
--detachprofile,
--metadataprofile String,
--setautoactivation y|n )
[ -A|--autobackup y|n ]
[ -S|--select String ]
[ -f|--force ]
[ --poll y|n ]
[ --ignoremonitoring ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|Tag|Select ... ]
Start or stop monitoring LVs from dmeventd.
vgchange --monitor y|n
[ -A|--autobackup y|n ]
[ -S|--select String ]
[ -f|--force ]
[ --sysinit ]
[ --ignorelockingfailure ]
[ --poll y|n ]
[ --ignoremonitoring ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|Tag|Select ... ]
Start or stop processing LV conversions.
vgchange --poll y|n
[ -A|--autobackup y|n ]
[ -S|--select String ]
[ -f|--force ]
[ --ignorelockingfailure ]
[ --ignoremonitoring ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|Tag|Select ... ]
Activate or deactivate LVs.
vgchange -a|--activate y|n|ay
[ -K|--ignoreactivationskip ]
[ -P|--partial ]
[ -A|--autobackup y|n ]
[ -S|--select String ]
[ -f|--force ]
[ --activationmode partial|degraded|complete ]
[ --sysinit ]
[ --readonly ]
[ --ignorelockingfailure ]
[ --monitor y|n ]
[ --poll y|n ]
[ --autoactivation String ]
[ --ignoremonitoring ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|Tag|Select ... ]
Reactivate LVs using the latest metadata.
vgchange --refresh
[ -A|--autobackup y|n ]
[ -S|--select String ]
[ -f|--force ]
[ --sysinit ]
[ --ignorelockingfailure ]
[ --poll y|n ]
[ --ignoremonitoring ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|Tag|Select ... ]
Change the system ID of a VG.
vgchange --systemid String VG|Tag|Select
[ -S|--select String ]
[ --majoritypvs ]
[ COMMON_OPTIONS ]
Start the lockspace of a shared VG in lvmlockd.
vgchange --lockstart
[ -S|--select String ]
[ COMMON_OPTIONS ]
[ VG|Tag|Select ... ]
Stop the lockspace of a shared VG in lvmlockd.
vgchange --lockstop
[ -S|--select String ]
[ COMMON_OPTIONS ]
[ VG|Tag|Select ... ]
Change the lock type for a shared VG.
vgchange --locktype sanlock|dlm|none VG
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgck
Check the consistency of volume group(s)
root@kali:~# vgck -h
vgck - Check the consistency of volume group(s)
Read and display information about a VG.
vgck
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|Tag ... ]
Rewrite VG metadata to correct problems.
vgck --updatemetadata VG
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgconvert
Change volume group metadata format
root@kali:~# vgconvert -h
vgconvert - Change volume group metadata format
vgconvert VG ...
[ -f|--force ]
[ -M|--metadatatype lvm2 ]
[ --labelsector Number ]
[ --bootloaderareasize Size[m|UNIT] ]
[ --pvmetadatacopies 0|1|2 ]
[ --metadatasize Size[m|UNIT] ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgcreate
Create a volume group
root@kali:~# vgcreate -h
vgcreate - Create a volume group
vgcreate VG_new PV ...
[ -A|--autobackup y|n ]
[ -c|--clustered y|n ]
[ -l|--maxlogicalvolumes Number ]
[ -p|--maxphysicalvolumes Number ]
[ -M|--metadatatype lvm2 ]
[ -s|--physicalextentsize Size[m|UNIT] ]
[ -f|--force ]
[ -Z|--zero y|n ]
[ --addtag Tag ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --metadataprofile String ]
[ --labelsector Number ]
[ --metadatasize Size[m|UNIT] ]
[ --pvmetadatacopies 0|1|2 ]
[ --vgmetadatacopies all|unmanaged|Number ]
[ --reportformat basic|json|json_std ]
[ --dataalignment Size[k|UNIT] ]
[ --dataalignmentoffset Size[k|UNIT] ]
[ --shared ]
[ --systemid String ]
[ --locktype sanlock|dlm|none ]
[ --setautoactivation y|n ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgdisplay
Display volume group information
root@kali:~# vgdisplay -h
vgdisplay - Display volume group information
vgdisplay
[ -s|--short ]
[ -A|--activevolumegroups ]
[ COMMON_OPTIONS ]
[ VG|Tag ... ]
Display output in columns like vgs.
vgdisplay -C|--columns
[ -a|--all ]
[ -o|--options String ]
[ -O|--sort String ]
[ --aligned ]
[ --binary ]
[ --headings none|abbrev|full|0|1|2 ]
[ --nameprefixes ]
[ --noheadings ]
[ --nosuffix ]
[ --rows ]
[ --separator String ]
[ --unbuffered ]
[ --unquoted ]
[ COMMON_OPTIONS ]
[ VG|Tag ... ]
Generate colon separated output.
vgdisplay -c|--colon
[ -A|--activevolumegroups ]
[ COMMON_OPTIONS ]
[ VG|Tag ... ]
Common options for command:
[ -S|--select String ]
[ --configreport log|vg|lv|pv|pvseg|seg ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --logonly ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ --shared ]
[ --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgexport
Unregister volume group(s) from the system
root@kali:~# vgexport -h
vgexport - Unregister volume group(s) from the system
Export specified VGs.
vgexport VG|Tag|Select ...
[ -S|--select String ]
[ COMMON_OPTIONS ]
Export all VGs.
vgexport -a|--all
[ COMMON_OPTIONS ]
Common options for command:
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgextend
Add physical volumes to a volume group
root@kali:~# vgextend -h
vgextend - Add physical volumes to a volume group
vgextend VG PV ...
[ -A|--autobackup y|n ]
[ -f|--force ]
[ -Z|--zero y|n ]
[ -M|--metadatatype lvm2 ]
[ --labelsector Number ]
[ --metadatasize Size[m|UNIT] ]
[ --pvmetadatacopies 0|1|2 ]
[ --metadataignore y|n ]
[ --dataalignment Size[k|UNIT] ]
[ --dataalignmentoffset Size[k|UNIT] ]
[ --reportformat basic|json|json_std ]
[ --restoremissing ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgimport
Register exported volume group with system
root@kali:~# vgimport -h
vgimport - Register exported volume group with system
Import specified VGs.
vgimport VG|Tag|Select ...
[ -S|--select String ]
[ COMMON_OPTIONS ]
Import all VGs.
vgimport -a|--all
[ COMMON_OPTIONS ]
Common options for command:
[ -f|--force ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgimportclone
Import a VG from cloned PVs
root@kali:~# vgimportclone -h
vgimportclone - Import a VG from cloned PVs
vgimportclone PV ...
[ -n|--basevgname VG ]
[ -i|--import ]
[ --importdevices ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgmerge
Merge volume groups
root@kali:~# vgmerge -h
vgmerge - Merge volume groups
vgmerge VG VG
[ -A|--autobackup y|n ]
[ -l|--list ]
[ --poolmetadataspare y|n ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgmknodes
Create the special files for volume group devices in /dev
root@kali:~# vgmknodes -h
vgmknodes - Create the special files for volume group devices in /dev
vgmknodes
[ --ignorelockingfailure ]
[ --refresh ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
[ VG|LV|Tag ... ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgreduce
Remove physical volume(s) from a volume group
root@kali:~# vgreduce -h
vgreduce - Remove physical volume(s) from a volume group
Remove a PV from a VG.
vgreduce VG PV ...
[ COMMON_OPTIONS ]
Remove all unused PVs from a VG.
vgreduce -a|--all VG
[ COMMON_OPTIONS ]
Remove all missing PVs from a VG.
vgreduce --removemissing VG
[ --mirrorsonly ]
[ COMMON_OPTIONS ]
Common options for command:
[ -A|--autobackup y|n ]
[ -f|--force ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgremove
Remove volume group(s)
root@kali:~# vgremove -h
vgremove - Remove volume group(s)
vgremove VG|Tag|Select ...
[ -f|--force ]
[ -S|--select String ]
[ --noudevsync ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgrename
Rename a volume group
root@kali:~# vgrename -h
vgrename - Rename a volume group
Rename a VG.
vgrename VG VG_new
[ COMMON_OPTIONS ]
Rename a VG by specifying the VG UUID.
vgrename String VG_new
[ COMMON_OPTIONS ]
Common options for command:
[ -A|--autobackup y|n ]
[ -f|--force ]
[ --reportformat basic|json|json_std ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgs
Display information about volume groups
root@kali:~# vgs -h
vgs - Display information about volume groups
vgs
[ -S|--select String ]
[ -a|--all ]
[ -o|--options String ]
[ -O|--sort String ]
[ --configreport log|vg|lv|pv|pvseg|seg ]
[ --foreign ]
[ --ignorelockingfailure ]
[ --logonly ]
[ --readonly ]
[ --reportformat basic|json|json_std ]
[ --shared ]
[ --units [Number]r|R|h|H|b|B|s|S|k|K|m|M|g|G|t|T|p|P|e|E ]
[ --aligned ]
[ --binary ]
[ --headings none|abbrev|full|0|1|2 ]
[ --nameprefixes ]
[ --noheadings ]
[ --nosuffix ]
[ --rows ]
[ --separator String ]
[ --unbuffered ]
[ --unquoted ]
[ COMMON_OPTIONS ]
[ VG|Tag ... ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgscan
Search for all volume groups
root@kali:~# vgscan -h
vgscan - Search for all volume groups
vgscan
[ --ignorelockingfailure ]
[ --mknodes ]
[ --notifydbus ]
[ --refresh ]
[ --reportformat basic|json|json_std ]
[ COMMON_OPTIONS ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.
vgsplit
Move physical volumes into a new or existing volume group
root@kali:~# vgsplit -h
vgsplit - Move physical volumes into a new or existing volume group
Split a VG by specified PVs.
vgsplit VG VG PV ...
[ COMMON_OPTIONS ]
Split a VG by PVs in a specified LV.
vgsplit -n|--name LV VG VG
[ COMMON_OPTIONS ]
Common options for command:
[ -A|--autobackup y|n ]
[ -l|--maxlogicalvolumes Number ]
[ -M|--metadatatype lvm2 ]
[ -p|--maxphysicalvolumes Number ]
[ --alloc contiguous|cling|cling_by_tags|normal|anywhere|inherit ]
[ --poolmetadataspare y|n ]
[ --vgmetadatacopies all|unmanaged|Number ]
Common options for lvm:
[ -d|--debug ]
[ -h|--help ]
[ -q|--quiet ]
[ -v|--verbose ]
[ -y|--yes ]
[ -t|--test ]
[ --commandprofile String ]
[ --config String ]
[ --driverloaded y|n ]
[ --nolocking ]
[ --lockopt String ]
[ --longhelp ]
[ --profile String ]
[ --version ]
[ --devicesfile String ]
[ --devices PV ]
[ --nohints ]
[ --journal String ]
Use --longhelp to show all options and advanced commands.