|
К этому устройству также есть другие инструкции:
Фрагмент инструкции
HP OpenView Storage Data Protector
the logical volume to contain two mirrors as in the original setup, following command
can be used to extend the mirrors.
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c15t0d0
lvextend -m 1 /dev/vg01/lvol1 /dev/dsk/c15t0d1
This way, the logical volume lvol1 contains the disks /dev/dsk/c15t0d0 and lvol2
contains the disks /dev/dsk/c15t0d1 again as a mirrored copy.
Method II – Instant Recovery splitting and merging
In this procedure, the splitting functionality of the LVM mirroring is used. The logical volumes
are first split to create backup volumes. These backup volumes can be overwritten by the data
from the replica created on the EVA. Later on the backup volumes are merged back to have
the mirroring functionality.
Caution: Before splitting the mirrors, it should be verified that the mirror which we are splitting
is the correct one. Failing to do so would result in irrecoverable loss of data. The user is
advised to record the mirroring settings, and the output of the commands of lvdisplay and
vgdisplay for the later use.
2. Split the mirrors to create the backup volumes. While creating the backup volumes,
specify the group where the replica would not be restored by looking at the vgdisplay
and lvdisplay outputs. After splitting the mirrors, the volumes in the physical volume
groups are no longer in the mirror, and the backup copies of the same are present.
The command lvsplit is used to split the mirrors. For example, consider a volume group
VG01 contains logical volume lvol1 and lvol2, which contain the disks belonging to
PVG-1 as well as PVG-2.
Now, to split the logical volume to contain only the disks from PVG-2, following
command can be used:
lvsplit -s back -g PVG1 /dev/vg01/lvol1 /dev/vg01/lvol2
With this command, the disks from physical volume group PVG-1 are split and a new
logical volume with the suffix 'back' is created. This new logical volume or 'backup
volume' can be accessed at '/dev/vg01/lvol1back' and '/dev/vg01/lvol2back'
You can check this with the command vgdisplay, where you can check that another
pair of logical volumes is now present in the volume group vg01:
.....
--- Logical volumes ---
LV Name /dev/vg01/lvol1
LV Status available/syncd
LV Size (Mbytes) 10240
Current LE 256
Allocated PE 256
Instant Recovery in LVM Mirroring environment
9
...