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!

moving logical volumes across volume groups

Status
Not open for further replies.

grimwyre

MIS
Jan 31, 2002
68
GB
I am looking at a server that currently only has a rootvg. It has three logical volumes containing application data. We plan to install extra disks to create an application volume group.

What is the best way to move the logical volumes onto the ne volume group?

I don't think I can use migratepv as two volume groups are involved.

Do I need to back up the data in question, remove the old logical volumes, create new logical volumes file systems etc, copy the data back into the new logical volumes?
 
grimwyre,

Well I would not remove your exisiting filesystems in rootvg, unmount then and rename the lv's and jfs mount points i.e. :

/data on /dev/datalv

to

/data_old /dev/datalv_old

That way you are not blowing away your data before restoring it.....that is not a very good idea unless you have no choice.

Then create the old filesystem and l.v. names on the new volume group and restore. Once you are happy blow away the old filesystems in rootvg...

Believe me I have been on customer site many times after someone with your proposed stategy blew away the data and could not restore.

Best of luck



PSD
IBM Certified Specialist - AIX V4.3 Systems Support
IBM Certified Specialist - AIX V4 HACMP
 
You are correct that you cannot use migratepv across volume groups. However, cplv is the best alternative. It is what I use when moving lv's across volume groups. These are the steps:

1. unmount filesystem
2. cplv –v VG(destination) –y [newLV] [sourceLV]
3. chfs –a dev=/dev/[newLV] –a log=/dev/[logdev] /[filesystem]
4. fsck –y /dev/[newLV]
5. mount filesystem
6. logform /dev/[logdev]

*Note: your data will still be on the old lv and you can change the mount point back if you have problems on the new lv and pv.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top