由于华为云实例磁盘满导致的数据库插入失败

一:当MongoDB实例的磁盘空间被耗尽后,收到华为云邮件通知如下:

由于华为云实例磁盘满导致的数据库插入失败_第1张图片

发现所有的insert操作报错如下:

com.mongodb.MongoCommandException: Command failed with error 13: 'Has no authorized to execute command:insert' on server 172.x.x.x:8635

删除数据后,插入正常

二:mysql数据库日志库磁盘告警,数据库读写变成了只读

由于华为云实例磁盘满导致的数据库插入失败_第2张图片

 查看mysql数据库是否只读:show global variables like "%read_only%"

插入数据库报错如下:The MySQL server is running with the --read-only option so it cannot execute this statement

清除数据后,更改了只读为读写,重新启动后,插入正常

你可能感兴趣的:(数据库,华为云)