posts - 88, comments - 3, trackbacks - 0, articles - 0
            BlogJava :: 首頁 :: 新隨筆 :: 聯系 :: 聚合  :: 管理

          innobackupex 1.6.4 need empty datadir when copy-back

          Posted on 2012-04-03 13:01 Milo的海域 閱讀(695) 評論(0)  編輯  收藏 所屬分類: MySQL
          When restore by xtrabackup '--copy-back' with version 1.6.4, you may get error:
          IMPORTANT: Please check that the copy-back run completes successfully.
                     At the end of a successful copy-back run innobackupex-
          1.6.4
                     prints 
          "completed OK!".

          Original data directory is not empty! at innobackupex-
          1.6.4 line 544.

          when read those lines we found that:
              # check that original data directories exist and they are empty
              if_directory_exists_and_empty($orig_datadir
          , "Original data");
              if_directory_exists_and_empty($orig_ibdata_dir, "Original InnoDB data");
              if_directory_exists_and_empty($orig_iblog_dir, "Original InnoDB log");

          Google for reason for this check and find it mentioned in:
          http://www.mysqlperformanceblog.com/2011/12/19/percona-xtrabackup-1-6-4/

          innobackupex did not check that MySQL datadir was empty before –copy-back was run. With this bug fix,
          innobackupex will now error out of the –copy-back operation if the destination is not empty
          , avoiding
          potential data loss or a strang combination of a restored backup and previous data. Bug Fixed: #
          737569 (Valentine Gostev)

          主站蜘蛛池模板: 老河口市| 昔阳县| 霸州市| 梓潼县| 神木县| 广昌县| 扶沟县| 凤台县| 玉田县| 沧源| 驻马店市| 准格尔旗| 鄂州市| 吉安县| 平泉县| 三台县| 阜康市| 禹州市| 酉阳| 黎城县| 安徽省| 田东县| 海兴县| 广宁县| 阿拉善左旗| 响水县| 奇台县| 南宁市| 循化| 姜堰市| 衢州市| 南皮县| 东乡族自治县| 朝阳市| 手游| 洛隆县| 建阳市| 鄂尔多斯市| 噶尔县| 长兴县| 翁源县|