NetBackup结合MEB备份恢复MySQL
一、环境摘要1。1NBU备份MySQL方案概述
NetBackup可采用以下几种方案对MySQL进行备份:
关闭MySQL并以文件形式离线备份(无法做到热备份)
采用脚本或工具(如mysqldump)将MySQL数据先导出到文件系统然后再通过NBU对其备份
采用Zmanda代理或MySQLEnterpriseBackup与NetBackup结合使用
补充说明:
自带的mysqldump备份恢复速度慢(只要是逻辑备份数据量较大均不推荐),备份出来的为sql语句(即DDLinsert),增备利用mysqlbinlog,必须开启二进制日志
NetBackup8。1之前版本并无MySQLAgent,NBUAgent从8。1才开始引入,是通过创建快照来进行MySQL备份(适用于Windows的卷影复制服务(VSS)或Linux的逻辑卷管理器(LVM)须可获取数据库快照)
注:NetBackupforMySQLAgent支持完全备份、完全恢复以及重定向恢复(即异机恢复),不支持增量备份恢复、表级备份恢复。
Zmanda或MEB对MySQL进行按需(全备、增备等)备份,NetBackup提供备份介质和策略管理(作业调度计划、保留周期等),NBU与其结合将MySQL直接备份至指定介质(如磁盘、磁带等)
Zmanda已从开源转向Enterprise且使用率较低,配置麻烦因此不再考虑使用
MySQLEnterpriseBackup3。6版本开始支持与介质管理软件(MMS)(如SymantecNetBackup,OracleSecureBackup(OSB),IBMTivoliStorageManager(TSM))连接,以通过系统备份到磁带(SBT)接口执行备份和还原操作。SBT是作为共享库(Linux中的libobk。so和Windows中的orasbt。dll)实现的OracleAPI,用于通过第三方软件供应商备份恢复数据,MEB可通过MetaLink下载正常使用但属于商业软件(本次仅用于测试)1。2备份工具指标对比工具
指标
MySQLEnterpriseBackup
MySQLUtilities
mysqldump
Physicalcopy
LVMZFSsnapshot
XtraBackup
备份类型
Physical
Logical
Logical
Physical
Physical
Physical
备份速度
Medium
Slow
Slow
Fast
Fast
Medium
恢复速度
Fast
Slow
Slow
Fast
Fast
Fast
系统支持
All
All
All
All
LVMonly
All
数据库引擎
All
All
All
All
AllInnoDB
XtraDB
MyISAM
注:以上数据仅供参考,表格中所有工具并未全部测试,数据来源于网络
备注:XtraBackup是一款可免费使用的开源工具,功能、使用率及备份速度均不错(与MEB难分伯仲),但此工具仅备份至文件系统或其他服务器,无法直接通过NetBackuplib库(libobk。so)结合将数据备份至NBU备份介质。1。3测试环境简述
本次测试采用NetBackup7。7。3LinuxServer通过MEB(MySQLEnterpriseBackup)对MySQL5。6和5。7分别进行备份恢复操作(采用LAN备份),备份拓扑如下图所示:
说明(经验值,需根据具体环境而定):
数据量小于500GB可优先考虑采用LAN模式备份(部署相对简单方便且StandardClient无需访问备份介质)
数据量大于500GB可考虑采用LANFREE模式备份(需EnterpriseClient且可访问备份介质)
数据量小于2TB可考虑每日完全备份,大于2TB考虑每周12次全备增备组合方式
在备份数据量较大、保留周期较长、备份频率较高等环境中若后端备份介质支持压缩、去重功能可节省大量空间二、参数核查
12。1系统版本检查catetcredhatrelease
CentOSrelease6。10(Final)2。2MySQL版本检查
以下几种方法任选其一即可:
方法一:用户登录后便可看到版本信息
方法二:通过status命令查看
方法三:通过select命令查看
方法四:通过mysqlhelp命令查看
方法五:通过rpmqa命令查看2。3MySQL其他参数查看
1、查看port:
mysqlshowglobalvariableslikeport;
2、查看datadir:
mysqlshowglobalvariableslikedatadir;三、创建用户并赋权
备份需要MySQL特定用户连接到MySQL服务器,因此需要单独创建备份用户并赋权(亦可使用如root等管理账户操作)。
注:请根据之前核查的MySQL版本对应选择:3。1MySQL5。7。21andlaterCREATEUSERmysqlbkuserlocalhostIDENTIFIEDBYPssw0rd;
GRANTRELOADON。TOmysqlbkuserlocalhost;
GRANTCREATE,INSERT,DROP,UPDATEONmysql。backupprogressTOmysqlbkuserlocalhost;
GRANTCREATE,INSERT,DROP,UPDATE,SELECT,ALTERONmysql。backuphistoryTOmysqlbkuserlocalhost;
GRANTREPLICATIONCLIENTON。TOmysqlbkuserlocalhost;
GRANTSUPERON。TOmysqlbkuserlocalhost;
GRANTPROCESSON。TOmysqlbkuserlocalhost;
GRANTSELECTONperformanceschema。replicationgroupmembersTOmysqlbkuserlocalhost;备1:Forusingtransportabletablespaces(TTS)tobackupandrestoreInnoDBtables还须赋予以下权限,否则跳过:
GRANTLOCKTABLES,ALTER,SELECT,CREATE,DROP,FILEON。TOmysqlbkuserlocalhost;备2:ForcreatingtapebackupsusingtheSystemBackuptoTape(SBT)API还须赋予以下权限,否则跳过:
GRANTCREATE,INSERT,DROP,UPDATEONmysql。backupsbthistoryTOmysqlbkuserlocalhost;3。2MySQL5。7。9to5。7。20CREATEUSERmysqlbkuserlocalhostIDENTIFIEDBYPssw0rd;
GRANTRELOADON。TOmysqlbkuserlocalhost;
GRANTCREATE,INSERT,DROP,UPDATEONmysql。backupprogressTOmysqlbkuserlocalhost;
GRANTCREATE,INSERT,SELECT,DROP,UPDATEONmysql。backuphistoryTOmysqlbkuserlocalhost;
GRANTREPLICATIONCLIENTON。TOmysqlbkuserlocalhost;
GRANTSUPERON。TOmysqlbkuserlocalhost;
GRANTPROCESSON。TOmysqlbkuserlocalhost;备1:Forusingtransportabletablespaces(TTS)tobackupandrestoreInnoDBtables还须赋予以下权限,否则跳过:
GRANTLOCKTABLES,ALTER,SELECT,CREATE,DROP,FILEON。TOmysqlbkuserlocalhost;备2:ForcreatingtapebackupsusingtheSystemBackuptoTape(SBT)API还须赋予以下权限,否则跳过:
GRANTCREATE,INSERT,DROP,UPDATEONmysql。backupsbthistoryTOmysqlbkuserlocalhost;3。3MySQL5。7。9earlierand5。6CREATEUSERmysqlbkuserlocalhostIDENTIFIEDBYPssw0rd;
GRANTRELOADON。TOmysqlbkuserlocalhost;
GRANTCREATE,INSERT,DROP,UPDATEONmysql。backupprogressTOmysqlbkuserlocalhost;
GRANTCREATE,INSERT,SELECT,DROP,UPDATEONmysql。backuphistoryTOmysqlbkuserlocalhost;
GRANTREPLICATIONCLIENTON。TOmysqlbkuserlocalhost;
GRANTSUPERON。TOmysqlbkuserlocalhost;备1:Forusingtransportabletablespaces(TTS)tobackupandrestoreInnoDBtables还须赋予以下权限,否则跳过:
GRANTLOCKTABLES,ALTER,SELECT,CREATE,DROP,FILEON。TOmysqlbkuserlocalhost;备2:ForcreatingtapebackupsusingtheSystemBackuptoTape(SBT)API还须赋予以下权限,否则跳过:
GRANTCREATE,INSERT,DROP,UPDATEONmysql。backupsbthistoryTOmysqlbkuserlocalhost;四、创建备份脚本
使用《CreateNBUScriptsV1。2。sh》可快速规范创建NBU备份MySQL或ORACLE脚本,提高效率并降低出错率,具体步骤如下:
1、将脚本上传至客户端任意目录并赋权:
chmodxCreateNBUScriptsV1。2。sh
2、运行脚本并输入相关信息(根据提示输入需要的信息即可),如下所示:〔rootbackuptmp〕。CreateNBUScriptsV1。2。sh
CreateNetBackupScript,Doyouwishtocontinue?〔y,n〕(y)
ChoosetheBackupTypeyouwishtocreate
1)NetBackupScriptforMySQLDataBase(UseMEB)
2)NetBackupScriptforOracleDataBase
3)NetBackupScriptforOracleArchiveLog
4)NetBackupScriptforOracleDataBaseandArchiveLog
x)ExitfromthisScript
Chooseanoption:1
Inputscriptdirectoryandname:(default:usropenvscripts)
InputMySQLportnumber:(default:3306)
InputMySQLusername:(default:mysqlbkuser)
InputMySQLUsermysqlbkuserspassword:(default:Pssw0rd)
InputMySQLIPaddress:(default:127。0。0。1)
InputMySQLthedirectorytostorethebackupdata:(default:mysqlbaknbu)
mysqlbaknbudirectorydoesnotexist,createthedirectory?〔y,n〕(y)
Inputscriptname:(default:hotmysql。sh)
InputMEBmysqlbackupfilepath:(optmysqlmeb3。12binmysqlbackup)
usropenvscriptshotmysql。shhasbeencreated。
Thisscriptcanbedeletedafteryouaresurethecreatewassuccessful。
3、完成后的脚本信息如下所示:!binsh
2018。08。0709:53:29byyto
MEBoptmysqlmeb3。12binmysqlbackup
MYSQLPORT3306
MYSQLINSTALLUSERroot
MYSQLDBUSERmysqlbkuser
MYSQLPWDPssw0rd
MYSQLHOST127。0。0。1
MYSQLBAKDIRmysqlbaknbu
eecho(){echo1BAKLOGFILE21;}
CUSERidcutd(f2cutd)f1
if〔〔NBORAINCR1NBORACINC1〕〕;thenBKTPINC;elseBKTPFUL;fi
BAKLOGFILE{0}{BKTP}dateYmdHMS。out
eecho
chmod666BAKLOGFILE
eechoScript0
eechostartedondate
eecho
eechoMEB:MEB
eechoMYSQLHOST:MYSQLHOST
eechoMYSQLINSTALLUSER:MYSQLINSTALLUSER
eechoMYSQLPORT:MYSQLPORT
eechoMYSQLDBUSER:MYSQLDBUSER
eechoMYSQLBAKDIR:MYSQLBAKDIR
eecho
eechoNBORAFULL:NBORAFULL
eechoNBORAINCR:NBORAINCR
eechoNBORACINC:NBORACINC
eechoNBORASERV:NBORASERV
eechoNBORACLIENT:NBORACLIENT
eechoNBORAPOLICY:NBORAPOLICY
eecho
if〔NBORAFULL1〕;theneechoFullbackuprequested;BACKUPTYPE0
elif〔NBORAINCR1〕;theneechoDifferentialincrementalbackuprequested;BACKUPTYPE1
elif〔NBORACINC1〕;theneechoCumulativeincrementalbackuprequested;BACKUPTYPE1
elif〔BACKUPTYPE〕;theneechoDefaultFullbackuprequested;BACKUPTYPE0
fi
eecho
eecho
eechoListallfilesintheMYSQLBAKDIR
lsltrMYSQLBAKDIRBAKLOGFILE21;
eecho
eecho
eechoDeleteallfilesintheMYSQLBAKDIR
rmfr{MYSQLBAKDIR}datadir{MYSQLBAKDIR}meta{MYSQLBAKDIR}。cnf
eecho
eecho
if〔BACKUPTYPE0〕;thenCMDSTRMEBportMYSQLPORTuserMYSQLDBUSERpasswordMYSQLPWDhostMYSQLHOSTbackupimagesbt:FULLbkpsbtNBdateymdHMSsbtlibpathusropenvnetbackupbinlibobk。so64
sbtenvironmentNBORASERV{NBORASERV},NBORACLIENT{NBORACLIENT},NBORAPOLICY{NBORAPOLICY}backupdirMYSQLBAKDIRbackuptoimagedevnull2BAKLOGFILE;elseCMDSTRMEBportMYSQLPORTuserMYSQ
LDBUSERpasswordMYSQLPWDhostMYSQLHOSTincrementaloptimisticincrementalincrementalbasehistory:lastbackupbackupimagesbt:INCbkpsbtNBdateymdHMSsbtlibpathusropenvnetbackupbinlibobk。so64
sbtenvironmentNBORASERV{NBORASERV},NBORACLIENT{NBORACLIENT},NBORAPOLICY{NBORAPOLICY}backupdirMYSQLBAKDIRbackuptoimagedevnull2BAKLOGFILE;fi
if〔CUSERroot〕;thensuMYSQLINSTALLUSERcCMDSTR;RSTAT?;elsebinshcCMDSTR;RSTAT?;fi
if〔RSTAT0〕;thenLOGMSGendedsuccessfully;elseLOGMSGendedinerror;fi
eecho
eechoScript0
eechoLOGMSGondate
eecho
exitRSTAT
4、附件(脚本)如下:五、创建备份策略
1、创建一个新策略并输入策略名称:
2、Attributes选项卡中修改Policytype为Oracle并设置好Policystorage和Policyvolumepool:
3、Clients选项卡中修改为Clientsforusewithscriptsortemplates并添加客户端名称(须可解析)或IP地址:
4、BackupSelections选项卡中选择并添加之前创建好的备份脚本:
5、Schedules选项卡中添加调度策略并设置保留周期:六、手工发起备份测试
1、右键单击之前创建好的策略并选择ManualBackup:
2、选择全备:
3、此时在ActivityMonitor界面中可看到备份作业已在运行中:
4、等待备份完成后在之前的脚本所在目录中可生成备份作业日志:
5、可查看此out文件查看备份情况以及后期排故:
〔rootbackupscripts〕morehotmysql。shFUL20180807113438。out
Scriptusropenvscriptshotmysql。sh
startedonTueAug711:34:38CST2018
MEB:optmysqlmeb3。12binmysqlbackup
MYSQLHOST:127。0。0。1
MYSQLINSTALLUSER:root
MYSQLPORT:3306
MYSQLDBUSER:mysqlbkuser
MYSQLBAKDIR:mysqlbaknbu
NBORAFULL:1
NBORAINCR:0
NBORACINC:0
NBORASERV:backup
NBORACLIENT:backup
NBORAPOLICY:mysqltest
Fullbackuprequested
Listallfilesinthemysqlbaknbu
total32
rwrr1rootroot245Aug711:30backupmy。cnf
drwx2rootroot4096Aug711:30meta
rwrr1rootroot3478Aug711:30servermy。cnf
rwrr1rootroot12805Aug711:30serverall。cnf
drwx2rootroot4096Aug711:30datadir
Deleteallfilesinthemysqlbaknbu
MySQLEnterpriseBackupversion3。12。3Linux3。8。1316。2。1。el6uek。x8664x8664〔20160505〕
Copyright(c)2003,2016,Oracleandoritsaffiliates。AllRightsReserved。
mysqlbackup:INFO:Startingwithfollowingcommandline。。。
optmysqlmeb3。12binmysqlbackupport3306usermysqlbkuser
passwordxxxxxxxxxxxxhost127。0。0。1
backupimagesbt:FULLbkpsbtNB180807113438
sbtlibpathusropenvnetbackupbinlibobk。so64
sbtenvironmentNBORASERVbackup,NBORACLIENTbackup,NBORAPOLICYmysqltest
backupdirmysqlbaknbubackuptoimage
mysqlbackup:INFO:
mysqlbackup:INFO:MySQLserverversionis5。6。28。
mysqlbackup:INFO:Gotsomeserverconfigurationinformationfromrunningserver。
mysqlbackup:INFO:sbtenvironment:NBORASERVbackup,NBORACLIENTbackup,NBORAPOLICYmysqltest
IMPORTANT:Pleasecheckthatmysqlbackupruncompletessuccessfully。
Attheendofasuccessfulbackuptoimagerunmysqlbackup
printsmysqlbackupcompletedOK!。
18080711:34:38mysqlbackup:INFO:MEBlogfilecreatedatmysqlbaknbumetaMEB20180807。113438imagebackup。log
ServerRepositoryOptions:
datadirvarlibmysql
innodbdatahomedir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirvarlibmysql
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesize16384
innodbchecksumalgorithminnodb
innodbundodirectoryvarlibmysql
innodbundotablespaces0
innodbundologs128
BackupConfigOptions:
datadirmysqlbaknbudatadir
innodbdatahomedirmysqlbaknbudatadir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirmysqlbaknbudatadir
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesize16384
innodbchecksumalgorithminnodb
innodbundodirectorymysqlbaknbudatadir
innodbundotablespaces0
innodbundologs128
BackupImagePathFULLbkpsbtNB180807113438
mysqlbackup:INFO:Uniquegeneratedbackupidforthisis15336128784440242
mysqlbackup:INFO:Creating14bufferseachofsize16777216。
18080711:34:40mysqlbackup:INFO:mebsbtsessionopen:MMSversion5。0。0。0
18080711:34:40mysqlbackup:INFO:mebsbtsessionopen:MMSisVeritasNetBackupforOracleRelease7。7。3(2016051915)
18080711:34:47mysqlbackup:INFO:FullImageBackupoperationstartswithfollowingthreads
1readthreads6processthreads1writethreads
18080711:34:47mysqlbackup:INFO:SystemtablespacefileformatisAntelope。
18080711:34:47mysqlbackup:INFO:Startingtocopyallinnodbfiles。。。
mysqlbackup:INFO:Couldnotfindbinlogindexfile。binlogswillnotbecopiedforthisbackup。
PointInTimeRecoverywillnotbepossible。
Ifthisisonlinebackupthenservermaynothavestartedwithlogbin。
Youmayspecifyitslocationwithlogbinindexoption。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbubackupmy。cnf。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetabackupcreate。xml。
18080711:34:47mysqlbackup:INFO:Copyingvarlibmysqlibdata1(Antelopefileformat)。
18080711:34:47mysqlbackup:INFO:Foundcheckpointatlsn1630743。
18080711:34:47mysqlbackup:INFO:Startinglogscanfromlsn1630720。
18080711:34:47mysqlbackup:INFO:Copyinglog。。。
18080711:34:47mysqlbackup:INFO:Logcopied,lsn1630743。
18080711:34:47mysqlbackup:INFO:Copyingvarlibmysqlmysqlinnodbindexstats。ibd(Antelopefileformat)。
18080711:34:47mysqlbackup:INFO:Copyingvarlibmysqlmysqlinnodbtablestats。ibd(Antelopefileformat)。
18080711:34:47mysqlbackup:INFO:Copyingvarlibmysqlmysqlslavemasterinfo。ibd(Antelopefileformat)。
18080711:34:47mysqlbackup:INFO:Copyingvarlibmysqlmysqlslaverelayloginfo。ibd(Antelopefileformat)。
18080711:34:47mysqlbackup:INFO:Copyingvarlibmysqlmysqlslaveworkerinfo。ibd(Antelopefileformat)。
18080711:34:47mysqlbackup:INFO:Copyingvarlibmysqltesttest。ibd(Antelopefileformat)。
18080711:34:47mysqlbackup:INFO:Completingthecopyofinnodbfiles。
18080711:34:47mysqlbackup:INFO:Preparingtolocktables:Connectedtomysqldserver。
18080711:34:47mysqlbackup:INFO:Startingtolockallthetables。。。
18080711:34:47mysqlbackup:INFO:Alltablesarelockedandflushedtodisk
18080711:34:47mysqlbackup:INFO:Openingbackupsourcedirectoryvarlibmysql
18080711:34:47mysqlbackup:INFO:Startingtobackupallnoninnodbfilesin
subdirectoriesofvarlibmysql
18080711:34:47mysqlbackup:INFO:Addingdatabasedirectory:datadirmysql
eschema47mysqlbackup:INFO:Addingdatabasedirectory:datadirperformancMore(74)
18080711:34:47mysqlbackup:INFO:Addingdatabasedirectory:datadirtest
18080711:34:47mysqlbackup:INFO:Completingthecopyofallnoninnodbfiles。
18080711:34:48mysqlbackup:INFO:Acopieddatabasepagewasmodifiedat1630743。
(Thisisthehighestlsnfoundonpage)
Scannedloguptolsn1630743。
Wasabletoparsetheloguptolsn1630743。
Maximumpagenumberforalogrecord0
18080711:34:48mysqlbackup:INFO:Alltablesunlocked
18080711:34:48mysqlbackup:INFO:AllMySQLtableswerelockedfor0。689seconds。
18080711:34:48mysqlbackup:INFO:Readingallglobalvariablesfromtheserver。18080711:34:48mysqlbackup:INFO:Completedreadingofallglobalvariablesfromtheserver。
18080711:34:48mysqlbackup:INFO:Creatingserverconfigfilesservermy。cnfandserverall。cnfinmysqlbaknbu
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetabackupvariables。txt。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbudatadiribbackuplogfile。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbuserverall。cnf。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbuservermy。cnf。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetabackupcontent。xml。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetaimagefiles。xml。
18080711:34:49mysqlbackup:INFO:mebsbtbackupclose:blocks:15size:1048576bytes:14990540
18080711:34:49mysqlbackup:INFO:FullImageBackupoperationcompletedsuccessfully。
18080711:34:49mysqlbackup:INFO:Backupimagecreatedsuccessfully。
mysqlbackup:INFO:ImagePathsbt:FULLbkpsbtNB180807113438
ParametersSummary
StartLSN:1630720
EndLSN:1630743
mysqlbackupcompletedOK!
Scriptusropenvscriptshotmysql。sh
endedsuccessfullyonTueAug711:34:49CST2018
6、同样操作发起增量备份:
〔rootbackupscripts〕cathotmysql。shINC20180807113830。out
Scriptusropenvscriptshotmysql。sh
startedonTueAug711:38:30CST2018
MEB:optmysqlmeb3。12binmysqlbackup
MYSQLHOST:127。0。0。1
MYSQLINSTALLUSER:root
MYSQLPORT:3306
MYSQLDBUSER:mysqlbkuser
MYSQLBAKDIR:mysqlbaknbu
NBORAFULL:0
NBORAINCR:1
NBORACINC:0
NBORASERV:backup
NBORACLIENT:backup
NBORAPOLICY:mysqltest
Differentialincrementalbackuprequested
Listallfilesinthemysqlbaknbu
total32
rwrr1rootroot245Aug711:34backupmy。cnf
drwx2rootroot4096Aug711:34meta
rwrr1rootroot3478Aug711:34servermy。cnf
rwrr1rootroot12805Aug711:34serverall。cnf
drwx2rootroot4096Aug711:34datadir
Deleteallfilesinthemysqlbaknbu
MySQLEnterpriseBackupversion3。12。3Linux3。8。1316。2。1。el6uek。x8664x8664〔20160505〕
Copyright(c)2003,2016,Oracleandoritsaffiliates。AllRightsReserved。
mysqlbackup:INFO:Startingwithfollowingcommandline。。。
optmysqlmeb3。12binmysqlbackupport3306usermysqlbkuser
passwordxxxxxxxxxxxxhost127。0。0。1incrementaloptimistic
incrementalincrementalbasehistory:lastbackup
backupimagesbt:INCbkpsbtNB180807113830
sbtlibpathusropenvnetbackupbinlibobk。so64
sbtenvironmentNBORASERVbackup,NBORACLIENTbackup,NBORAPOLICYmysqltest
backupdirmysqlbaknbubackuptoimage
Warning:mysqlbackup:ignoringoptionincrementalduetoinvalidvalueoptimistic
mysqlbackup:INFO:
mysqlbackup:INFO:MySQLserverversionis5。6。28。
mysqlbackup:INFO:Gotsomeserverconfigurationinformationfromrunningserver。
mysqlbackup:INFO:sbtenvironment:NBORASERVbackup,NBORACLIENTbackup,NBORAPOLICYmysqltest
IMPORTANT:Pleasecheckthatmysqlbackupruncompletessuccessfully。
Attheendofasuccessfulbackuptoimagerunmysqlbackup
printsmysqlbackupcompletedOK!。
18080711:38:30mysqlbackup:INFO:MEBlogfilecreatedatmysqlbaknbumetaMEB20180807。113830incimgbackup。log
18080711:38:30mysqlbackup:INFO:Locationoflastsuccessfulbackup:mysqlbaknbu。
18080711:38:30mysqlbackup:INFO:Endtimeoflastsuccessfulbackup:2018080711:34:48。
18080711:38:30mysqlbackup:INFO:Lastbackuptype:FULL。
18080711:38:30mysqlbackup:INFO:Usingstartlsn1630743,calculatedfrombackuphistorytableofMySQLserver。
ServerRepositoryOptions:
datadirvarlibmysql
innodbdatahomedir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirvarlibmysql
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesize16384
innodbchecksumalgorithminnodb
innodbundodirectoryvarlibmysql
innodbundotablespaces0
innodbundologs128
BackupConfigOptions:
datadirmysqlbaknbudatadir
innodbdatahomedirmysqlbaknbudatadir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirmysqlbaknbudatadir
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesize16384
innodbchecksumalgorithminnodb
innodbundodirectorymysqlbaknbudatadir
innodbundotablespaces0
innodbundologs128
BackupImagePathINCbkpsbtNB180807113830
mysqlbackup:INFO:Uniquegeneratedbackupidforthisis15336131104603398
mysqlbackup:INFO:Creating15bufferseachofsize16908288。
18080711:38:32mysqlbackup:INFO:mebsbtsessionopen:MMSversion5。0。0。0
18080711:38:32mysqlbackup:INFO:mebsbtsessionopen:MMSisVeritasNetBackupforOracleRelease7。7。3(2016051915)
18080711:38:39mysqlbackup:INFO:IncrementalImageBackupoperationstartswithfollowingthreads
1readthreads6processthreads1writethreads
18080711:38:39mysqlbackup:INFO:SystemtablespacefileformatisAntelope。
18080711:38:39mysqlbackup:INFO:Startingtocopyallinnodbfiles。。。
mysqlbackup:INFO:Couldnotfindbinlogindexfile。binlogswillnotbecopiedforthisbackup。
PointInTimeRecoverywillnotbepossible。
Ifthisisonlinebackupthenservermaynothavestartedwithlogbin。
Youmayspecifyitslocationwithlogbinindexoption。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbubackupmy。cnf。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetabackupcreate。xml。
18080711:38:39mysqlbackup:INFO:Foundcheckpointatlsn1692774。
18080711:38:39mysqlbackup:INFO:Startinglogscanfromlsn1692672。
18080711:38:39mysqlbackup:INFO:Copyinglog。。。
18080711:38:39mysqlbackup:INFO:Logcopied,lsn1692774。
18080711:38:39mysqlbackup:INFO:Copyingvarlibmysqlibdata1(Antelopefileformat)。
18080711:38:39mysqlbackup:INFO:Copyingvarlibmysqlmysqlinnodbindexstats。ibd(Antelopefileformat)。
18080711:38:39mysqlbackup:INFO:Copyingvarlibmysqlmysqlinnodbtablestats。ibd(Antelopefileformat)。
18080711:38:39mysqlbackup:INFO:Copyingvarlibmysqlmysqlslavemasterinfo。ibd(Antelopefileformat)。
18080711:38:39mysqlbackup:INFO:Copyingvarlibmysqlmysqlslaverelayloginfo。ibd(Antelopefileformat)。
18080711:38:39mysqlbackup:INFO:Copyingvarlibmysqlmysqlslaveworkerinfo。ibd(Antelopefileformat)。
18080711:38:39mysqlbackup:INFO:Copyingvarlibmysqltesttest。ibd(Antelopefileformat)。
18080711:38:39mysqlbackup:INFO:Completingthecopyofinnodbfiles。
18080711:38:39mysqlbackup:INFO:Preparingtolocktables:Connectedtomysqldserver。
18080711:38:39mysqlbackup:INFO:Startingtolockallthetables。。。
18080711:38:39mysqlbackup:INFO:Alltablesarelockedandflushedtodisk
18080711:38:39mysqlbackup:INFO:Openingbackupsourcedirectoryvarlibmysql
18080711:38:39mysqlbackup:INFO:Startingtobackupallnoninnodbfilesin
subdirectoriesofvarlibmysql
18080711:38:39mysqlbackup:INFO:Addingdatabasedirectory:datadirmysql
18080711:38:39mysqlbackup:INFO:Addingdatabasedirectory:datadirperformanceschema
18080711:38:39mysqlbackup:INFO:Addingdatabasedirectory:datadirtest
18080711:38:39mysqlbackup:INFO:Completingthecopyofallnoninnodbfiles。
18080711:38:40mysqlbackup:INFO:Acopieddatabasepagewasmodifiedat1692774。
(Thisisthehighestlsnfoundonpage)
Scannedloguptolsn1692774。
Wasabletoparsetheloguptolsn1692774。
Maximumpagenumberforalogrecord0
18080711:38:40mysqlbackup:INFO:Alltablesunlocked
18080711:38:40mysqlbackup:INFO:AllMySQLtableswerelockedfor0。941seconds。
18080711:38:40mysqlbackup:INFO:Readingallglobalvariablesfromtheserver。
18080711:38:40mysqlbackup:INFO:Completedreadingofallglobalvariablesfromtheserver。
18080711:38:40mysqlbackup:INFO:Creatingserverconfigfilesservermy。cnfandserverall。cnfinmysqlbaknbu
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetabackupvariables。txt。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbudatadiribbackuplogfile。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbuserverall。cnf。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbuservermy。cnf。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbudatadiribbackupibdfiles。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetabackupcontent。xml。
mysqlbackup:INFO:Copyingmetafilemysqlbaknbumetaimagefiles。xml。
18080711:38:41mysqlbackup:INFO:mebsbtbackupclose:blocks:3size:1048576bytes:2474554
18080711:38:41mysqlbackup:INFO:IncrementalImageBackupoperationcompletedsuccessfully。
18080711:38:41mysqlbackup:INFO:Backupimagecreatedsuccessfully。
mysqlbackup:INFO:ImagePathsbt:INCbkpsbtNB180807113830
18080711:38:41mysqlbackup:INFO:Backupcontainschangesfromlsn1630744tolsn1692774
ParametersSummary
StartLSN:1630744
EndLSN:1692774
mysqlbackupcompletedOK!
Scriptusropenvscriptshotmysql。sh
endedsuccessfullyonTueAug711:38:41CST2018七、全备恢复测试
恢复主要分三大步:restore、applylog、copyback
1、第一步:restore
optmysqlmeb4。1binmysqlbackupsbtlibpathusropenvnetbackupbinlibobk。so64backupdirmysqlrestorebackupimagesbt:FULLbkpsbtNB180804003931imagetobackupdir
2、第二步:applylog
optmysqlmeb4。1binmysqlbackupbackupdirmysqlrestoreapplylog
3、第三步:copyback拷贝前先关闭数据库或停止mysqld服务
mysqladminurootpshutdown或servicemysqldstop
optmysqlmeb4。1binmysqlbackupbackupdirmysqlrestorecopybackforce注:若原有datadir目录存在且不为空则会报错,删除原有文件或使用force选项
18080401:47:10MAINERROR:Thedatadirexistsandisnotempty。Usetheforceoption,ifyouwanttooverwritethedatadironyourownrisk。
说明:以上分步操作亦可使用copybackandapplylog参数一步完成:
1、关闭数据库或停止mysqld服务:mysqladminurootpshutdown
2、恢复操作:
optmysqlmeb3。12binmysqlbackupsbtlibpathusropenvnetbackupbinlibobk。so64datadirvarlibmysqlbackupdirmysqlrestorebackupimagesbt:FULLbkpsbtNB180807113438copybackandapplylogforce
注1:datadir参数是否必须根据MEB版本有所不同
注2:恢复完成后mysqld服务若无法正常启动首先确认数据文件用户及所属组属性设置是否正确(通过chownmysql:mysqlxxx修改)
3、命令运行后会在NBUJAVACONSOLE的ActivityMonitor界面中看到恢复作业已在运行中:
4、恢复输出仅供参考:
optmysqlmeb3。12binmysqlbackupsbtlibpathusropenvnetbackupbinlibobk。so64datadirvarlibmysqlbackupdirmysqlrestorebackupimagesbt:FULLbkpsbtNB180807113438copybackandapplylogforce
MySQLEnterpriseBackupversion3。12。3Linux3。8。1316。2。1。el6uek。x8664x8664〔20160505〕
Copyright(c)2003,2016,Oracleandoritsaffiliates。AllRightsReserved。
mysqlbackup:INFO:Startingwithfollowingcommandline。。。
optmysqlmeb3。12binmysqlbackup
sbtlibpathusropenvnetbackupbinlibobk。so64
datadirvarlibmysqlbackupdirtmpmysqlrestore
backupimagesbt:FULLbkpsbtNB180807113438copybackandapplylog
force
mysqlbackup:INFO:
IMPORTANT:Pleasecheckthatmysqlbackupruncompletessuccessfully。
Attheendofasuccessfulcopybackandapplylogrunmysqlbackup
printsmysqlbackupcompletedOK!。
18080711:57:35mysqlbackup:INFO:mebsbtsessionopen:MMSversion5。0。0。0
18080711:57:35mysqlbackup:INFO:mebsbtsessionopen:MMSisVeritasNetBackupforOracleRelease7。7。3(2016051915)
mysqlbackup:INFO:BackupImageMEBversionstring:3。12。3〔20160505〕
18080711:57:40mysqlbackup:INFO:MEBlogfilecreatedattmpmysqlrestoremetaMEB20180807。115740copybackimgtodatadir。log
mysqlbackup:WARNING:Ifyourestoretoaserverofadifferentversion,theinnodbdatafilepathparametermighthaveadifferentdefault。Inthatcaseyouneedtoaddinnodbdatafilepathibdata1:12M:autoextendtothetargetserverconfiguration。
mysqlbackup:WARNING:Ifyourestoretoaserverofadifferentversion,theinnodblogfilesingroupparametermighthaveadifferentdefault。Inthatcaseyouneedtoaddinnodblogfilesingroup2tothetargetserverconfiguration。
mysqlbackup:WARNING:Ifyourestoretoaserverofadifferentversion,theinnodblogfilesizeparametermighthaveadifferentdefault。Inthatcaseyouneedtoaddinnodblogfilesize50331648tothetargetserverconfiguration。
ServerRepositoryOptions:
datadirvarlibmysql
innodbdatahomedirvarlibmysql
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirvarlibmysql
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesizeNull
innodbchecksumalgorithminnodb
BackupConfigOptions:
datadirtmpmysqlrestoredatadir
innodbdatahomedirtmpmysqlrestoredatadir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirtmpmysqlrestoredatadir
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesize16384
innodbchecksumalgorithminnodb
mysqlbackup:INFO:Creating14bufferseachofsize16777216。
18080711:57:40mysqlbackup:INFO:Copybackandapplylogoperationstartswithfollowingthreads
1readthreads6processthreads1writethreads
18080711:57:40mysqlbackup:INFO:Copyingdatabasedirectory:meta
18080711:57:40mysqlbackup:INFO:Copyingdatadiribdata1。
18080711:57:40mysqlbackup:INFO:Copyingdatadirmysqlinnodbindexstats。ibd。
18080711:57:40mysqlbackup:INFO:Copyingdatadirmysqlinnodbtablestats。ibd。
18080711:57:40mysqlbackup:INFO:Copyingdatadirmysqlslavemasterinfo。ibd。
18080711:57:40mysqlbackup:INFO:Copyingdatabasedirectory:datadirmysql
18080711:57:40mysqlbackup:INFO:Copyingdatadirmysqlslaverelayloginfo。ibd。
18080711:57:40mysqlbackup:INFO:Copyingdatadirmysqlslaveworkerinfo。ibd。
18080711:57:40mysqlbackup:INFO:Copyingdatabasedirectory:datadirperformanceschema
18080711:57:40mysqlbackup:INFO:Copyingdatabasedirectory:datadirtest
18080711:57:40mysqlbackup:INFO:Copyingdatadirtesttest。ibd。
18080711:57:40mysqlbackup:INFO:Copyingdatabasedirectory:datadirmysql
18080711:57:40mysqlbackup:INFO:Copyingdatabasedirectory:datadirperformanceschema
18080711:57:40mysqlbackup:INFO:Copyingdatabasedirectory:datadirtest
18080711:57:40mysqlbackup:INFO:Totalfilesasspecifiedinimage:157
18080711:57:41mysqlbackup:INFO:mebsbtrestoreclose:blocks:15size:1048576bytes:14990540
18080711:57:41mysqlbackup:INFO:Creatingserverconfigfilesservermy。cnfandserverall。cnfinvarlibmysql
18080711:57:41mysqlbackup:INFO:Copybackoperationcompletedsuccessfully。
mysqlbackup:INFO:SourceImagePathsbt:FULLbkpsbtNB180807113438
mysqlbackup:INFO:Creating14bufferseachofsize65536。
18080711:57:41mysqlbackup:INFO:Applylogoperationstartswithfollowingthreads
1readthreads1processthreads
mysqlbackup:INFO:Usingupto100MBofmemory。
18080711:57:41mysqlbackup:INFO:ibbackuplogfilescreationparameters:
startlsn1630720,endlsn1630743,
startcheckpoint1630743。
InnoDB:Doingrecovery:scanneduptologsequencenumber1630743
mysqlbackup:INFO:InnoDB:Startinganapplybatchoflogrecordstothedatabase。。。
InnoDB:Progressinpercent:0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
mysqlbackup:INFO:InnoDB:Settinglogfilesizeto50331648
mysqlbackup:INFO:InnoDB:Settinglogfilesizeto50331648
18080711:57:42mysqlbackup:INFO:Wewereabletoparseibbackuplogfileupto
lsn1630743。
18080711:57:42mysqlbackup:INFO:Thefirstdatafileisvarlibmysqlibdata1
andthenewcreatedlogfilesareatvarlibmysql
18080711:57:42mysqlbackup:INFO:Applylogoperationcompletedsuccessfully。
18080711:57:42mysqlbackup:INFO:FullBackuphasbeenrestoredsuccessfully。
mysqlbackupcompletedOK!with3warnings
5、确认并修改权限:
6、更改用户及所属组并启动mysql服务:
7、登录数据库并进行数据校验、业务测试等。八、增量恢复测试
1、恢复操作:
optmysqlmeb3。12binmysqlbackupdatadirvarlibmysqlsbtlibpathusropenvnetbackupbinlibobk。so64incrementalbackupdirmysqlrestorebackupimagesbt:INCbkpsbtNB180807113830incrementalcopybackandapplylog
注1:datadir参数是否必须根据MEB版本有所不同
注2:恢复完成后mysqld服务若无法正常启动首先确认数据文件用户及所属组属性设置是否正确(通过chownmysql:mysqlxxx修改)
2、命令运行后会在NBUJAVACONSOLE的ActivityMonitor界面中看到恢复作业已在运行中;
3、恢复输出仅供参考:
optmysqlmeb3。12binmysqlbackupsbtlibpathusropenvnetbackupbinlibobk。so64incrementalbackupdirmysqlrestorebackupimagesbt:INCbkpsbtNB180807113830incrementalcopybackandapplylog
MySQLEnterpriseBackupversion3。12。3Linux3。8。1316。2。1。el6uek。x8664x8664〔20160505〕
Copyright(c)2003,2016,Oracleandoritsaffiliates。AllRightsReserved。
mysqlbackup:INFO:Startingwithfollowingcommandline。。。
optmysqlmeb3。12binmysqlbackup
sbtlibpathusropenvnetbackupbinlibobk。so64
incrementalbackupdirtmpmysqlrestore
backupimagesbt:INCbkpsbtNB180807113830incremental
copybackandapplylog
mysqlbackup:INFO:
mysqlbackup:ERROR:Missingorinvalidoption:
Needdatadirforincrementalcopybackandapplylog。
SpecifiedOperation:copybackandapplylog
Usehelpoptionforusagedescription。
mysqlbackupfailedwitherrors!
〔rootbackupscripts〕optmysqlmeb3。12binmysqlbackupdatadirvarlibmysqlsbtlibpathusropenvnetbackupbinlibobk。so64incrementalbackupdirtmpmysqlrestorebackupimagesbt:INCbkpsbtNB180807113830incrementalcopybackandapplylog
MySQLEnterpriseBackupversion3。12。3Linux3。8。1316。2。1。el6uek。x8664x8664〔20160505〕
Copyright(c)2003,2016,Oracleandoritsaffiliates。AllRightsReserved。
mysqlbackup:INFO:Startingwithfollowingcommandline。。。
optmysqlmeb3。12binmysqlbackupdatadirvarlibmysql
sbtlibpathusropenvnetbackupbinlibobk。so64
incrementalbackupdirtmpmysqlrestore
backupimagesbt:INCbkpsbtNB180807113830incremental
copybackandapplylog
mysqlbackup:INFO:
IMPORTANT:Pleasecheckthatmysqlbackupruncompletessuccessfully。
Attheendofasuccessfulcopybackandapplylogrunmysqlbackup
printsmysqlbackupcompletedOK!。
18080712:13:48mysqlbackup:INFO:mebsbtsessionopen:MMSversion5。0。0。0
18080712:13:48mysqlbackup:INFO:mebsbtsessionopen:MMSisVeritasNetBackupforOracleRelease7。7。3(2016051915)
mysqlbackup:INFO:BackupImageMEBversionstring:3。12。3〔20160505〕
mysqlbackup:INFO:Theinputbackupimagecontainsincrementalbackup。
18080712:13:53mysqlbackup:INFO:MEBlogfilecreatedattmpmysqlrestoremetaMEB20180807。121353copybackincimgtodatadir。log
mysqlbackup:WARNING:Ifyourestoretoaserverofadifferentversion,theinnodbdatafilepathparametermighthaveadifferentdefault。Inthatcaseyouneedtoaddinnodbdatafilepathibdata1:12M:autoextendtothetargetserverconfiguration。
mysqlbackup:WARNING:Ifyourestoretoaserverofadifferentversion,theinnodblogfilesingroupparametermighthaveadifferentdefault。Inthatcaseyouneedtoaddinnodblogfilesingroup2tothetargetserverconfiguration。
mysqlbackup:WARNING:Ifyourestoretoaserverofadifferentversion,theinnodblogfilesizeparametermighthaveadifferentdefault。Inthatcaseyouneedtoaddinnodblogfilesize50331648tothetargetserverconfiguration。
ServerRepositoryOptions:
datadirvarlibmysql
innodbdatahomedirvarlibmysql
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirvarlibmysql
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesizeNull
innodbchecksumalgorithminnodb
BackupConfigOptions:
datadirvarlibmysql
innodbdatahomedirvarlibmysql
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirvarlibmysql
innodblogfilesingroup2
innodblogfilesize50331648
innodbpagesizeNull
innodbchecksumalgorithminnodb
mysqlbackup:INFO:Creating15bufferseachofsize16908288。
18080712:13:53mysqlbackup:INFO:Copybackandapplylogoperationstartswithfollowingthreads
1readthreads6processthreads1writethreads
18080712:13:53mysqlbackup:INFO:Deletingnoninnodbfilesindatadir。。。
18080712:13:53mysqlbackup:INFO:Deletingthedatabasedirectoryvarlibmysqlperformanceschema
18080712:13:53mysqlbackup:INFO:Applyingdiffpagesfromdatadiribdata1tovarlibmysqlibdata1。
18080712:13:53mysqlbackup:INFO:Applyingdiffpagesfromdatadirmysqlinnodbindexstats。ibdtovarlibmysqlmysqlinnodbindexstats。ibd。
18080712:13:53mysqlbackup:INFO:Applyingdiffpagesfromdatadirmysqlinnodbtablestats。ibdtovarlibmysqlmysqlinnodbtablestats。ibd。
18080712:13:53mysqlbackup:INFO:Applyingdiffpagesfromdatadirtesttest。ibdtovarlibmysqltesttest。ibd。
18080712:13:53mysqlbackup:INFO:Totalfilesasspecifiedinimage:155
18080712:13:54mysqlbackup:INFO:mebsbtrestoreclose:blocks:3size:1048576bytes:2474554
18080712:13:54mysqlbackup:INFO:Creatingserverconfigfilesservermy。cnfandserverall。cnfinvarlibmysql
18080712:13:54mysqlbackup:INFO:Applyincrementalpagesoperationcompletedsuccessfully。
mysqlbackup:INFO:SourceImagePathsbt:INCbkpsbtNB180807113830
18080712:13:54mysqlbackup:INFO:Startingdeletionofobsoleteibdfilesindatadir。。。
18080712:13:54mysqlbackup:INFO:Deletingdroppedibdfilesindatadir。
18080712:13:54mysqlbackup:INFO:Deletionofobsoleteibdfilesinbackupdiriscompleted。
mysqlbackup:INFO:Creating14bufferseachofsize65536。
18080712:13:54mysqlbackup:INFO:Applylogoperationstartswithfollowingthreads
1readthreads1processthreads
mysqlbackup:INFO:Usingupto100MBofmemory。
18080712:13:54mysqlbackup:INFO:ibbackuplogfilescreationparameters:
startlsn1692672,endlsn1692774,
startcheckpoint1692774。
InnoDB:Doingrecovery:scanneduptologsequencenumber1692774
mysqlbackup:INFO:InnoDB:Startinganapplybatchoflogrecordstothedatabase。。。
InnoDB:Progressinpercent:0123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
mysqlbackup:INFO:InnoDB:Settinglogfilesizeto50331648
mysqlbackup:INFO:InnoDB:Settinglogfilesizeto50331648
18080712:13:55mysqlbackup:INFO:Wewereabletoparseibbackuplogfileupto
lsn1692774。
18080712:13:55mysqlbackup:INFO:Thefirstdatafileisvarlibmysqlibdata1
andthenewcreatedlogfilesareatvarlibmysql
18080712:13:55mysqlbackup:INFO:Applylogoperationcompletedsuccessfully。
18080712:13:55mysqlbackup:INFO:Incrementalbackupappliedsuccessfully。
mysqlbackupcompletedOK!with3warnings
4、登录数据库并进行数据校验、业务测试等。九、使用TTS备份9。1TTS选项简介
若后期需要从备份中恢复某些表(即表级别恢复),那么在备份时必须要以transportabletablespaces(TTS)方式备份,否则无法仅恢复指定表。
transportabletablespaces(TTS)主要使用两个参数(includetables和excludetables)来指定或排除表(后面值可使用正则表达式),运行机制是先执行includetables后在执行excludetables,两个参数可同时使用。
例1:备份所有数据库中的所有表:
includetables。或includetables。
例2:备份test数据库中的所有表:
includetablestest。
例3:备份test数据库中的所有表,但不包括名称为test2的表:
includetablestest。excludetablestest。test29。2使用TTS选项备份
本次测试采用TTS选项多所有数据库中所有表进行备份操作:optmysqlmeb4。1binmysqlbackupport3306usermysqlbkuserpasswordPssw0rdhost127。0。0。1usettsincludetables。backupimagesbt:bkpsbtNBUseTTSsbtlibpathusropenvnetbackupbinlibobk。so64sbtenvironmentNBORASERVbackup,NBORACLIENTrhel6,NBORAPOLICYmysqltestbackupdirmysqlbackupbackuptoimage
MySQLEnterpriseBackupversion4。1。2Linux4。1。1237。4。1。el6uek。x8664x8664〔2018072314:01:56〕
Copyright(c)2003,2018,Oracleandoritsaffiliates。AllRightsReserved。
〔BuildID:13401143。32e59573fc6d0520d268d395dda7c9fd8b5427f5〕
18080714:35:21MAININFO:AthreadcreatedwithId140004834608928
18080714:35:21MAININFO:Startingwithfollowingcommandline。。。
optmysqlmeb4。1binmysqlbackupport3306userbackupuser
passwordxxxxxxxxhost127。0。0。1usettsincludetables。
backupimagesbt:bkpsbtNBusetts
sbtlibpathusropenvnetbackupbinlibobk。so64
sbtenvironmentNBORASERVbackup,NBORACLIENTrhel6,NBORAPOLICYtest1
backupdirmysqlbackupbackuptoimage
18080714:35:21MAININFO:
18080714:35:22MAININFO:NotusingSSL。
18080714:35:22MAININFO:MySQLserverversionis5。7。23
18080714:35:22MAININFO:MySQLservercompileosversionisLinux
18080714:35:22MAININFO:Gotsomeserverconfigurationinformationfromrunningserver。
18080714:35:22MAININFO:MySQLquerySHOWENGINEINNODBSTATUS:1227,Accessdenied;youneed(atleastoneof)thePROCESSprivilege(s)forthisoperation
18080714:35:22MAININFO:CannotgetInnoDBredologflushstatus
18080714:35:22MAININFO:Serversystemvariableoldaltertablewassetto0。Settingitto1。
18080714:35:22MAININFO:sbtenvironment:NBORASERVbackup,NBORACLIENTrhel6,NBORAPOLICYtest1
18080714:35:22MAININFO:SkippingbinlogsandrelaylogsincaseofTTSbackup。
IMPORTANT:Pleasecheckthatmysqlbackupruncompletessuccessfully。
Attheendofasuccessfulbackuptoimagerunmysqlbackup
printsmysqlbackupcompletedOK!。
18080714:35:22MAININFO:MEBlogfilecreatedatmysqlbackupmetaMEB20180807。143522imagebackup。log
ServerRepositoryOptions:
datadirvarlibmysql
innodbdatahomedir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirvarlibmysql
innodblogfilesingroup2
innodblogfilesize50331648
innodbundodirectoryvarlibmysql
innodbundotablespaces0
innodbundologs128
innodbbufferpoolfilenameibbufferpool
innodbpagesize16384
innodbchecksumalgorithmcrc32
BackupConfigOptions:
datadirmysqlbackupdatadir
innodbdatahomedirmysqlbackupdatadir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirmysqlbackupdatadir
innodblogfilesingroup2
innodblogfilesize50331648
innodbundodirectorymysqlbackupdatadir
innodbundotablespaces0
innodbundologs128
innodbbufferpoolfilenameibbufferpool
innodbpagesize16384
innodbchecksumalgorithmcrc32
BackupImagePathbkpsbtNBusetts
18080714:35:22MAININFO:Uniquegeneratedbackupidforthisis15336237221874227
18080714:35:24MAININFO:Creating14bufferseachofsize16777216。
18080714:35:24MAININFO:mebsbtsessionopen:MMSversion5。0。0。0
18080714:35:24MAININFO:mebsbtsessionopen:MMSisVeritasNetBackupforOracleRelease7。7。3(2016051915)
18080714:35:29MAININFO:FullImageBackupoperationstartswithfollowingthreads
1readthreads6processthreads1writethreads
18080714:35:29MAININFO:Foundcheckpointatlsn1014735833。
18080714:35:29MAININFO:Startinglogscanfromlsn1014735360atoffset5468672andcheckpoint1014735833infilevarlibmysqliblogfile0。
18080714:35:29PCR3INFO:AthreadcreatedwithId140004442052352
18080714:35:29PCR4INFO:AthreadcreatedwithId140004431562496
18080714:35:29PCR5INFO:AthreadcreatedwithId140004421072640
18080714:35:29PCR6INFO:AthreadcreatedwithId140004410582784
18080714:35:29WTR1INFO:AthreadcreatedwithId140004400092928
18080714:35:29RLR1INFO:AthreadcreatedwithId140004389603072
18080714:35:29RLW1INFO:AthreadcreatedwithId140004379113216
18080714:35:29RLP1INFO:AthreadcreatedwithId140004368623360
18080714:35:29PCR2INFO:AthreadcreatedwithId140004452542208
18080714:35:29PCR1INFO:AthreadcreatedwithId140004463032064
18080714:35:29RDR1INFO:AthreadcreatedwithId140004473521920
18080714:35:29RDR1INFO:Copyingmetafilemysqlbackupbackupmy。cnf。
18080714:35:29RDR1INFO:Copyingmetafilemysqlbackupmetabackupcreate。xml。
18080714:35:29RDR1INFO:SystemtablespacefileformatisAntelope。
18080714:35:29RDR1INFO:Startingtocopyallinnodbfiles。。。
18080714:35:29RDR1INFO:Copyingvarlibmysqlmysqlbackuphistory。ibd(Barracudafileformat)。
18080714:35:29RDR1INFO:Copyingvarlibmysqlmysqlenginecost。ibd(Barracudafileformat)。
18080714:35:29RDR1INFO:Copyingvarlibmysqlmysqlgtidexecuted。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlhelpcategory。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlhelpkeyword。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlhelprelation。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlhelptopic。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlinnodbindexstats。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlinnodbtablestats。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlplugin。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlservercost。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlservers。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlslavemasterinfo。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlslaverelayloginfo。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqlslaveworkerinfo。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqltimezone。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqltimezoneleapsecond。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqltimezonename。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqltimezonetransition。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlmysqltimezonetransitiontype。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqlsyssysconfig。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Copyingvarlibmysqltesttest。ibd(Barracudafileformat)。
18080714:35:30RDR1INFO:Completingthecopyofinnodbfiles。
18080714:35:30RDR1INFO:Preparingtolocktables:Connectedtomysqldserver。
18080714:35:30RDR1INFO:Startingtolockallthetables。。。
18080714:35:30RDR1INFO:Alltablesarelockedandflushedtodisk
18080714:35:30RDR1INFO:Completedthecopyofbinlogfiles。。。
18080714:35:30RDR1INFO:Openingbackupsourcedirectoryvarlibmysql
18080714:35:30RDR1INFO:Startingtobackup。frmfilesinthesubdirectoriesofvarlibmysql
18080714:35:30RDR1INFO:Copyingthedatabasedirectorymysql
18080714:35:30RDR1INFO:Copyingthedatabasedirectorysys
18080714:35:30RDR1INFO:Copyingthedatabasedirectorytest
18080714:35:30RDR1INFO:Completingthecopyofallnoninnodbfiles。
18080714:35:30RDR1INFO:Requestingcompletionofredologcopy。Rapid:0
18080714:35:30RLR1INFO:Signaled1tocompletelogcopy。
18080714:35:30RLR1INFO:Signaled1tocompletelogcopy。
18080714:35:30RLR1INFO:Signaled1tocompletelogcopy。
18080714:35:30RLR1INFO:Redologreaderwaited310。00msforlogstogenerate。
18080714:35:30RLW1INFO:Acopieddatabasepagewasmodifiedat1014735643。
(Thisisthehighestlsnfoundonpage)
Scannedloguptolsn1014735842。
Wasabletoparsetheloguptolsn1014735842。
18080714:35:31RDR1INFO:Alltablesunlocked
18080714:35:31RDR1INFO:AllMySQLtableswerelockedfor1。074seconds。
18080714:35:31RDR1INFO:Settingserversystemvariableoldaltertablebackto0。
18080714:35:31RDR1INFO:Readingallglobalvariablesfromtheserver。
18080714:35:31RDR1INFO:Completedreadingofallglobalvariablesfromtheserver。
18080714:35:31RDR1INFO:Writingconfigfileforserver5。7。23。
18080714:35:31RDR1INFO:Creatingserverconfigfilesservermy。cnfandserverall。cnfinmysqlbackup
18080714:35:31RDR1INFO:Copyingmetafilemysqlbackupmetabackupvariables。txt。
18080714:35:31RDR1INFO:Copyingmetafilemysqlbackupdatadiribbackuplogfile。
18080714:35:31RDR1INFO:Copyingmetafilemysqlbackupserverall。cnf。
18080714:35:31RDR1INFO:Copyingmetafilemysqlbackupservermy。cnf。
18080714:35:31RDR1INFO:Copyingmetafilemysqlbackupmetabackupcontent。xml。
18080714:35:31RDR1INFO:Copyingmetafilemysqlbackupmetaimagefiles。xml。
18080714:35:32MAININFO:backupfilename:bkpsbtNBusetts
18080714:35:32MAININFO:volumelabel:nbubakrhel61533623726C1F1
18080714:35:32MAININFO:mebsbtbackupclose:blocks:12size:1048576bytes:12131897
18080714:35:32MAININFO:FullImageBackupoperationcompletedsuccessfully。
18080714:35:32MAININFO:Backupimagecreatedsuccessfully。
18080714:35:32MAININFO:ImagePathsbt:bkpsbtNBusetts
ParametersSummary
StartLSN:1014735360
EndLSN:1014735842
mysqlbackupcompletedOK!
备注:执行命令后在NBUJAVACONSOLE中ActivityMonitor页面会有作业生成且为Active状态十、使用TTS恢复10。1必要条件
使用usetts选项恢复时需注意:
MySQLServer须处于运行状态
目标端须使用相同的pagesize
innodbfilepertable选项须开启(值ON)
需要恢复的表在目标端不存在
MEB各版本稍有不同,4。0之前版本必须指定datadir参数10。2删除源表恢复
1、在test数据库中删除test表进行恢复操作:mysqlusetest;
mysqldroptabletest;
2、恢复test数据库中的test表:optmysqlmeb4。1binmysqlbackupport3306usermysqlbkuserpasswordPssw0rdhost127。0。0。1sbtlibpathusropenvnetbackupbinlibobk。so64backupdirmysqlrestorebackupimagesbt:bkpsbtNBUseTTSincludetablestest。testcopybackandapplylog
MySQLEnterpriseBackupversion4。1。2Linux4。1。1237。4。1。el6uek。x8664x8664〔2018072314:01:56〕
Copyright(c)2003,2018,Oracleandoritsaffiliates。AllRightsReserved。
〔BuildID:13401143。32e59573fc6d0520d268d395dda7c9fd8b5427f5〕
18080714:47:33MAININFO:AthreadcreatedwithId140529244796704
18080714:47:33MAININFO:Startingwithfollowingcommandline。。。
optmysqlmeb4。1binmysqlbackupport3306usermysqlbkuser
passwordxxxxxxxxhost127。0。0。1
sbtlibpathusropenvnetbackupbinlibobk。so64
backupdirmysqlrestorebackupimagesbt:bkpsbtNBUseTTS
includetablestest。testcopybackandapplylog
18080714:47:33MAININFO:
IMPORTANT:Pleasecheckthatmysqlbackupruncompletessuccessfully。
Attheendofasuccessfulcopybackandapplylogrunmysqlbackup
printsmysqlbackupcompletedOK!。
18080714:47:33MAININFO:mebsbtsessionopen:MMSversion5。0。0。0
18080714:47:33MAININFO:mebsbtsessionopen:MMSisVeritasNetBackupforOracleRelease7。7。3(2016051915)
18080714:47:37MAININFO:BackupImageMEBversionstring:4。1。2〔2018072314:01:56〕
18080714:47:37MAININFO:Theinputbackupimagehaspartialbackup。
18080714:47:37MAININFO:Theinputbackupimagehaspartialbackup。
18080714:47:37MAININFO:Thebackupimagecontainsttsbackupwithminimumlockingmode。
18080714:47:37MAININFO:MySQLserverversionis5。7。23
18080714:47:37MAININFO:NotusingSSL。
18080714:47:37MAININFO:MySQLserverversionis5。7。23
18080714:47:37MAININFO:MySQLservercompileosversionisLinux
18080714:47:37MAININFO:Gotsomeserverconfigurationinformationfromrunningserver。
18080714:47:37MAININFO:MEBlogfilecreatedatmysqlrestoremetaMEB20180807。144737copybackimgtodatadir。log
ServerRepositoryOptions:
datadirvarlibmysql
innodbdatahomedir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedir。
innodblogfilesingroup2
innodblogfilesize50331648
innodbundodirectory。
innodbundotablespaces0
innodbundologs128
innodbbufferpoolfilenameibbufferpool
innodbpagesize16384
innodbchecksumalgorithmcrc32
BackupConfigOptions:
datadirmysqlrestoredatadir
innodbdatahomedirmysqlrestoredatadir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirmysqlrestoredatadir
innodblogfilesingroup2
innodblogfilesize50331648
innodbbufferpoolfilenameibbufferpool
innodbpagesize16384
innodbchecksumalgorithmcrc32
18080714:47:37MAININFO:Creating14bufferseachofsize16777216。
18080714:47:37MAININFO:Copybackandapplylogoperationstartswithfollowingthreads
1readthreads6processthreads1writethreads
18080714:47:37PCR1INFO:AthreadcreatedwithId140528893241088
18080714:47:37PCR2INFO:AthreadcreatedwithId140528882751232
18080714:47:37PCR3INFO:AthreadcreatedwithId140528872261376
18080714:47:37PCR4INFO:AthreadcreatedwithId140528861771520
18080714:47:37PCR5INFO:AthreadcreatedwithId140528851281664
18080714:47:37PCR6INFO:AthreadcreatedwithId140528840791808
18080714:47:37WTR1INFO:AthreadcreatedwithId140528830301952
18080714:47:37RDR1INFO:AthreadcreatedwithId140528903730944
18080714:47:37RDR1INFO:Copyingdatadirmysqlbackuphistory。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlenginecost。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlgtidexecuted。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlhelpcategory。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlhelpkeyword。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlhelprelation。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlhelptopic。ibd。
18080714:47:37PCR1INFO:Extract:〔Dir〕:mysqlrestoremeta
18080714:47:37RDR1INFO:Copyingdatadirmysqlinnodbindexstats。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlinnodbtablestats。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlplugin。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlservercost。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlservers。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlslavemasterinfo。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlslaverelayloginfo。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqlslaveworkerinfo。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqltimezone。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqltimezoneleapsecond。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqltimezonename。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqltimezonetransition。ibd。
18080714:47:37RDR1INFO:Copyingdatadirmysqltimezonetransitiontype。ibd。
18080714:47:37RDR1INFO:Copyingdatadirsyssysconfig。ibd。
18080714:47:37RDR1INFO:Copyingdatadirtesttest。ibd。
18080714:47:37RDR1INFO:
Importingtables
18080714:47:38MAININFO:Totalfilesasspecifiedinimage:97
18080714:47:39MAININFO:mebsbtrestoreclose:blocks:12size:1048576bytes:12131897
18080714:47:39MAININFO:Extractingfromimageoperationcompletedsuccessfully。
18080714:47:39MAININFO:SourceImagePathsbt:bkpsbtNBusetts
18080714:47:39MAININFO:MySQLserverversionis5。7。23
18080714:47:39MAININFO:Restoring。。。5。7。23version
18080714:47:39MAININFO:Creating14bufferseachofsize65536。
18080714:47:39MAININFO:Copybackandapplylogoperationstartswithfollowingthreads
1readthreads1processthreads6applythreads
18080714:47:39MAININFO:Usingupto100MBofmemory。
18080714:47:39MAININFO:ibbackuplogfilescreationparameters:
startlsn1014735360,endlsn1014735842,
startcheckpoint1014735833。
18080714:47:39MAININFO:Backupwasoriginallytakenwiththeincluderegexpoption
18080714:47:39ALW4INFO:AthreadcreatedwithId140529138632448
18080714:47:39ALW5INFO:AthreadcreatedwithId140529128142592
18080714:47:39ALW6INFO:AthreadcreatedwithId140529117652736
18080714:47:39RDR1INFO:AthreadcreatedwithId140529107162880
18080714:47:39PCR1INFO:AthreadcreatedwithId140529096673024
18080714:47:39PCR1INFO:InnoDB:Doingrecovery:scanneduptologsequencenumber1014735842。
18080714:47:39PCR1INFO:InnoDB:Startinganapplybatchoflogrecordstothedatabase。。。
。
InnoDB:Progressinpercent:01234567891011121314151617181920212223242526272829303118080714:47:39ALW3INFO:AthreadcreatedwithId140528851281664
32333435363738394041424344454647484950515253545556575818080714:47:39ALW2INFO:AthreadcreatedwithId140528840791808
59606162636465666768697071727374757677787918080714:47:39ALW1INFO:AthreadcreatedwithId140528830301952
8081828384858687888990919293949596979899
18080714:47:39PCR1INFO:Wewereabletoparseibbackuplogfileupto
lsn1014735842。
18080714:47:39MAININFO:Applylogoperationcompletedsuccessfully。
18080714:47:39MAININFO:Creating14bufferseachofsize16777216。
18080714:47:39MAININFO:Copybackoperationstartswithfollowingthreads
1readthreads1writethreads
18080714:47:39MAININFO:Startingtocopyallinnodbfiles。。。
18080714:47:39MAININFO:Creatingtable:test。test。
18080714:47:39WTR1INFO:AthreadcreatedwithId140529107162880
18080714:47:39RDR1INFO:AthreadcreatedwithId140529096673024
18080714:47:39RDR1INFO:Copyingmysqlrestoredatadirtesttest。ibd。
18080714:47:39RDR1INFO:Couldnotfindbinlogindexfile。binlogswillnotbecopiedforthisbackup。
PointInTimeRecoverywillnotbepossible。
Ifthisisonlinebackupthenservermaynothavestartedwithlogbin。
Youmayspecifyitslocationwithlogbinindexoption。
18080714:47:39RDR1INFO:Completedthecopyofbinlogfiles。。。
18080714:47:39RDR1INFO:Completingthecopyofallnoninnodbfiles。
18080714:47:39RDR1INFO:Importingtable:test。test。
18080714:47:39RDR1ERROR:MySQLqueryALTERTABLEtest。testIMPORTTABLESPACE:1815,Internalerror:CannotresetLSNsintabletest。test:Tablespacenotfound
18080714:47:39RDR1ERROR:Failedtoimporttablespacetest。test。
mysqlbackupfailedwitherrors!
备1:最后一步报错是由于权限问题引起,详见后面操作。
备2:执行命令后在NBUJAVACONSOLE中ActivityMonitor页面可看到Restore作业运行:
3、进入MySQLdatadir目录查看test文件已恢复,但是权限(所属用户组)不正确:〔rootrhel6test〕pwd
varlibmysqltest
〔rootrhel6test〕lsltr
total116
rwrr1mysqlmysql65Aug620:38db。opt
rwr1mysqlmysql8578Aug714:47test。frm
rwrr1rootroot98304Aug714:47test。ibd
rwrr1rootroot404Aug714:47test。cfg
〔rootrhel6test〕chownmysql:mysqltest
〔rootrhel6test〕lsltr
total116
rwrr1mysqlmysql65Aug620:38db。opt
rwr1mysqlmysql8578Aug714:47test。frm
rwrr1mysqlmysql98304Aug714:47test。ibd
rwrr1mysqlmysql404Aug714:47test。cfg
4、登录MySQL进行import操作并确认是否正确:〔rootrhel6test〕mysqlurootpPssw0rd
mysqlusetest;
Readingtableinformationforcompletionoftableandcolumnnames
YoucanturnoffthisfeaturetogetaquickerstartupwithA
Databasechanged,1warning
mysqlaltertabletestimporttablespace;
QueryOK,0rowsaffected(0。02sec)
mysqlselectfromtest;
ab
11
22
2rowsinset(0。00sec)
10。3重命名恢复
在恢复时亦可使用rename选项对指定表进行重命名
可以使用完全限定表明:源数据库名。源表名to新数据库名。新表名
若在同一个数据库中重命名表则可不使用完全限定:源表名to新表名
1、恢复test数据库中的test表并重命名为test2:optmysqlmeb4。1binmysqlbackupport3306usermysqlbkuserpasswordPssw0rdhost127。0。0。1sbtlibpathusropenvnetbackupbinlibobk。so64backupdirmysqlrestorebackupimagesbt:bkpsbtNBUseTTSincludetablestest。testrenametest。testtotest。test2copybackandapplylog
MySQLEnterpriseBackupversion4。1。2Linux4。1。1237。4。1。el6uek。x8664x8664〔2018072314:01:56〕
Copyright(c)2003,2018,Oracleandoritsaffiliates。AllRightsReserved。
〔BuildID:13401143。32e59573fc6d0520d268d395dda7c9fd8b5427f5〕
18080715:05:31MAININFO:AthreadcreatedwithId139864903730976
18080715:05:31MAININFO:Startingwithfollowingcommandline。。。
optmysqlmeb4。1binmysqlbackupport3306userbackupuser
passwordxxxxxxxxhost127。0。0。1
sbtlibpathusropenvnetbackupbinlibobk。so64
backupdirmysqlrestorebackupimagesbt:bkpsbtNBusetts
includetablestest。testrenametest。testtotest。test2
copybackandapplylog
18080715:05:31MAININFO:
IMPORTANT:Pleasecheckthatmysqlbackupruncompletessuccessfully。
Attheendofasuccessfulcopybackandapplylogrunmysqlbackup
printsmysqlbackupcompletedOK!。
18080715:05:31MAININFO:mebsbtsessionopen:MMSversion5。0。0。0
18080715:05:31MAININFO:mebsbtsessionopen:MMSisVeritasNetBackupforOracleRelease7。7。3(2016051915)
18080715:05:34MAININFO:BackupImageMEBversionstring:4。1。2〔2018072314:01:56〕
18080715:05:34MAININFO:Theinputbackupimagehaspartialbackup。
18080715:05:34MAININFO:Theinputbackupimagehaspartialbackup。
18080715:05:34MAININFO:Thebackupimagecontainsttsbackupwithminimumlockingmode。
18080715:05:34MAININFO:MySQLserverversionis5。7。23
18080715:05:34MAININFO:NotusingSSL。
18080715:05:34MAININFO:MySQLserverversionis5。7。23
18080715:05:34MAININFO:MySQLservercompileosversionisLinux
18080715:05:34MAININFO:Gotsomeserverconfigurationinformationfromrunningserver。
18080715:05:34MAININFO:MEBlogfilecreatedatmysqlrestoremetaMEB20180807。150534copybackimgtodatadir。log
ServerRepositoryOptions:
datadirvarlibmysql
innodbdatahomedir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedir。
innodblogfilesingroup2
innodblogfilesize50331648
innodbundodirectory。
innodbundotablespaces0
innodbundologs128
innodbbufferpoolfilenameibbufferpool
innodbpagesize16384
innodbchecksumalgorithmcrc32
BackupConfigOptions:
datadirmysqlrestoredatadir
innodbdatahomedirmysqlrestoredatadir
innodbdatafilepathibdata1:12M:autoextend
innodbloggrouphomedirmysqlrestoredatadir
innodblogfilesingroup2
innodblogfilesize50331648
innodbbufferpoolfilenameibbufferpool
innodbpagesize16384
innodbchecksumalgorithmcrc32
18080715:05:34MAININFO:Creating14bufferseachofsize16777216。
18080715:05:34MAININFO:Copybackandapplylogoperationstartswithfollowingthreads
1readthreads6processthreads1writethreads
18080715:05:34PCR1INFO:AthreadcreatedwithId139864552175360
18080715:05:34PCR2INFO:AthreadcreatedwithId139864541685504
18080715:05:34PCR3INFO:AthreadcreatedwithId139864531195648
18080715:05:34PCR4INFO:AthreadcreatedwithId139864520705792
18080715:05:34PCR5INFO:AthreadcreatedwithId139864510215936
18080715:05:34PCR6INFO:AthreadcreatedwithId139864499726080
18080715:05:34WTR1INFO:AthreadcreatedwithId139864489236224
18080715:05:34RDR1INFO:AthreadcreatedwithId139864562665216
18080715:05:34PCR1INFO:Extract:〔Dir〕:mysqlrestoremeta
18080715:05:34RDR1INFO:Copyingdatadirmysqlbackuphistory。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlenginecost。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlgtidexecuted。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlhelpcategory。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlhelpkeyword。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlhelprelation。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlhelptopic。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlinnodbindexstats。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlinnodbtablestats。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlplugin。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlservercost。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlservers。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlslavemasterinfo。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlslaverelayloginfo。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqlslaveworkerinfo。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqltimezone。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqltimezoneleapsecond。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqltimezonename。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqltimezonetransition。ibd。
18080715:05:34RDR1INFO:Copyingdatadirmysqltimezonetransitiontype。ibd。
18080715:05:34RDR1INFO:Copyingdatadirsyssysconfig。ibd。
18080715:05:34RDR1INFO:Copyingda。。。