启动MariaDB服务器时遇到问题,获取错误:“参数太多(第一个额外参数是”"-wsrep-new-cluster“”)”

0g0grzrc  于 12个月前  发布在  其他
关注(0)|答案(1)|浏览(136)

我已经在RHEL服务器中创建了一个2节点的Maria DB加莱拉集群,该集群运行正常。
然后由于某种原因,其中一个节点(我们称之为“Node 2”)停止工作,所以我试图通过从“server.cnf”属性文件中删除该服务器的IP来从第一个节点中删除该节点。
然后我的第一个节点(我们称之为“Node 1”)停止工作,所以我试图通过禁用wsrep* 属性来禁用Node 1上的所有集群配置。在那之后,我开始得到错误**“Too many arguments(first extra is '"-wsrep-new-cluster”**

我也试过这个命令“mysqld_safe --wsrep-recover”,但问题没有解决。

所以为了修复它,我从两个节点上删除了Maria DB,然后重新安装了它。
现在重新安装后,Node 2已经开始正常工作,但在Node 1我仍然得到相同的错误**“Too many arguments(first extra is '"-wsrep-new-cluster”"**尽管我没有修改任何东西。
详细的日志输出如下:

2023-09-27 16:45:34 0 [Note] Starting MariaDB 11.0.3-MariaDB source revision 70905bcb9059dcc40db3b73bc46a36c7d40f1e10 as process 14566
2023-09-27 16:45:34 0 [Note] InnoDB: Compressed tables use zlib 1.2.7
2023-09-27 16:45:34 0 [Note] InnoDB: Number of transaction pools: 1
2023-09-27 16:45:34 0 [Note] InnoDB: Using crc32 + pclmulqdq instructions
2023-09-27 16:45:34 0 [Note] InnoDB: Using Linux native AIO
2023-09-27 16:45:34 0 [Note] InnoDB: Initializing buffer pool, total size = 128.000MiB, chunk size = 2.000MiB
2023-09-27 16:45:34 0 [Note] InnoDB: Completed initialization of buffer pool
2023-09-27 16:45:34 0 [Note] InnoDB: Resetting space id's in the doublewrite buffer
2023-09-27 16:45:34 0 [Note] InnoDB: File system buffers for log disabled (block size=512 bytes)
2023-09-27 16:45:34 0 [Note] InnoDB: End of log at LSN=2640760968
2023-09-27 16:45:34 0 [Note] InnoDB: Opened 3 undo tablespaces
2023-09-27 16:45:34 0 [Note] InnoDB: 128 rollback segments in 3 undo tablespaces are active.
2023-09-27 16:45:34 0 [Note] InnoDB: Setting file './ibtmp1' size to 12.000MiB. Physically writing the file full; Please wait ...
2023-09-27 16:45:34 0 [Note] InnoDB: File './ibtmp1' size is now 12.000MiB.
2023-09-27 16:45:34 0 [Note] InnoDB: log sequence number 2640760968; transaction id 355136
2023-09-27 16:45:34 0 [Note] Plugin 'FEEDBACK' is disabled.
2023-09-27 16:45:34 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
2023-09-27 16:45:34 0 [Note] Plugin 'wsrep-provider' is disabled.
2023-09-27 16:45:34 0 [Note] InnoDB: Buffer pool(s) load completed at 230927 16:45:34
/usr/sbin/mariadbd: Too many arguments (first extra is '”–wsrep-new-cluster”').
2023-09-27 16:45:34 0 [ERROR] Aborting
2ic8powd

2ic8powd1#

你用的不是普通的连字符:

MariaDB [(none)]> select hex('–'), hex('-');
+------------+----------+
| hex('–')   | hex('-') |
+------------+----------+
| E28093     | 2D       |
+------------+----------+
1 row in set (0.000 sec)

也可以使用--wsrep-new-cluster(两个连字符(-))。

相关问题