lvremove(1M)lvremove(1M)NAMElvremove - remove one or more logical volumes from LVM volume group
SYNOPSIS
autobackup] lv_path ...
Remarks
If the logical volume input arguments belong to a combination of volume
groups version 1.0 and 2.0 or higher, the arguments may not be pro‐
cessed in the order they are listed on the command line.
DESCRIPTION
The command removes each logical volume specified by lv_path ....
Logical volumes must be closed before they can be removed. For exam‐
ple, if the logical volume contains a file system, the file system
before removing it.
Options and Arguments
recognizes the following options and arguments:
lv_path The block device path name of a logical vol‐
ume.
Set automatic backup for this invocation of this command.
autobackup can have one of the following
values:
Automatically back up configuration changes
made to the logical volume.
This is the default.
After this command executes, the com‐
mand (see vgcfgbackup(1M)) is exe‐
cuted for the volume group to which
the logical volume belongs.
Do not back up configuration changes this
time.
Specify that no user confirmation is required.
Shared Volume Group Considerations
For volume group version 1.0 and 2.0, cannot be used if the volume
group is activated in shared mode. For volume groups version 2.1 (or
higher), can be performed when activated in either shared, exclusive,
or standalone mode.
Note that the daemon must be running on all the nodes sharing a volume
group activated in shared mode. See lvmpud(1M).
When is issued, it removes the logical volume device special files from
all the nodes sharing the volume group.
When a node wants to share the volume group, the user must first exe‐
cute a if logical volumes were removed at the time the volume group was
not activated on that node.
LVM shared mode is currently only available in Serviceguard clusters.
EXTERNAL INFLUENCES
Environment Variables
determines the language in which messages are displayed.
If is not specified or is null, it defaults to "C" (see lang(5)).
If any internationalization variable contains an invalid setting, all
internationalization variables default to "C" (see environ(5)).
EXAMPLES
Remove a logical volume without requiring user confirmation:
WARNINGS
This command destroys all data in the specified logical volumes.
SEE ALSOlvchange(1M), lvmpud(1M), umount(1M).
lvremove(1M)