From 7cba4d28dae2666d551bcd28c11527915fd970e5 Mon Sep 17 00:00:00 2001 From: lissav Date: Thu, 19 Aug 2010 13:27:40 +0000 Subject: [PATCH] shutdown xcatdb after backing up the database to avoid error in bypass git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7145 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-server/sbin/db2sqlsetup | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xCAT-server/sbin/db2sqlsetup b/xCAT-server/sbin/db2sqlsetup index a6e7f656a..55ecd940e 100755 --- a/xCAT-server/sbin/db2sqlsetup +++ b/xCAT-server/sbin/db2sqlsetup @@ -244,8 +244,6 @@ if (($::INIT) && ($::xcatrunningdb2 == 0)) { if ($::SERVER) { # setting up server - # shutdown the xcatd daemon while migrating - &shutdownxcatd; # # Backup current database @@ -262,6 +260,8 @@ if (($::INIT) && ($::xcatrunningdb2 == 0)) } &backupxcatdb; + # shutdown the xcatd daemon while migrating + &shutdownxcatd; # # Get MN name from site.master in backed up database @@ -488,7 +488,7 @@ sub backupxcatdb } # back it up - my $cmd = "XCATBYPASS=1 dumpxCATdb -p $::backupdir"; + my $cmd = " dumpxCATdb -p $::backupdir"; xCAT::Utils->runcmd($cmd, 0); if ($::RUNCMD_RC != 0) {