Appendix I: Splitting Mirrors to Perform Backups
Make sure the database is not active before you split it. The following example uses
/dev/vg02/lvol1 to show this process. Use lvdisplay -v /dev/vg02/lvol1 to verify that
/dev/vg02/lvol1 is mirrored and current.
1. To split the logical volume, enter:
# sync
# lvsplit -s backup /dev/vg02/lvol1
The system console displays the following message:
Logical volume "/dev/vg02/lvol1backup" has been successfully created
with character device "/dev/vg02/rlvol1backup".
Logical volume "/dev/vg02/lvol1" has been successfully split.
The original logical volume, /dev/vg02/lvol1, continues to be available for use.
The new logical volume, /dev/vg02/lvolbackup, split off from the original, now exists.
2. Enter fsck on the split logical volume:
# fsck /dev/vg02/rlvol1backup
or:
# fsck -F vxfs /dev/vg02/rlvol1backup (for JFS file systems)
3. Perform the backup of the file system:
”/dev/vg02/lvol1backup". (preferred backup utility)
4. When the backup is done, unmount the file system (if you had mounted it) in the split-off logical
volume when you are ready to merge the split pairs.
5. To merge the split-of the logical volume and the original logical volume back into one mirrored
logical volume, enter:
# lvmerge /dev/vg02/lvol1backup /dev/vg02/lvol1
6. To verify the merged mirror, enter:
# lvdisplay -v /dev/vg02/lvol1
Kommentare zu diesen Handbüchern