The following example will split the root mirror created in the previous example, back up the data, and merge the two logical volumes back into the mirror
Here are the commands to accomplish the backup and resynchronization:
Before proceeding, if the logical volume contains a database, the database must be stopped before it is split. Otherwise the data contained in the split half could be invalid and of no use if it needs to be restored from the backup at a later date.
# sync
# lvsplit -s backup /dev/vg00/lvol1
NOTE:With the "-s" option, the file "/dev/vg00/lvol1backup" would be created automatic
# fsck -p /dev/vg00/lvol1backup
# mkdir /lvol1backup
# mount /dev/vg00/lvol1backup /lvol1backup
# fbackup -f /dev/rmt/0h -0vHi /lvol1backup
# umount /lvol1backup
# lvmerge /dev/vg00/lvol1backup /dev/vg00/lvol1
阅读(3319) | 评论(0) | 转发(0) |