From 03db3ab47f33c45ac497e71f6d1cab271d8e5158 Mon Sep 17 00:00:00 2001 From: lissav Date: Tue, 15 Nov 2011 12:18:45 +0000 Subject: [PATCH] do not dump/restore isnm_perf* tables git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.6@11016 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- xCAT-client/sbin/dumpxCATdb | 9 ++++++++- xCAT-client/sbin/restorexCATdb | 8 ++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/xCAT-client/sbin/dumpxCATdb b/xCAT-client/sbin/dumpxCATdb index cee67e827..77e84847b 100644 --- a/xCAT-client/sbin/dumpxCATdb +++ b/xCAT-client/sbin/dumpxCATdb @@ -68,7 +68,14 @@ foreach my $table (@output) } next; } - # skip and table in the site.skiptables attribute + # skip ISNM tables except isnm_config + if ( $table =~ /^isnm_perf/ ) { + if ($::DUMPVERBOSE) { + xCAT::MsgUtils->message("I", "Skipping $table\n"); + } + next; + } + # skip any table in the site.skiptables attribute if (grep(/^$table$/, @skiptbls)) { if ($::DUMPVERBOSE) { xCAT::MsgUtils->message("I", "Skipping $table\n"); diff --git a/xCAT-client/sbin/restorexCATdb b/xCAT-client/sbin/restorexCATdb index 9f4bf5f5f..88000abe6 100644 --- a/xCAT-client/sbin/restorexCATdb +++ b/xCAT-client/sbin/restorexCATdb @@ -71,6 +71,14 @@ foreach my $table (@files) } next; } + # skip ISNM tables except isnm_config + if ( $table =~ /^isnm_perf/ ) { + if ($::DUMPVERBOSE) { + xCAT::MsgUtils->message("I", "Skipping $table\n"); + } + next; + } + # skip and table in the site.skiptables attribute if (@skiptbls) { my ($tmptable,$suffix) = split(/\./,$table);