lvremove.1m (2010 09)

l
lvremove(1M) lvremove(1M)
NAME
lvremove - remove one or more logical volumes from LVM volume group
SYNOPSIS
/usr/sbin/lvremove
[-A autobackup ][-f] lv_path ...
/usr/sbin/lvremove -F
[-A autobackup ][
-f] 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 processed in the order they are listed on the command line.
DESCRIPTION
The
lvremove command removes each logical volume specified by lv_path ....
The
-F option is only applicable for snapshot logical volumes. With the
-F option of the lvremove com-
mand, a snapshot logical volume and all its predecessors can be removed. Before removing an original
logical volume which has snapshots configured, all its snapshot logical volumes must be removed. See
lvm(7) for information about snapshot logical volumes.
Logical volumes must be closed before they can be removed. For example, if the logical volume contains a
file system,
unmount the file system before removing it. If the -F option is specified, the snapshot logical
volume lv_path and all its predecessors must be closed before they can be removed.
Options and Arguments
lvremove recognizes the following options and arguments:
lv_path The block device path name of a logical volume.
-A autobackup Set automatic backup for this invocation of this command. autobackup can
have one of the following values:
y Automatically back up configuration changes made to the logical volume.
This is the default.
After this command executes, the
vgcfgbackup command (see
vgcfgbackup (1M)) is executed for the volume group to which the logical
volume belongs.
n Do not back up configuration changes this time.
-f Specify that no user confirmation is required.
-F Remove the snapshot logical volume and all its predecessors on the snapshot
tree. Only one logical volume can be specified with this option. The option is
ignored if specified with the last predecessor on the snapshot tree.
Shared Volume Group Considerations
For volume group version 1.0 and 2.0,
lvremove cannot be used if the volume group is activated in
shared mode. For volume groups version 2.1 (or higher), lvremove can be performed when activated in
either shared, exclusive, or standalone mode.
Note that the
lvmpud daemon must be running on all the nodes sharing a volume group activated in
shared mode. See lvmpud(1M).
When
lvremove 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 execute a
vgimport 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.
Snapshot Removal Considerations
For volume group version 2.2 and higher, a snapshot logical volume can be removed with or without using
the -F option. If the -F option is not used, only the specified snapshot logical volume is deleted.
In this operation, if the snapshot has a predecessor that is not marked over-comit or inoperative, then for
all the unshare units of the predecessor that share data with this snapshot, only the unshared data of the
snapshot is copied to the predecessor. If the predecessor is a space-efficient snapshot, ensure that
HP-UX 11i Version 3: September 2010 1 Hewlett-Packard Company 1

Summary of content (2 pages)