- Percona-XtraDB-集群-服务器-5.5.24-23.6.340.rhel5
这是一个从属服务器。mysqladmin shutdown
挂起于:
[Note] Event Scheduler: Purging the queue. 24 events
[Note] Slave I/O thread killed while reading event
[Note] Slave I/O thread exiting, read up to log 'mysql-bin.000878', position 848536790
因此,我按下了Ctrl+ C,终端显示以下警告:
Warning; Aborted waiting on pid file: '/var/lib/mysql/x.pid' after 302 seconds
这些过程仍然存在:
root 9623 1 0 10:18 pts/8 00:00:00 /bin/sh /usr/bin/mysqld_safe --datadir=/var/lib/mysql --pid-file=/var/lib/mysql/x.pid
mysql 10357 9623 0 10:18 pts/8 00:00:06 /usr/sbin/mysqld --basedir=/usr --datadir=/var/lib/mysql --plugin-dir=/usr/lib64/mysql/plugin --user=mysql --log-error=/var/log/mysqld.log --open-files-limit=100000 --pid-file=/var/lib/mysql/x.pid --socket=/var/lib/mysql/mysql.sock
但缺少套接字文件:
ls: /var/lib/mysql/mysql.sock: No such file or directory
并且端口 3306 上没有任何内容被监听。
# netstat --inet -nlp | grep :3306
# lsof -i :3306
#
向子进程发送 SIGTERM 信号 ( kill -15
) 不起作用。我该怎么办kill -9
?
答案1
没什么。拿出 SIGKILL 蝙蝠并准备进行日志恢复。