United States-English |
|
|
HP-UX Reference > Llvsplit(1M)Requires Optional HP MirrorDisk/UX SoftwareHP-UX 11i Version 3: February 2007 |
|
NAMElvsplit — split mirrored LVM logical volume into two logical volumes DESCRIPTIONThe lvsplit command splits a single- or double-mirrored logical volume, lv_path, into two logical volumes. A second logical volume is created containing one copy of the data. The original logical volume is appropriately reset as unmirrored or single-mirrored. If the -s option is specified, the new logical volume name has the form lv_pathsuffix. If -s is not specified, suffix defaults to b, as in lv_pathb. If more than one lv_path is specified on the command line, lvsplit ensures that all logical volumes are brought offline together in one system call, ensuring predictable results among the logical volumes. Up to 127 logical volumes can be specified on the command line. All logical volumes must belong to the same volume group, and there must be enough unused logical volumes remaining in the volume group to hold the newly split logical volumes. A volume group can contain up to 255 logical volumes. If PhysicalVolumeGroup is specified, the offline logical volumes are created using the mirror copies on the physical volumes contained in the specified physical volume group. Whenever a mirrored logical volume is split into two logical volumes, a bit map is stored that keeps track of all writes to either logical volume in the split pair. When the two logical volumes are subsequently merged using lvmerge, the bit map is used to decide which areas of the logical volumes need to be resynchronized (see lvmerge(1M)). This bit map remains in existence until one of the following conditions occurs:
The new logical volume must be checked with the fsck command before it is mounted (see fsck(1M)). lvsplit flushes the file system to a consistent state except for pipes and unlinked but open files. To rejoin two split copies of a logical volume, use the lvmerge command (see lvmerge(1M)). Options and Argumentslvsplit recognizes the following options and arguments:
EXTERNAL INFLUENCESEnvironment VariablesLANG 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)). EXAMPLESSplit 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
Split two logical volumes at the same time:
|
Printable version | ||
|