|
|
HP-UX Reference > Llvmerge(1M)Requires Optional HP MirrorDisk/UX SoftwareHP-UX 11i Version 2: December 2007 Update |
|
NAMElvmerge — merge two LVM logical volumes into one logical volume DESCRIPTIONThe lvmerge command merges two logical volumes of the same size. The copy_lv_path is added as a mirrored copy of master_lv_path and only the master_lv_path logical volume is retained. The number of mirrored copies of the master_lv_path is increased by the number of copies in the copy_lv_path. Data previously contained in the copy_lv_path will be resynchronized using the data in the master_lv_path. All new data on the copy_lv_path will be destroyed and the copy_lv_path logical volume will be removed. By default, lvmerge completes after all the extents are resynchronized. When run with the -s option, if there is no bitmap (see below), lvmerge returns without resynchronizing the remaining logical volume. Using the -s option may affect data high availability as extents may remain stale. Use lvsync or vgsync to synchronize the mirrors. The normal usage for this command is to merge previously mirrored logical volumes that have been split using the lvsplit command. However, the two logical volumes are not required to have been the result of a previous lvsplit operation. NOTE: Whenever a mirrored logical volume is split into two logical volumes using lvsplit, a bitmap 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 bitmap is used to decide which areas of copy_lv_path need to be resynchronized with the master_lv_path. This bitmap remains in existence until one of the following conditions occurs:
If there is no bitmap available, all the physical extents from the copy_lv_path are marked stale. If there is a bitmap available, the -s option is ignored. Options and Argumentslvmerge 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)). EXAMPLESMerge /dev/vg00/lvol1b with /dev/vg00/lvol1. Data in /dev/vg00/lvol1b will be overwritten by /dev/vg00/lvol1 and /dev/vg00/lvol1b will be removed. lvmerge /dev/vg00/lvol1b /dev/vg00/lvol1 Merge /dev/vg01/lvol1b with /dev/vg01/lvol1. Data in /dev/vg01/lvol1b will be overwritten by /dev/vg01/lvol1 and /dev/vg01/lvol1b will be removed. If the bitmap does not exist, then mark all extents associated with /dev/vg01/lvol1b as stale and complete without resynchronizing. lvmerge -s /dev/vg01/lvol1b /dev/vg01/lvol1 |
|