This posts explains the steps the copy a logical volume from one volume group to another volume group.
Scenario:
Logical Volume : /dev/fslv01
Mount Point : /data
Source Volume Group : office
New Logical Volume Name : /dev/copy-fslv01
Destination Volume Group : home
Step 1:
# lsvg -l office /* Verify the LV's in the VG */
# umount /data /* Unmount the LV */
# cplv -y <New LV Name> -v <Destination VG> <LV to be Copied>
# cplv -y copy-flsv01 -v home fslv01
# lsvg -l home /* Verify a new LV is created by the name copy-fslv01 in home VG */
# mklv -t jfs2log home 1 /* Creating a log device for the copy-fslv01 LV */
# logform /dev/loglv01 /* Initialize the log device */
# chfs -a log=/dev/loglv01 -a device=/dev/copy-fslv01 /data
Changing the reference for the file system indicating the new log device and new logical volume on /data.
Note: Mount point act a reference in copying a logical volume from one VG to another VG. Mount point has to be the same.
# mount /data
# cd /data
You can find all the information stored in the logical volume /dev/fslv01 in /dev/copy-fslv01. Thanks.
No comments:
Post a Comment