has the additional benefit of not moving the location of the data, as the copy commanddoes. For example, the following command will move the contents of hdisk1 to hdisk5and hdisk5.
migratepv hdisk1 hdisk5 hdisk6
Alternatively, migratepv can move individual logical volumes. The following
command moves datalv to hdisk4.
migratepv ‘l datalv hdisk4
The technique requires source and destination hdisks to reside in the same volume group.
Split mirror copy
: This involves mirroring the source LV on the destination LV.Once the mirror synchronization is completed, the application is temporarily suspendedwhile the source LV copy is removed. The mirror synchronization can run in the background during production.The following example creates a mirror copy of datalv on hdisk1 to hdisk2,
synchronizes the mirror, then removes the original copy.# mklvcopy datalv 2 hdisk2# syncvg ‘l ‘P6 datalv# lslv datalv # verify sync is completeno stale partitions
Although not required, I recommend stopping the application to be safe.
# rmlvcopy datalv 1 hdisk1The technique requires source and destination hdisks to reside in the same volume group.Also this technique will take longer to synchronize than a straight copy, as all PPs are
copied (including empty PPs).. For more information, see
Point in time copy
: This technique copies files in the background during production.Then later, the application is shutdown and only the changed files need to be copied. For example# touch timestamp (create a file for a timestamp)
# find . ‘print | cpio ‘pld /source /destination..shutdown application to copy changed files..
# find . ‘newer timestamp ‘print | cpio ‘pld /source /destinationA better command is GNUs rsync command, which can be found on the Linux
Toolbox CD. The syntax is:
Leave a Comment