iis服务器助手广告广告
返回顶部
首页 > 资讯 > 数据库 >TokuDB 热备测试
  • 544
分享到

TokuDB 热备测试

2024-04-02 19:04:59 544人浏览 薄情痞子
摘要

1、启动后尝试安装TokuDB插件[root@es3 Mysql]# export PATH=$PATH:/usr/local/mysql/bin [root@es3 mysql]# ps_tokudb_a

1、启动后尝试安装TokuDB插件

[root@es3 Mysql]# export PATH=$PATH:/usr/local/mysql/bin
[root@es3 mysql]# ps_tokudb_admin  -h227.0.0.1 --enable
Checking SElinux status...
INFO: SELinux is disabled.

Checking location of jemalloc library ...
INFO: Using jemalloc library from /usr/lib64/libjemalloc.so.1

Checking transparent huge pages status on the system...
INFO: Transparent huge pages are enabled (should be disabled).

Checking if THP_SETTING variable is set to never or madvise in /etc/sysconfig/mysql...
INFO: Variable THP_SETTING is not set to never or madvise in /etc/sysconfig/mysql.

Checking if LD_PRELOAD variable is set for libjemalloc.so.1 in /etc/sysconfig/mysql...
INFO: Variable LD_PRELOAD for libjemalloc.so.1 is set in /etc/sysconfig/mysql.

Checking TokuDB engine plugin status...
INFO: TokuDB engine plugin is not installed.

Disabling transparent huge pages for the current session...
INFO: Successfully disabled transparent huge pages for this session.

Adding THP_SETTING=never variable into /etc/sysconfig/mysql
INFO: Successfully added THP_SETTING=never option into /etc/sysconfig/mysql

Installing TokuDB engine...
2019-08-27T08:51:36.877238Z 5 [ERROR] TokuDB is not initialized because jemalloc is not loaded
2019-08-27T08:51:36.877264Z 5 [ERROR] Plugin 'TokuDB' init function returned error.
2019-08-27T08:51:36.877279Z 5 [ERROR] Plugin 'TokuDB' reGIStration as a STORAGE ENGINE failed.
2019-08-27T08:51:36.877307Z 5 [Note] Shutting down plugin 'TokuDB'
ERROR: Failed to install TokuDB engine plugin. Please check error log.

2、添加jemalloc 后

[root@es3 lib]# sh /usr/local/mysql/support-files/mysql.server start
                                                                                 
[root@es3 support-files]# ps_tokudb_admin  -h227.0.0.1 --enable
Checking SELinux status...
INFO: SELinux is disabled.

Checking if Percona Server is running with jemalloc enabled...
INFO: Percona Server is running with jemalloc enabled.

Checking transparent huge pages status on the system...
INFO: Transparent huge pages are currently disabled on the system.

Checking if thp-setting=never option is already set in config file...
INFO: Option thp-setting=never is not set in the config file.
      (needed only if THP is not disabled permanently on the system)

Checking TokuDB engine plugin status...
INFO: TokuDB engine plugin is not installed.

Adding thp-setting=never option into /etc/my.cnf
INFO: Successfully added thp-setting=never option into /etc/my.cnf

Installing TokuDB engine...
INFO: Successfully installed TokuDB engine plugin.

3、安装热备插件

[root@es3 support-files]# ps_tokudb_admin  -h227.0.0.1 --enable-backup
Checking SELinux status...
INFO: SELinux is disabled.

Checking if Percona Server is running with jemalloc enabled...
INFO: Percona Server is running with jemalloc enabled.

Checking transparent huge pages status on the system...
INFO: Transparent huge pages are currently disabled on the system.

Checking if thp-setting=never option is already set in config file...
INFO: Option thp-setting=never is set in the config file.

Checking if preload-hotbackup option is already set in config file...
INFO: Option preload-hotbackup is not set in the config file.

Checking TokuDB engine plugin status...
INFO: TokuDB engine plugin is installed.

Checking TokuBackup plugin status...
INFO: TokuBackup plugin is not installed.

Adding preload-hotbackup option into /etc/my.cnf
INFO: Successfully added preload-hotbackup option into /etc/my.cnf
PLEASE RESTART MYSQL SERVICE AND RUN THIS SCRIPT AGAIN TO FINISH INSTALLATION!

4、启动查看tokudb相关信息,尝试备份,并配置关闭异步IO

innodb_use_native_aio =0

5、重新运行一遍, --enable-backup(PLEASE RESTART MYSQL SERVICE AND RUN THIS SCRIPT AGAIN TO FINISH INSTALLATION!)

[root@es3 lib]# sh /usr/local/mysql/support-files/mysql.server restart
Shutting down MySQL (Percona Server)... SUCCESS! 
Starting MySQL (Percona Server).. SUCCESS! 
[root@es3 lib]#  mkdir -p /data/backup/
[root@es3 lib]#  chown mysql.mysql -R /data/backup/
[root@es3 lib]# mysql -h227.0.0.1
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3
Server version: 5.7.17-13 Percona Server (GPL), Release 13, Revision fd33D43

Copyright (c) 2009-2016 Percona LLC and/or its affiliates
Copyright (c) 2000, 2016, oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>  set tokudb_backup_dir='/data/backup/';
mysql> exit
Bye

[root@es3 lib]# ps_tokudb_admin  -h227.0.0.1 --enable-backup
Checking SELinux status...
INFO: SELinux is disabled.

Checking if Percona Server is running with jemalloc enabled...
INFO: Percona Server is running with jemalloc enabled.

Checking transparent huge pages status on the system...
INFO: Transparent huge pages are currently disabled on the system.

Checking if thp-setting=never option is already set in config file...
INFO: Option thp-setting=never is set in the config file.

Checking if preload-hotbackup option is already set in config file...
INFO: Option preload-hotbackup is set in the config file.

Checking TokuDB engine plugin status...
INFO: TokuDB engine plugin is installed.

Checking TokuBackup plugin status...
INFO: TokuBackup plugin is not installed.

Checking if Percona Server is running with libHotBackup.so preloaded...
INFO: Percona Server is running with libHotBackup.so preloaded.

Installing TokuBackup plugin...
INFO: Successfully installed TokuBackup plugin.

6、执行备份,并观察

[root@es3 lib]# mysql -h227.0.0.1                              
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 7
Server version: 5.7.17-13 Percona Server (GPL), Release 13, Revision fd33d43

Copyright (c) 2009-2016 Percona LLC and/or its affiliates
Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.

Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

mysql>  set tokudb_backup_dir='/data/backup/';
Query OK, 0 rows affected (13.16 sec)

mysql> exit
Bye
[root@es3 lib]# cd /data/backup/
[root@es3 backup]# ll
总用量 4
drwxr-x--- 6 mysql mysql 4096 8月  27 17:56 mysql_data_dir
[root@es3 backup]# cd mysql_data_dir/
[root@es3 mysql_data_dir]# ll
总用量 126896
-rwxr-x--x 1 mysql mysql       56 8月  27 17:56 auto.cnf
-rwxr-x--x 1 mysql mysql     1676 8月  27 17:56 ca-key.pem
-rwxr-x--x 1 mysql mysql     1083 8月  27 17:56 ca.pem
-rwxr-x--x 1 mysql mysql     1087 8月  27 17:56 client-cert.pem
-rwxr-x--x 1 mysql mysql     1680 8月  27 17:56 client-key.pem
-rwxr-x--x 1 mysql mysql        5 8月  27 17:56 es3.pid
-rwxr-x--x 1 mysql mysql      292 8月  27 17:56 ib_buffer_pool
-rwxr-x--x 1 mysql mysql 12582912 8月  27 17:57 ibdata1
-rwxr-x--x 1 mysql mysql 50331648 8月  27 17:56 ib_logfile0
-rwxr-x--x 1 mysql mysql 50331648 8月  27 17:57 ib_logfile1
-rwxr-x--x 1 mysql mysql 12582912 8月  27 17:56 ibtmp1
-rwxr-x--x 1 mysql mysql     2908 8月  27 17:56 log000000000003.tokulog29
-rwxr-x--x 1 mysql mysql    23625 8月  27 17:56 mariadb.log
drwxr-x--x 2 mysql mysql     4096 8月  27 17:56 mysql
-rwxr-x--x 1 mysql mysql        5 8月  27 17:56 mysql.sock.lock
drwxr-x--x 2 mysql mysql     8192 8月  27 17:56 perfORMance_schema
-rwxr-x--x 1 mysql mysql     1680 8月  27 17:56 private_key.pem
-rwxr-x--x 1 mysql mysql      452 8月  27 17:56 public_key.pem
-rwxr-x--x 1 mysql mysql     1087 8月  27 17:56 server-cert.pem
-rwxr-x--x 1 mysql mysql     1676 8月  27 17:56 server-key.pem
drwxr-x--x 2 mysql mysql     8192 8月  27 17:56 sys
-rwxr-x--x 1 mysql mysql    24576 8月  27 17:56 tc.log
drwxr-x--x 2 mysql mysql       60 8月  27 17:56 tktest
-rwxr-x--x 1 mysql mysql    16384 8月  27 17:56 tokudb.directory
-rwxr-x--x 1 mysql mysql    16384 8月  27 17:56 tokudb.environment
-rwxr-x--x 1 mysql mysql        0 8月  27 17:56 __tokudb_lock_dont_delete_me_data
-rwxr-x--x 1 mysql mysql        0 8月  27 17:56 __tokudb_lock_dont_delete_me_environment
-rwxr-x--x 1 mysql mysql        0 8月  27 17:56 __tokudb_lock_dont_delete_me_logs
-rwxr-x--x 1 mysql mysql        0 8月  27 17:56 __tokudb_lock_dont_delete_me_recovery
-rwxr-x--x 1 mysql mysql        0 8月  27 17:56 __tokudb_lock_dont_delete_me_temp
-rwxr-x--x 1 mysql mysql    16384 8月  27 17:56 tokudb.rollback
-rwxr-x--x 1 mysql mysql  3932160 8月  27 17:56 xb_doublewrite


您可能感兴趣的文档:

--结束END--

本文标题: TokuDB 热备测试

本文链接: https://www.lsjlt.com/news/42724.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
  • TokuDB 热备测试
    1、启动后尝试安装TokuDB插件[root@es3 mysql]# export PATH=$PATH:/usr/local/mysql/bin [root@es3 mysql]# ps_tokudb_a...
    99+
    2022-10-18
  • TokuDB 官方热备方案
    percona 5.7 版本已经将 tokudb 集成进去中,并且原生支持了热备,民间方案可以退役了。 安装     1.ps-admin -uroot -p"123456" -S /tmp/mysql_5001.sock  -...
    99+
    2021-03-16
    TokuDB 官方热备方案
  • Percona5.7 TokuBackup支持TokuDB热备份
    Percona5.7 TokuBackup支持TokuDB热备份一、安装tokudb引擎执行以下脚本,自动安装tokudb。# bin/ps-admin --defaults-file=...
    99+
    2022-10-18
  • 如何进行Tokudb安装测试
    如何进行Tokudb安装测试,相信很多没有经验的人对此束手无策,为此本文总结了问题出现的原因和解决方法,通过这篇文章希望你能解决这个问题。 一 前言   To...
    99+
    2022-10-18
  • T3ster — 功率电子热测试设备
           T3ster 是美国Mentor Graphics 公司研发的瞬态热测试仪,基于国际标准的静态实验方法JESD51-1,测量IGBT、MOS 管、功率二极管、三极管、LED、微机电系统等...
    99+
    2023-06-03
  • mysql双机热备实现方案【可测试】
    一、概念 1、热备份和备份的区别   热备份指的是:High Available(HA)即高可用,而备份指的是Backup,数据备份的一种。这是两种不同的概念,应对的产品也是两种功能上完全不同的产品。热备份...
    99+
    2022-10-18
  • pg_rman备份恢复测试
    环境描述1.OSCentOS Linux release 7.2.1511 (Core) X642.PostgreSQLPostgreSQL 9.6.13.pg_rmanpg_rman-1.3.3-pg96...
    99+
    2022-10-18
  • xtrabackup备份恢复测试
    测试准备 1、安装xtrabackup工具        以下测试安装xtrabackup备份恢复工具的二进制包,进行测...
    99+
    2022-10-18
  • xtrabackup 备份恢复测试
    远程备份: innobackupex --defaults-file=/usr/my.cnf --user=backup --host=127.0.0.1 --port=3306 --password=...
    99+
    2022-10-18
  • 高薪测试员必备:快速入行车载测试,ADAS测试面试题汇总(一)
    一、专有名词 VRU:Vulnerable Road Users,弱势道路使用者,包括行人、两轮车。 RT-Range:真值,用于测量实时的位置、距离、速度、方向等信息,如测试中需要用到两车之间的相对距离、速度可以在自车和目标车上装RT...
    99+
    2023-09-11
    服务器 运维 软件测试 python 性能优化 Powered by 金山文档
  • 分享软件测试必备的测试工具清单汇总
    目录前言我们将常用的测试工具分为10类测试软件列表:1.测试管理工具2.接口测试工具3.性能测试工具4.C/S自动化工具5.白盒测试工具6.代码扫描工具7持续集成工具8.网络测试工具...
    99+
    2022-11-12
  • SpringBoot深入讲解单元测试与热部署应用
    目录一、单元测试1.添加spring-boot-starter-test测试依赖启动器2.编写单元测试类和测试方法二、热部署1.添加spring-boot-devtools热部署依赖...
    99+
    2022-11-13
  • 任意Android设备上运行测试
    图:打开数据源“对话框...  图:添加一个简单数据表...  图:添加设备名称到简单数据表   这样做之后,切换到“数据绑...
    99+
    2022-06-06
    行测 运行 测试 Android
  • MariaDB10.2.26 +xtrabackup 备份恢复测试过程
    1、测试过程[root@rec lib]# mysql Welcome to the MariaDB monitor.  Commands end with ; or \g. Your MariaDB co...
    99+
    2022-10-18
  • 不用备案的cdn如何测试
    不用备案cdn测试方法:1、使用测试工具测试cdn服务器节点分布,看被解析为多少个独立的IP及各个地域各个运营商是如何解析的;2、通过访问对CDN服务器进行测试,测试各种情况下CDN服务器对于缓存规则的处理。具体内容如下:1、节点分布这个其...
    99+
    2022-10-10
  • selenium自动化测试简单准备
    目录下载驱动器chrome版本查看基本函数练习一(简单网页注册)练习二练习三下载驱动器 http://chromedriver.storage.googleapis.com/inde...
    99+
    2022-11-12
  • 免备案的cdn加速怎么测试
    免备案cdn加速的测试方法:1、使用测试工具测试cdn节点分布,看被解析为多少个独立的IP及各个地域各个运营商是如何解析的;2、通过访问对CDN进行测试,测试各种情况下CDN对于缓存规则的处理。具体内容如下:1、节点分布这个其实最好还是找C...
    99+
    2022-10-16
  • 测试MySQL逻辑物理备份教程
    下文主要给大家带来测试MySQL逻辑物理备份教程,希望这些内容能够带给大家实际用处,这也是我编辑测试MySQL逻辑物理备份教程这篇文章的主要目的。好了,废话不多说,大家直接看下文吧。MySQL逻辑物理备份测...
    99+
    2022-10-18
  • mysql数据库xtrabackup压缩备份测试
         网上有篇文章为:TB级mysql数据之xtrabackup压缩备份迁移方案,今天自己亲测下,看看效果。结论在最后给出。简单介绍下环境: win7下安装的vmware ...
    99+
    2022-10-18
  • 如何准备Python、Django和Linux面试的技能测试?
    好的,下面是文章的正文: 在现代科技领域,Python、Django和Linux是三个非常重要的技能。如果你想在这个领域中找到一份好工作,那么你需要掌握这些技能。而面试是获取这些工作的关键。为了通过Python、Django和Linux的面...
    99+
    2023-07-24
    django linux 面试
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作