From: Nathan F. <nf...@au...> - 2009-07-22 15:04:15
|
The /usr/sbin/rsct/bin/refrsrc command forces a refresh of the HMC/IVM and RMC status after a migration occurs. We should do this from the drmgr command instead of assuming servicelog is installed. A failure to invoke this command can cause additional migrations to be delayed for up to 10 minutes while the framework refreshes itself. The current scenario has the refrsrc command invoked from a servicelog notifier handler. This works in most cases but will cause a delay on systems that do not have servicelog installed. Additionally, one can build drmgr without servicelog support which would cause the notification to never be sent to servicelog even if it is installed. Signed-off-by: Nathan Fontenot <nf...@au...> --- Index: powerpc-utils/src/drmgr/drmig_chrp_pmig.c =================================================================== --- powerpc-utils.orig/src/drmgr/drmig_chrp_pmig.c 2009-07-10 14:46:25.000000000 -0500 +++ powerpc-utils/src/drmgr/drmig_chrp_pmig.c 2009-07-10 17:01:58.000000000 -0500 @@ -608,6 +608,10 @@ return rc; devtree_update(); + + dbg("Refreshing RMC via refrsrc\n"); + system("/usr/sbin/rsct/bin/refrsrc IBM.ManagementServer"); + #ifdef HAVE_SERVICELOG servicelog_update(sys_src); #endif |