我正在尝试使用galera_new_cluster脚本引导节点,但出现此错误:
Mixlib::ShellOut::ShellCommandFailed
------------------------------------
Expected process to exit with [0], but received '1'
---- Begin output of galera_new_cluster && touch /etc/my.cnf.d/cluster_bootstraped
----
STDOUT:
STDERR: /usr/bin/galera_new_cluster: line 31: return: can only `return' from a function or sourced script
---- End output of galera_new_cluster && touch /etc/my.cnf.d/cluster_bootstraped
----
Ran galera_new_cluster && touch /etc/my.cnf.d/cluster_bootstraped
returned 1
Line31是指将cmd返回到脚本中。
我的配置:
+wsrep_on = ON
+wsrep_provider = /usr/lib64/galera/libgalera_smm.so
+binlog_format = row
+default_storage_engine = InnoDB
+innodb_autoinc_lock_mode = 2
+bind-address = 0.0.0.0
+wsrep_cluster_name = MariaDB_Cluster
+wsrep_sst_method = mariabackup
+wsrep_sst_auth = root:password
+wsrep_cluster_address = gcomm://mdb01,mdb02,mdb03
+wsrep_node_address = mdb03
我正在使用mariadb 10.3,CHEF 13和Centos 7。
谢谢。