2
0
mirror of https://github.com/xcat2/xcat-core.git synced 2025-05-29 17:23:08 +00:00

Modify mysqlsetup and restorexCATdb to examine DB restoration delay

This commit is contained in:
Wai Yee Wong 2021-03-01 16:52:37 -05:00
parent eda8fba946
commit 617a4ed557
2 changed files with 18 additions and 1 deletions

View File

@ -1965,7 +1965,7 @@ sub restorexcatdb
}
# restore it
my $cmd = "XCATBYPASS=y XCATCFG=\"$xcatcfg\" restorexCATdb -p $::backupdir";
my $cmd = "XCATBYPASS=y XCATCFG=\"$xcatcfg\" restorexCATdb -p $::backupdir > /tmp/test_delay.log";
# not display passwords in verbose mode
my $tmpv = $::VERBOSE;

View File

@ -77,9 +77,26 @@ if (@output2) {
@skiptbls = split(/\,/, $output2[0]);
}
system("date");
print "\ndf:\n\n";
system("df");
print "\n";
system("lsblk");
print "\n";
print "meminfo:\n\n";
system("cat /proc/meminfo");
print "\n";
print "/etc/xcat/cfgloc\n\n";
system("cat /etc/xcat/cfgloc");
print "\n";
my @files = readdir(DIRPATH);
foreach my $table (@files)
{
system("date");
print "Table: $table\n\n";
if ($table ne '.' and $table ne '..')
{
my $tablename = $::PATH;