Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Mysql can't start dues to the disk space is full

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Database >

Share

Shulou(Shulou.com)06/01 Report--

Use. / mysqld_safe-- user=mysql &

Start mysql.

The mysql can not start. There are much mysql restart info show on the screen always. And can not find the / var/lib/mysql/mysql.sock file.

The reason:

Then find the space is full. So the mysql can not start naturally. Delete some log info, then the mysql start correctly.

The big log files are two:

1. Our application log

2. The / var/log/audit.d

The files in the / var/log/audit.d directory are generated by the Linux audit subsystem (Linux Audit Subsystem, or LAuS).

For security purposes, after LAuS starts, the default configuration is to record some specific system activity. If a security audit is not required, you can

To shut down the LAuS service with the following command:

Service audit stop

Chkconfig audit off

After you stop the LAuS service, any save.* files under the / var/log/audit.d directory can be deleted. We recommend you to leave it intact.

Keep the bin.* file for future use. The LAuS feature is not enabled by default in Red Hat Enterprise Edition and above Linux3.

Because LAuS is used for security audits, its log files are not automatically deleted and will always be retained. If your system is heavily loaded

And in the execution of the LAuS monitoring system, the log files of LAuS will grow rapidly, which may take up the space of / var and cause the system to crash. Yes

Several ways can be used to prevent the above events from happening. The easiest way is to monitor the size of the / var/log/audit.d directory regularly and delete obsolete

The save.* file of. Another technique is not to save archived audit logs as save.* files. Modify / etc/audit/audit.conf

The notify line of the face, replace the original / usr/sbin/audbin with / bin/true:

/ etc/audit/audit.conf

Output {

Mode = bin

Num-files = 4

File-size = 20m

File-name = "/ var/log/audit.d/bin"

Notify = "/ bin/true"

The third way is to write a script to delete the save.* file regularly.

[@ more@]

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Database

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report