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的海域 閱讀(696) 評論(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)

          主站蜘蛛池模板: 洛阳市| 沭阳县| 侯马市| 阿瓦提县| 三江| 株洲市| 大安市| 米易县| 藁城市| 枣强县| 上栗县| 海丰县| 九龙县| 米林县| 尼玛县| 洛隆县| 韶关市| 金堂县| 南康市| 巴东县| 蓬莱市| 兰西县| 温泉县| 镇康县| 凤凰县| 唐山市| 东源县| 晋中市| 蓝田县| 灌云县| 望谟县| 岱山县| 石棉县| 马公市| 奉贤区| 莒南县| 雅江县| 汉中市| 康乐县| 沈阳市| 农安县|