Search This Blog

Monday, June 13, 2011

Taking the Backup of Volume Group and restoring it into other server


The savevg command is used to build an image of cdcxpr0747vg that includes map files.

Host1: cdcxpr0747

# savevg -f /home/japrt/cdcxpr0747vg.save -m -e -X -r -A cdcxpr0747vg

scp the map file to another host

# scp /home/japrt/cdcxpr0747vg.save ibhagat@cihnp0749:/home/jpart

Node2:cihnp0749
The restvg command is used to recreate the VG with the same physical Partition map.
# restvg -f /home/jpart/cdcxpr0747vg.save -r hdisk7
Will create the Volume GroupL cdcxpr0747vg
Target Disks: hdisk7
Allocation Policy
       Shrink Filesystem:   no
       Preserver Physical Partitions for each logical volume: yes

Entery y to continue:y
cdcxpr0747vg
log1v0l1
fs1vo1
fs1vo2

No comments:

Post a Comment