lvsplit.1m (2010 09)

l
lvsplit(1M) lvsplit(1M)
(Requires Optional HP MirrorDisk/UX Software)
n Do not back up configuration changes this time.
-g PhysicalVolumeGroup
The offline logical volumes will be created using the mirror copies on the phy-
sical volumes in the specified PhysicalVolumeGroup.
-s suffix Specify the suffix to use to identify the new logical volume. The new logical
volume name has the form lv_path suffix.If
-s is omitted, suffix defaults to
b,
as in lv_path
b.
Shared Volume Group Considerations
For volume group version 1.0 and 2.0,
lvsplit cannot be used if the volume group is activated in
shared mode. For volume groups version 2.1 (or higher),
lvsplit 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
lvsplit is issued, it creates the new logical volume device special files on all the nodes sharing
the volume group. The device special files are created with the same name on 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 split at the time the volume group was not activated on that node.
The logical volumes device special files should have the same name on all the nodes sharing the volume
group.
LVM shared mode is currently only available in Serviceguard clusters.
EXTERNAL INFLUENCES
Environment Variables
LANG determines the language in which messages are displayed.
If
LANG 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
Split the mirrored logical volume
/dev/vg00/lvol1
into two copies. Call the new logical volume
/dev/vg00/lvol1backup
:
lvsplit -s backup /dev/vg00/lvol1
Split the mirrored logical volume /dev/vg00/lvol1
into two copies. The offline logical volume will be
created using the mirror copy on the physical volumes contained in the physical volume group
pvg1.
lvsplit -g pvg1 /dev/vg00/lvol1
Split an online logical volume which is currently mounted on /usr so that a backup can take place:
lvsplit /dev/vg00/lvol1
fsck /dev/vg00/lvol1b
mount /dev/vg00/lvol1b /usr.backup
Perform a backup operation, then:
umount /usr.backup
lvmerge /dev/vg00/lvol1b /dev/vg00/lvol1
Split two logical volumes at the same time:
lvsplit /dev/vg01/database1 /dev/vg01/database2
Perform a backup operation on the split logical volumes, then rejoin them:
lvmerge /dev/vg01/database1b /dev/vg01/database1
lvmerge /dev/vg01/database2b /dev/vg01/database2
SEE ALSO
lvcreate(1M), lvextend(1M), lvmerge(1M), lvmpud(1M).
2 Hewlett-Packard Company 2 HP-UX 11i Version 3: September 2010