I am new to AIX 5.2 and would like to have a procedure validated by those with more experience.
I have just migrated a database from one set of EMC disks (ie hdiskpower0->40) to another set (ie. hdiskpower41->81). I mirrored the logical volumes, split the mirrors off the original set of disks, removed the original disks from the volume group, then removed disks from the server. This went very well.
Because we use EMC BCVs to replicate data between production and test systems, I would really like the hdiskpower0 on "prod" to map to hdiskpower0 on "test", not hdiskpower41. In short, I want to change the name of hdiskpower41 to hdiskpower0.
Here is what I was thinking of doing:
1) exportvg dbvg
2) rmdev -dl hdiskpowerN
3) powermt remove adapter=all
4) rmdev -dl hdiskN
5) rmdev -dl fscsiN
6) rmdev -l powerpath0
7) rmdev -l fcsN
At this point I think all record of the hdiskpowerN will be gone. So, I attempt to re-discover them:
8) emc_cfgmgr
9) powermt config
Finally, here are my questions. If I do the above:
a) will the disks be numbered beginning with hdiskpower0 or will it still use the name hdiskpower41?
b) will the disks be in the same numerical order?
c) most importantly, if the previous 2 questions are affirmative, can I do an "importvg" and recover the logical volumes and data with no problems?
I'll be gratefull for any comments.
I have just migrated a database from one set of EMC disks (ie hdiskpower0->40) to another set (ie. hdiskpower41->81). I mirrored the logical volumes, split the mirrors off the original set of disks, removed the original disks from the volume group, then removed disks from the server. This went very well.
Because we use EMC BCVs to replicate data between production and test systems, I would really like the hdiskpower0 on "prod" to map to hdiskpower0 on "test", not hdiskpower41. In short, I want to change the name of hdiskpower41 to hdiskpower0.
Here is what I was thinking of doing:
1) exportvg dbvg
2) rmdev -dl hdiskpowerN
3) powermt remove adapter=all
4) rmdev -dl hdiskN
5) rmdev -dl fscsiN
6) rmdev -l powerpath0
7) rmdev -l fcsN
At this point I think all record of the hdiskpowerN will be gone. So, I attempt to re-discover them:
8) emc_cfgmgr
9) powermt config
Finally, here are my questions. If I do the above:
a) will the disks be numbered beginning with hdiskpower0 or will it still use the name hdiskpower41?
b) will the disks be in the same numerical order?
c) most importantly, if the previous 2 questions are affirmative, can I do an "importvg" and recover the logical volumes and data with no problems?
I'll be gratefull for any comments.