You won't even have to unmount the filesystems unless you want to kick the users off to reduce contention. migratepv basically mirrors one physical partition at a time, synchs them in case the original changed during the mirroring, then drops the original from the mirror.
Rod Knowlton
IBM Certified Advanced Technical Expert pSeries and AIX 5L
CompTIA Linux+
CompTIA Security+
What "flashcopy" are you referrring to? ESS/DS flashcopy just makes identical copies of LUNs, and it is basically not a good idea to keep these disks unchanged on the same system after flashcopying.
If the source and target LUNs are known on the same server, you need to use recreatevg to change the PVIDs and VGIDs on the target LUNs and use the LUNs as a new VG with new FS names.
Note that you can flashcopy a single LUN, but you need to flashcopy a complete set of LUNs containing a VolumeGroup - granted could be just one LUN: a VG with just one PV - if you want to get at the copied data after the flashcopy.
assign new luns on ESS to the server with the VG
run cfgmgr
run lsess (or lssdd if using SDD)
extendvg with new hdisks (or vpaths if SDD -> best to use smit if vpaths - extendvg4vp)
run migratepv oldpv newpv (run it once for every pair of PVs)
reducevg to remove old PVs from vg
rmdev -dl XXXX (vpaths and) hdisks - use info from lsess/lssdd
use the old PVs on the same server for a different VG
- or -
unassign old LUNs on ESS and they will be free for use ba another server.
Excuse my asking, but what is the point of this? except maybe the new LUNs are bigger. But if that is the case, why not just extendvg with additional LUNs. Or are you moving data from one ESS to another?
If I understand correctly, you have a VG with 2 disks (LUNs) and want to create a copy of the VG (lets say to do a trial run of the DB reorg.)
Stop the DB, flashcopy each of the 2 LUNs to their respective FC destination LUN. Then you have an exact copy of the VG on the dest. LUNs. For this reason it is best NOT to assign the destination LUNs to the same servers.
If you do, then a recreatevg will be necessary to modify the copied VG and its LVs/FSs - e.g. you can specify prefixes so that all the dest. LV names and labels (mount points in importvg stage) are modified:
The command recreatevg is in fact a modified version of importvg, that will avoid having duplicate LV names, FS mount points, VGIDs and PVIDs, which is basically not a good idea.
Again, see the redbooks on this. I don't know the complete procedure(s) by heart.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.