Some times we need to import the clone or snapshot of SAN volume to the same host, in our case we have Production and Development DB instances on same server, we take the clone of Production DB Volume in the SAN Array and import it for Development instance running on same host.
We need to properly change the UUIDs of the associated volume group and physical volume of snapshot or cloned VG so that they can mount at same time on a host.
Follow below steps.
1. Present the snapshot or clone to your system
2. Scan the system to detect new volume
3. run multipath –ll and note the newly detected device (If you have enabled multipath)
4. run # vgimportclone.sh -n <vg_name> /dev/mapper/mpathx
Ex: vgimportclone.sh -n new_vg /dev/mpath/mpath7p1
5. Activate VG and mount file system as below:
# vgchange –ay new_vg
# mount /dev/mapper/new_vg-vol /New-DB-path
No comments:
Post a Comment