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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hi Guys, What is the best way to

Status
Not open for further replies.

AIXUser53

IS-IT--Management
Aug 16, 2002
47
US
Hi Guys,

What is the best way to move data from one drive to the other. They are not in the same Volume Group. I need to replace a drive with a larger drive and I need to keep the data. I was planning to move the data to another drive, replace the drive and bring the data back.
Can someone tell me how to do this.

Thank you in advance.
 
Make a new vg with the new drive. Then create the lvs of same size as the old volumegroup. Then excute the following command to make the lvs type copy.

chlv -t copy newlv

Then unmount the filesystem which you want to copy. Then execute

cplv -e destinationlv(newlv) sourcelv(oldlv)

Then it will ask that the lv data will be destroyed.Press y. Do not worry it is not going to destroy anything in the source.

Then after it is complete. Modify the /etc/filesystem to refelct the new lv pointed to the filesystem and the jfslog.
Then mount it. The new lv will become operational. Check the lsvg -l newvg. You will see the new lv opened.

Now you can get rid of the old lv. Like that you can do the otehr lvs.

 
its very simple.if the hard disks are on different volume groups.

1. check source disk size means no. of pps used.
2. check the target disk , no. of pps used.

you should have sufficient space for moving. then

#cplv -v <targetvolumegroupname> -y <newlogicalvolumename> <sourcelogicalvolumename>

follow this and move all the logical volumes from your drive.

#rmdev -ld /dev/hdisk?

add the new disk to same volume group

#mkdev -l /dev/hdisk?
#extendvg <vgname> <hdisk?>

again follow the cplv command to copy back the logical volumes.
aixnag
IBM Certified Specialist - P-series AIX 5L Administration
IBM Certified Specialist - AIX V4 HACMP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top