freepeople性欧美熟妇, 色戒完整版无删减158分钟hd, 无码精品国产vα在线观看DVD, 丰满少妇伦精品无码专区在线观看,艾栗栗与纹身男宾馆3p50分钟,国产AV片在线观看,黑人与美女高潮,18岁女RAPPERDISSSUBS,国产手机在机看影片

正文內(nèi)容

xtrabackup使用手冊(cè)-資料下載頁(yè)

2025-06-25 23:41本頁(yè)面
  

【正文】 here are indexes to rebuild in table sakila/city (space id: 9)[01] Found index idx_fk_country_id[01] Rebuilding 1 index(es).[01] Checking if there are indexes to rebuild in table sakila/country (space id: 10)[01] Checking if there are indexes to rebuild in table sakila/customer (space id: 11)[01] Found index idx_fk_store_id[01] Found index idx_fk_address_id[01] Found index idx_last_name[01] Rebuilding 3 index(es).使用rebuildthreads指定重建的線(xiàn)程數(shù),加快重建速度:$ xtrabackup prepare rebuildindexes rebuildthreads=16 /data/backups/輸出:Starting 16 threads to rebuild indexes.[09] Checking if there are indexes to rebuild in table sakila/city (space id: 9)[09] Found index idx_fk_country_id[10] Checking if there are indexes to rebuild in table sakila/country (space id: 10)[11] Checking if there are indexes to rebuild in table sakila/customer (space id: 11)[11] Found index idx_fk_store_id[11] Found index idx_fk_address_id[11] Found index idx_last_name[11] Rebuilding 3 index(es).對(duì)于增量備份的應(yīng)用可以先不重建索引,在應(yīng)用最后一個(gè)差異備份的時(shí)候使用—rebuildindex來(lái)創(chuàng)建索引,每次都應(yīng)用都重建索引太花時(shí)間。備份還原使用命令rsync或者cp來(lái)還原備份,和全備的還原一樣,請(qǐng)看:其他功能節(jié)流備份throttle用來(lái)控制每秒io次數(shù),一次io,1MB。如果在backup模式下,這個(gè)選項(xiàng)用來(lái)控制讀寫(xiě)對(duì)的每秒次數(shù)。默認(rèn)不會(huì)節(jié)流,xtrabackup會(huì)讀寫(xiě)是盡量快的方式。使用腳本調(diào)用xtrabackup來(lái)執(zhí)行備份最典型的例子innobackupex,innobackupex是perl腳本調(diào)用xtrabackup來(lái)執(zhí)行備份。具體看:Scripting Backups With xtrabackup分析表統(tǒng)計(jì)信息具體查看:Analyzing Table Statistics使用binary logxtrabackup提取了inoodb的事務(wù)日志中提交事務(wù),對(duì)于到binary log的位置。使用這個(gè)位置可以啟動(dòng)一個(gè)新的復(fù)制slave或者恢復(fù)一個(gè)時(shí)間點(diǎn)備份。如果備份是一個(gè)來(lái)至于binary log啟動(dòng)的日志,xtrabackup會(huì)創(chuàng)建一個(gè)文件xtrabackup_binlog_info里面包含了,binary log文件名和位置。信息也會(huì)寫(xiě)在xtrabackup_binlog_pos_innodb,這個(gè)文件只會(huì)在只有xtradb或者innodb情況下才會(huì)準(zhǔn)確。其他情況下應(yīng)該使用xtrabackup_binlog_info。時(shí)間點(diǎn)恢復(fù),和innobackupex的一樣可以查看關(guān)于如何還原一個(gè)slave可以查看下面的內(nèi)容:六個(gè)步驟安裝一個(gè)Slave還原單個(gè)表在mariadb 。導(dǎo)出表先查找是否有這個(gè)文件存在$ find /data/backups/mysql/ name export_test.*/data/backups/mysql/test/然后導(dǎo)出表$ xtrabackup prepare export targetdir=/data/backups/mysql/會(huì)產(chǎn)生exp文件$ find /data/backups/mysql/ name export_test.*/data/backups/mysql/test//data/backups/mysql/test//data/backups/mysql/test/注意:mysql使用cfg文件,這個(gè)文件包含了innodb字典dump。這個(gè)格式和exp文件的不同,exp文件用于xtradb。嚴(yán)格來(lái)說(shuō)cfg在mysql ,如果存在cfg文件,那么innodb會(huì)通過(guò)cfg文件做schema驗(yàn)證 。導(dǎo)入表導(dǎo)入表,在percona server使用xtradb,需要設(shè)置innodb_import_table_from_xtrabackup設(shè)置為可用。 table discard tablespace table import tablespace導(dǎo)入 LRU dump備份這個(gè)功能減少了服務(wù)warm up的時(shí)間,在重啟的時(shí)候直接導(dǎo)入ib_lru_dump文件中的數(shù)據(jù),在備份的時(shí)候會(huì)自動(dòng)備份。,percona server啟動(dòng)了innodb_buffer_pool_resotre_at_startup=1那么這個(gè)功能會(huì)自動(dòng)啟動(dòng)。這個(gè)功能在mariadb中有類(lèi)似的功能:XtraDB/InnoDB Server System Variables xtrabackup的限制*,不會(huì)復(fù)制表定義,frm文件。 References具體看:ThextrabackupOption Reference xbstream具體看:xbstream xbcrypt具體看:xbcrypt Xtrabackup原理xtrabackup是基于innodb的crash恢復(fù)功能。復(fù)制innodb數(shù)據(jù)文件,但是數(shù)據(jù)是不一致的,然后使用crash恢復(fù)讓數(shù)據(jù)文件一直。當(dāng)innodb啟動(dòng)會(huì)去檢查數(shù)據(jù)文件和日志文件,然后重做已提交事務(wù),執(zhí)行未提交事務(wù)。xtrabackup記下LSN,然后啟動(dòng),復(fù)制數(shù)據(jù)文件。同時(shí)xtrabackup啟動(dòng)一個(gè)后臺(tái)進(jìn)程用來(lái)監(jiān)控日志文件,然后復(fù)制修改,這個(gè)進(jìn)程在備份期間一直是運(yùn)行的,因?yàn)槿罩疚募r(shí)回繞的,避免數(shù)據(jù)被覆蓋無(wú)法恢復(fù)。直到備份完成。第二階段就是預(yù)備階段,xtrabackup通過(guò)執(zhí)行crash恢復(fù),應(yīng)用日志文件到數(shù)據(jù)文件上。這個(gè)過(guò)程在xtrabackup中實(shí)現(xiàn)。innobackupex增加了功能。innobackupex啟動(dòng)xtrabackup,等待復(fù)制innodb結(jié)束,然后執(zhí)行FLUSH TABLES WITH READ LOCK,停止對(duì)mysql數(shù)據(jù)的修改。復(fù)制非innodb引擎表,知道復(fù)制完成,然后釋放鎖。這樣在prepare階段后,innodb和非innodb相互保持了一致性。innodb會(huì)一直redo,直到備份完成。這個(gè)時(shí)間剛剛好和FLUSH TABLES WITH READ LOCK時(shí)間一直,所以innodb和非innodb是保持同步的。4如何使用和案例(Howtos and Recipes) innobackupex案例本地全備(備份,預(yù)備,還原)創(chuàng)建備份$ innobackupex /data/backups備份完成100313 02:43:07 innobackupex: pleted OK!預(yù)備備份使用applylog來(lái)預(yù)備,使用usermemory來(lái)加快預(yù)備速度$ innobackupex usememory=4G applylog /data/backups/20100313_024244/完成100313 02:51:02 innobackupex: pleted OK!還原備份使用copyback來(lái)還原備份innobackupex copyback /data/backups/20100313_024244/ Use chmod to correct the permissions, if necessary!注意修改文件所有者$ chown R mysql:mysql /var/lib/mysql使用Stream備份tar使用例子是用留備份歸檔到文件‘’$ innobackupex stream=tar ./ 壓縮歸檔文件$ innobackupex stream=tar ./ | gzip 加密備份$ innobackupex stream=tar . | gzip | openssl des3 salt k password 把備份復(fù)制到遠(yuǎn)程$ innobackupex stream=tar ./ | ssh user@desthost cat /data/backups/使用netcat復(fù)制到遠(yuǎn)程 On the destination host:$ nc l 9999 | cat /data/backups/ On the source host:$ innobackupex stream=tar ./ | nc desthost 9999和上面一樣只是一樣完成$ ssh user@desthost ( nc l 9999 /data/backups/ amp。 ) \amp。amp。 innobackupex stream=tar ./ | nc desthost 9999限制傳輸速度為10MB/s需要pv工具。可以通過(guò)aptget安裝$ innobackupex stream=tar ./ | pv q L10m \| ssh user@desthost cat /data/backups/在備份的時(shí)候計(jì)算checksum On the destination host:$ nc l 9999 | tee (sha1sum destination_checksum) /data/backups/ On the source host:$ innobackupex stream=tar ./ | tee (sha1sum source_checksum) | nc desthost 9999 pare the checksums On the source host:$ cat source_checksum65e4f916a49c1f216e0887ce54cf59bf3934dbad On the destination host:$ destination_checksum65e4f916a49c1f216e0887ce54cf59bf3934dbad xbstream使用例子備份并歸檔為‘innobackupex stream=xbstream ./ 使用壓縮歸檔innobackupex stream=xbstream press ./ 解包xbstreamx把備份發(fā)送到其他目錄innobackupex press stream=xbstream ./ | ssh user@otherhost xbstream x并發(fā)壓縮歸檔innobackupex press pressthreads=8 stream=xbstream parallel=4 ./ 創(chuàng)建增量備份創(chuàng)建備份先創(chuàng)建一個(gè)全備:innobackupex user=USER password=PASSWORD /path/to/backup/dir/全備會(huì)生成一個(gè)時(shí)間戳的子目錄,備份在子目錄里,如/path/to/backup/dir/20111224_230100/,并記為$FULLBACK創(chuàng)建增量備份innobackupex incremental /path/to/inc/dir \ incrementalbasedir=$FULLBACKUP user=USER password=PASSWORD生成的目錄為:/path/to/inc/dir/20111225_000100/并記為$INCREMENTALBACKUP預(yù)備備份innobackupex applylog redoonly $FULLBACKUP \usememory=1G user=USER password=PASSWORDusermemory可以加速預(yù)備速度。輸出:111225 01:10:12 InnoDB: Shutdown pleted。 log sequence number 91514213然后應(yīng)用增量innobackupex applylog redoonly $FULLBACKUPincrementaldir=$INCREMENTALBACKUPusememory=1G user=DVADER password=D4RKS1D3因?yàn)槭菓?yīng)用到$FULLBACK下的,所以不再增量備份文件夾下。如果還原多個(gè)增量備份,但是忘記了備份順序可以查看xtrabackup_checkpoint文件如:backup_type=fullbackupe
點(diǎn)擊復(fù)制文檔內(nèi)容
教學(xué)課件相關(guān)推薦
文庫(kù)吧 www.dybbs8.com
備案圖鄂ICP備17016276號(hào)-1