LVREMOVE(8)
β¨ LVREMOVE π β¨
okay bestie, this is a system manager's manual page, which sounds all corporate but honestly it's just your girl lvremove from lvm(8) β literally the "bye bitch" button for Logical Volumes. π«Ά
πΈ NAME πΈ
lvremove β Remove logical volume(s) from the system. that's it. that's the whole job. she's a remover. π
β¨ SYNOPSIS β¨
lvremove position_args
[ option_args ]
π DESCRIPTION π
so lvremove removes one or more LVs, right? and for standard LVs, this returns the logical extents that were used by the LV back to the VG, so other LVs can use them. giving back what it borrowed. iconic behavior tbh. π
Confirmation will be requested before deactivating any active LV prior to removal (she's polite). but heads up: LVs cannot be deactivated or removed while they are open (e.g. if they contain a mounted filesystem) β she's not gonna yank something out from under you, bestie. π And ooh, important: removing an origin LV will also remove all dependent snapshots. not me deleting the whole family tree π
When a single force option is used, LVs are removed without confirmation, and the command will try to deactivate unused LVs. no small talk, just vibes. π₯
To remove damaged LVs, two force options may be required (-ff). double tap for the broken ones. π
π¦ Historical LVs π¦
if the configuration setting metadata/record_lvs_history is enabled and the LV being removed forms part of the history of at least one LV that is still present, then a simplified representation of the LV will be retained. it's giving "preserving the legacy." β¨
what's in that little time capsule? the time of removal (lv_time_removed reporting field), creation time (lv_time), name (lv_name), LV uuid (lv_uuid) and VG name (vg_name).
this allows later reporting to see the ancestry chain of thin snapshot volumes, even after some intermediate LVs have been removed. generational lore. πΈ
the names of such historical LVs acquire a hyphen as a prefix (e.g. '-lvol1') and cannot be reactivated. so if you want to remove the record of the former LV completely, use lvremove a second time, with the hyphen. two-step removal, very main character. π
π USAGE π
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 ... ]
[ -t|--test ]
[ -v|--verbose ... ]
[ -y|--yes ]
[ --commandprofile String ]
[ --config String ]
[ --devices PV ]
[ --devicesfile String ]
[ --driverloaded y|n ]
[ --journal String ]
[ --lockopt String ]
[ --longhelp ]
[ --nohints ]
[ --nolocking ]
[ --profile String ]
[ --version ]
π OPTIONS π
-A,--autobackup y|nβ Specifies if metadata should be backed up automatically after a change. Enabling this is strongly advised! fr fr, turn it on. Seevgcfgbackup(8)for more information. π--commandprofile Stringβ The command profile to use for command configuration. Seelvm.conf(5)for more information about profiles.--config Stringβ Config settings for the command. These overridelvm.conf(5)settings. The String arg uses the same format aslvm.conf(5), or may usesection/fieldsyntax. Seelvm.conf(5)for more information about config.-d,--debug ...β Set debug level. Repeat from 1 to 6 times to increase the detail of messages sent to the log file and/or syslog (if configured). cranking the volume up on the tea. β--devices PVβ Restricts the devices that are visible and accessible to the command. Devices not listed will appear to be missing. This option can be repeated, or accepts a comma-separated list of devices. This overrides the devices file. β¨--devicesfile Stringβ A file listing devices that LVM should use. The file must exist in/etc/lvm/devices/and is managed with thelvmdevices(8)command. This overrides thelvm.conf(5)devices/devicesfileanddevices/use_devicesfilesettings. π¦--driverloaded y|nβ If set to no, the command will not attempt to use device-mapper. For testing and debugging. π-f,--force ...β Override various checks, confirmations and protections. Use with extreme caution. like, extreme extreme. she's not playing. π-h,--helpβ Display help text.--journal Stringβ Record information in the systemd journal. This information is in addition to information enabled by thelvm.conflog/journalsetting.command:record information about the command.output:record the default command output.debug:record full command debugging. π--lockopt Stringβ Used to pass options for special cases tolvmlockd. Seelvmlockd(8)for more information.--longhelpβ Display long help text. the director's cut. π¬--nohintsβ Do not use the hints file to locate devices for PVs. A command may read more devices to find PVs when hints are not used. The command will still perform standard hint file invalidation where appropriate.--nohistoryβ Do not record history of LVs being removed. This has no effect unless the configuration settingmetadata/record_lvs_historyis enabled. π--nolockingβ Disable locking. Use with caution β concurrent commands may produce incorrect results. seriously bestie, caution. β οΈ--noudevsyncβ Disables udev synchronization. The process will not wait for notification from udev. It will continue irrespective of any possible udev processing in the background. Only use this if udev is not running or has rules that ignore the devices LVM creates. π--profile Stringβ An alias for--commandprofileor--metadataprofile, depending on the command.-q,--quiet ...β Suppress output and log messages. Overrides--debugand--verbose. Repeat once to also suppress any prompts with answer'no'. shhh mode. π€«--reportformat basic|json|json_stdβ Overrides current output format for reports which is defined globally by thereport/output_formatsetting inlvm.conf(5).basicis the original format with columns and rows. If there is more than one report per command, each report is prefixed with the report name for identification.jsonproduces report output in JSON format.json_stdproduces report output in JSON format which is more compliant with the JSON standard. Seelvmreport(7)for more information. β¨-S,--select Stringβ Select objects for processing and reporting based on specified criteria. The criteria syntax is described by--select helpandlvmreport(7). For reporting commands, one row is displayed for each object matching the criteria. See--options helpfor selectable object fields. Rows can be displayed with an additional"selected"field (-o selected) showing1if the row matches the selection and0otherwise. For non-reporting commands which process LVM entities, the selection is used to choose items to process. π―-t,--testβ Run in test mode. Commands will not update metadata. This is implemented by disabling all metadata writing but nevertheless returning success to the calling function. This may lead to unusual error messages in multi-stage operations if a tool relies on reading back metadata it believes has changed but hasn't. so your pretend-success era. ππ-v,--verbose ...β Set verbose level. Repeat from 1 to 4 times to increase the detail of messages sent to stdout and stderr.--versionβ Display version information.-y,--yesβ Do not prompt for confirmation interactively but always assume the answer yes. Use with extreme caution. (For automatic no, see-qq.) π
πΈ VARIABLES πΈ
- VG β Volume Group name. See
lvm(8)for valid names. - LV β Logical Volume name. See
lvm(8)for valid names. An LV positional arg generally includes the VG name and LV name, e.g.VG/LV. - Tag β Tag name. See
lvm(8)for information about tag names and using tags in place of a VG, LV or PV. - Select β Select indicates that a required positional parameter can be omitted if the
--selectoption is used. No arg appears in this position. - String β See the option description for information about the string content.
- Size[UNIT] β Size is an input number that accepts an optional unit. Input units are always treated as base two values, regardless of capitalization, e.g.
'k'and'K'both refer to 1024. The default input unit is specified by letter, followed by|UNIT. UNIT represents other possible input units:b|Bis bytes,s|Sis sectors of 512 bytes,k|Kis KiB,m|Mis MiB,g|Gis GiB,t|Tis TiB,p|Pis PiB,e|Eis EiB. (This should not be confused with the output control--units, where capital letters mean multiple of 1000.) π§
π« ENVIRONMENT VARIABLES π«
See lvm(8) for information about environment variables used by lvm. For example, LVM_VG_NAME can generally be substituted for a required VG parameter. β¨
π EXAMPLES π
Remove an active LV without asking for confirmation.
lvremove -f vg00/lvol1
Remove all LVs in the specified VG.
lvremove vg00
π₯ SEE ALSO π₯
lvm(8), lvm.conf(5), lvmconfig(8), lvmdevices(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), vgimportdevices(8), vgmerge(8), vgmknodes(8), vgreduce(8), vgremove(8), vgrename(8), vgs(8), vgscan(8), vgsplit(8),
lvcreate(8), lvchange(8), lvconvert(8), lvdisplay(8), lvextend(8), lvreduce(8), lvremove(8), lvrename(8), lvresize(8), lvs(8), lvscan(8),
lvm-fullreport(8), lvm-lvpoll(8), blkdeactivate(8), lvmdump(8),
dmeventd(8), lvmpolld(8), lvmlockd(8), lvmlockctl(8), lvmdbusd(8), fsadm(8),
lvmsystemid(7), lvmreport(7), lvmcache(7), lvmraid(7), lvmthin(7), lvmvdo(7), lvmautoactivation(7)
and that's the whole page babes π this little beauty was brought to you by Red Hat, Inc., runnin' LVM TOOLS 2.03.44(2) with a timestamp of (2026-10-27) β lvremove(8), out. slay, hydrate, and please double-check before you -ff. π«Άβ¨
π¦ where this page comes from
- arch rolling: lvm2 2.03.44-1 Β· GPL-2.0-only AND LGPL-2.1-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms