01 Database (redis solving problems caused by sudden power failure)

Record a sudden power failure redis service can not start.

In openstack secondary development to redis database, a sudden power failure the day before the project can not normally access.

Exclude ideas:

View firewall status is off, selinux state to ensure permissive

(1) determining the normal network server.

Under normal conditions the network does not need to troubleshoot network problems;

Under normal circumstances, the use of the web page to access the platform. After entering a user name and password, after 5,6 minutes before the login management platform. Log on acquisition-related hardware information, the whole amount is 0, that did not get to any information resource .

Taking into account the use of the database to get the redis therefore see redis service is normal.

View Operation:

[root@controller]#systemctl status redis.service

(2) found redis View service status is faild, hence the need for problem-solving. Taking into account a sudden power outage, so think whether it is related to file corruption redis

Redis find the relevant files are backed up.

[root@controller]#find / -name appendonly.aof 

[root@controller]#cp appendonly.aof appendonly.aof.bak

[Root @ controller] # / usr / bin / redis-check-aof --fix appendonly.aof (yum attached to Redis)

If no redis-check-aof command, the following commands may be used to operate:

[root@controller]#find / -name redis-check-aof

(3) to restart the service redis

[root@controller]#systemctl restart redis

(4) View redis port is normal

[root@controller]#netstat -lntpv 

(5) using the normal refresh the page. Use

Guess you like

Origin www.cnblogs.com/scottsofia/p/11204355.html