Galera集群安装报错Operation not permitted

 

WSREP_SST: [ERROR] Cleanup after exit with status:1 (20200331 18:40:39.430)
2020-03-31 18:40:39 140613131433728 [ERROR] WSREP: Process completed with error: wsrep_sst_xtrabackup-v2 --role 'joiner' --address '172.20.100.119' --datadir '/data/mysql/' --parent '42007' --mysqld-args --basedir=/usr --datadir=/data/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --wsrep_on=ON --wsrep_provider=/usr/lib64/galera/libgalera_smm.so --log-error=/data/mysql/172-20-100-119.err --pid-file=/data/mysql/172-20-100-119.pid --wsrep_start_position=00000000-0000-0000-0000-000000000000:-1: 1 (Operation not permitted)
2020-03-31 18:40:39 140613131433728 [ERROR] WSREP: Failed to read uuid:seqno and wsrep_gtid_domain_id from joiner script.
2020-03-31 18:40:39 140613468256512 [ERROR] WSREP: SST failed: 1 (Operation not permitted)
2020-03-31 18:40:39 140613468256512 [ERROR] Aborting

Error in my_thread_global_end(): 1 threads didn't exit

安装galera集群出现以上报错的原因主要是因为配置文件中[msyqld]下没有指定数据目录导致。

 vim  /etc/my.cnf.d/server.cnf
[mysqld]
datadir=/data/mysql/

 

[mysqld]下的'datadir'条目必须存在,否则MariaBackup会弄乱自己。

Finally, the 'datadir' entry under [mysqld] MUST exist or MariaBackup will make a mess of itself.

 

posted @ 2020-03-31 18:53  巴黎斜塔  阅读(926)  评论(0编辑  收藏  举报