HP-UX Reference (11i v1 05/09) - 1M System Administration Commands A-M (vol 3)

l
lvsplit(1M) lvsplit(1M)
(Requires Optional HP MirrorDisk/UX Software)
-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.
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 contain 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 operation on split logical volumes, then rejoin them:
lvmerge /dev/vg01/database1b /dev/vg01/database1
lvmerge /dev/vg01/database2b /dev/vg01/database1
WARNINGS
After a two-way mirrored logical volume has been split once, it cannot be split again without merging the
logical volumes using the lvmerge command (see lvmerge(1M)).
SEE ALSO
lvcreate(1M), lvextend(1M), lvmerge(1M).
HP-UX 11i Version 1: September 2005 2 Hewlett-Packard Company Section 1M467