PowerHA; Import flash copy of VG?


 
Thread Tools Search this Thread
Operating Systems AIX PowerHA; Import flash copy of VG?
# 1  
Old 08-12-2014
PowerHA; Import flash copy of VG?

Hey guys, wondering if this is possible to accomplish.

PowerHA SystemMirror7.1 active/passive cluster. Restored a clustered system in test and upgraded to the latest version of PowerHA. Things are working great. However in the interest of time during cut over to the new system, I was hoping to take a flash copy of the data lun (datavg) from the current production cluster and import that to the new system, however, I'm getting stuck removing hdisk1 on the restored system.

Steps to recreate on the new cluster:

Stop the cluster services on both nodes so datavg is varied off

Code:
exportvg datavg

on both nodes - success
Code:
rmdev -l hdisk1 -Rd

on both nodes - success on node2(passive) fail on node1(active)

No matter what I try I can't remove the disk on node1, getting this error.

Code:
Method error (/etc/methods/ucfgdevice):
        0514-062 Cannot perform the requested function because the
                 specified device is busy.

The PVID's are going to change with the flash copy, so my thought was to remove these from ODM on the new system and then drop that lun. Next, add the flashed lun and do:

Code:
cfgmgr
importvg -y datavg hdisk1

Any suggestions?
# 2  
Old 08-14-2014
Your ODM might need to be massaged a bit (on some rare occasions it gets into an inconsistent state). Try the "synclvodm" command to correct that.

You might find out why the disk is busy by using "fuser" on the disk device ("/dev/hdiskX"). Maybe some monitoring agent or other software is holding it open.

I hope this helps.

bakunin
# 3  
Old 08-14-2014
Thanks for the reply. I actually resolved this yesterday.

The only way to do this was to first remove the cluster definition, because when volumes are part of a cluster resource group, you need to use cluster commands to make changes so the cluster is aware.

After removing the cluster definition I varied off the vg and exported the vg on both nodes. I could see the physical volume was still busy when trying to remove it, so I located the parent via:
Code:
lsdev -l hdisk1  -F parent

Turns out the fiber adapter was keeping the volume busy, this adapter is also used for the rootvg so disabling wasn't an option. A reboot was required.

Following the reboot I was able to remove the volume and add the newly flashed lun. Lastly I redefined the cluster, tested, success.
# 4  
Old 08-14-2014
Many thanks for the follow-up.

Quote:
Originally Posted by j_aix
The only way to do this was to first remove the cluster definition, because when volumes are part of a cluster resource group, you need to use cluster commands to make changes so the cluster is aware.
Interesting. This should not be the case. I remove volumes and change volume groups actually all the time, in 6.x-clusters as well as in 7.x-clusters. To have one disk remain constant in a VG and do "learning import" (importvg -L) on the other node is usually all it takes.

I usually even replace disks completely by: adding the new disk, mirror, importvg on the passive node, then unmirror, reducevg, another importvg on the passive node. Not even a takeover or application touchdown is necessary that way.

Quote:
Originally Posted by j_aix
I could see the physical volume was still busy when trying to remove it, so I located the parent via:
Code:
lsdev -l hdisk1  -F parent

Turns out the fiber adapter was keeping the volume busy, this adapter is also used for the rootvg so disabling wasn't an option. A reboot was required.

Following the reboot I was able to remove the volume and add the newly flashed lun. Lastly I redefined the cluster, tested, success.
My "gut feeling" rather says the FC adapter was the culprit, not the cluster software. Anyways, i am glad you resolved it.

bakunin
# 5  
Old 08-14-2014
Quote:
Originally Posted by bakunin
Interesting. This should not be the case. I remove volumes and change volume groups actually all the time, in 6.x-clusters as well as in 7.x-clusters. To have one disk remain constant in a VG and do "learning import" (importvg -L) on the other node is usually all it takes.

I usually even replace disks completely by: adding the new disk, mirror, importvg on the passive node, then unmirror, reducevg, another importvg on the passive node. Not even a takeover or application touchdown is necessary that way.
You're probably right, I think removing the cluster definition wouldn't have been necessary had I known it was the Fc adapter holding onto the volume. Of course in the process of narrowing it down it just turned out to be the way I did it. Since it was the only physical volume in the VG (and concurrent) I felt it was the safest way to go about it.

For my scenario I will need to do this (redefine the cluster) anyway due to a complete IP schema change. I may even try out the cluster snapshot feature going forward. Thanks again for the follow-up!
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. AIX

Upgrading PowerHA from 7.1.0 to 7.1.3

Hi All, As per the IBM upgrade/support matrix IBM Techdocs Technote: PowerHA for AIX Version Compatibility Matrix we can't do online upgrade or rolling migration from powerha v7.1.0 to v7.1.3. on AIX61_TL9_SP4, So we are following the steps as below ... 1 ) Bring down the cluster 2 )... (2 Replies)
Discussion started by: linux.amrit
2 Replies

2. AIX

VXVM in POWERHA 6.1

I have created a VxVM disk group in AIX7.1. I have tried to added this VxVM disk group in powerHA 6.1. But in cluster VxVM DGs are not listing. Is there any other procedure to add vxvm diskgroup to hacmp. Please share me steps for adding vxvm diskgroup to hacmp. (6 Replies)
Discussion started by: sunnybee
6 Replies

3. AIX

Powerha on AIX 6.1.9

hello ive installed powerha 7.1.3 on two servers aix 6.1.9 6100-09-03-1415 work with dmx4 EMC storgae. after sync cluster ( terminate with OK ) ive see that the repository disk upper only in one machine : hdiskpower60 00c7f6b59fc60d9d caavg_private active... (1 Reply)
Discussion started by: ariec
1 Replies

4. AIX

PowerHA with 3rd node for communication

Looking to find PowerHA with 3rd node used for communication (voting node) only. Does anyone use such configuration with IBM products? (2 Replies)
Discussion started by: gogogo
2 Replies

5. SuSE

In KDE Copy completed not always mean files were copied to USB flash drive - how to fix it?

I have noticed that when I copy files to flash disk and in UI I see message copy completed in notification area on task bar, usually copy is not completed. So, if I eject the media I loose data. It is very serious problem because may cause loss of valuable and even critical data. Moreover, when... (2 Replies)
Discussion started by: netwalker
2 Replies

6. Shell Programming and Scripting

Copy file to SD card from internal flash.

Hi, At first I have to say that I know nothing about Linux :( But I am looking for solution how to copy one file from internal Lowrnace HDS flash memory. Lowrance HDS is Linux based device. Here is the link for firmware update files for this unit. At the end of main firmware file there... (62 Replies)
Discussion started by: PouchX
62 Replies

7. AIX

Flash Copy Problem, has any one else seen this?

Around a month ago we suffered a prolonged power outage, due to circumstances the servers and storage arrays were still in use when the UPS dropped. One of the servers was running a flash copy on the database while batch processing had commenced. This is the only server that suffered any further... (2 Replies)
Discussion started by: gull04
2 Replies

8. AIX

strange route issue in powerha 5.4?

hi all we upgraded hacmp(powerha) from 5.2 to 5.4 recently . during the failover testing, we found a strange network issue. after standby node took service ip address (172.15.100.8) online at standby NIC, we were able to log in the standby node by telnet 172.15.100.8 which stays at... (1 Reply)
Discussion started by: rs6000er
1 Replies
Login or Register to Ask a Question