From 9b26e72eaa38ce687b3026398771a0a969734742 Mon Sep 17 00:00:00 2001 From: lissav Date: Mon, 10 Jan 2011 18:18:05 +0000 Subject: [PATCH] fix defect 3140519, start of DB2 xcatdb instance after reboot git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8596 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/bin/db2sqlsetup | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/xCAT-client/bin/db2sqlsetup b/xCAT-client/bin/db2sqlsetup index 3cfc52103..1d909df42 100755 --- a/xCAT-client/bin/db2sqlsetup +++ b/xCAT-client/bin/db2sqlsetup @@ -1112,6 +1112,16 @@ sub db2reboot xCAT::MsgUtils->message("W", " $cmd failed."); } + # root needs to run the command also + $cmd = $::installdb2dir; + $cmd .= "\/bin\/db2iauto -on xcatdb "; + xCAT::Utils->runcmd($cmd, 0); + if ($::RUNCMD_RC != 0) + { # if error exit + xCAT::MsgUtils->message("W", " $cmd failed."); + + } + } #-----------------------------------------------------------------------------