Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Merging volume groups

Status
Not open for further replies.

stawolg

Technical User
Sep 25, 2001
28
DE
I have two non rootvg volume groups each with two identical PVs on my server. No I have to merge them to a single VG without loss of data. Is there any comfortable method to do this instead of FS backup followed by delete vg, extendvg and restore of FS?
 
You could copy logical volumes from old volume group to new volume group using the following method:
Step 1: umount [filesystem]

Step 2: cp [oldLV] [newLV]
cplv –v VG(destination) –y [newLV] [sourceLV]

Step 3: chfs to recognize [newLV]
chfs –a dev=/dev/[newLV] –a log=/dev/[logdev] /[filesystem]

Step 4: fsck –p /dev/[newLV]

Step 5: mount [filesystem]

Step 6: rm [oldLV]
rm [oldLV]
 
I know an uncomfortable way to do it. If the above does not work, let me know. IBM Certified -- AIX 4.3 Obfuscation
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top