Wednesday, October 5, 2011

Switch version doesn't switch

I ran into an issue recently running UCCX, although this has also happened to me on CUCM as well.  Let me make it known that these are running in VMware Workstation in a home lab.  In my recent attempt, I upgraded UCCX 8.5(1)SU1 to UCCX 8.5(1)SU2.  After the upgrade, I tried to perform a switch version from the OS Administration GUI.  But, watching from the CLI, nothing was happening.  So, I tried to switch it from the CLI with the utils system switch-version command, but got the following output:


admin: utils system switch-version


Active Master Version: 8.5.1.11001-35


Inactive Master Version: 8.5.1.11002-22




If you are switching to an earlier release, you must run:


utils dbreplication reset all


from the publisher after all the nodes are switched over.


Modified configurations will not be migrated in case you are
downgrading this server to an earlier release level




Do you really want to switch between versions ?


Enter (yes/no)? yes


 Switching Version and Restarting the Applicance ...


Switch version duration can vary depending on the database size
and platform configuration.  Please continue to monitor
the switchover process from here.




Waiting ................................


Operation failed


ERROR: Acquiring lock failed
admin:

Well, I couldn't find anything on Google, Netpro, or anywhere.  This resolution to fix this was simply rebooting normally with the utils system restart command.  Then, after the reboot, I was able to run the utils system switch-version command again, and this time it correctly switched to the other partition which made the upgraded 8.5(1)SU2 partition be the active one.  Not sure what happened, but this is what fixed it for me.  I think I had this one other time on CUCM when upgrading 8.6(1) to 8.6(2).

Another option for you if you can't switch versions is to boot to the Recovery CD for the application you are working with, then choose the option to switch version there.  I've typically used the Recovery CD to run the file system check if the server goes down hard and puts the file system in a read-only state.  But, you can also use it to switch between the active and inactive partitions.

Thanks!
IPTBuzz

1 comment:

Unknown said...

it comes when database is locked...most likely caused by a backup taken just prior to upgrade...during backup it locks the database and should unlock it when completed but doesnt happen sometimes...so have to restart the system to restart the database or take root account and set some files right to unlock...restart is always a simpler action if affordable...