Redis 后台重写 AOF 已完成,但出现错误

问题描述 投票:0回答:1

我已经在windows server 2016上部署了redis。

appendonly.aof
文件体积越来越大,占用了所有磁盘可用空间。

我尝试执行 BGREWRITEAOF 来减少它,但它因错误而终止。

[6268] 12 Sep 09:19:10.710 * Background AOF rewrite terminated with success
[6268] 12 Sep 09:19:10.711 * Residual parent diff successfully flushed to the rewritten AOF (0.00 MB)
[6268] 12 Sep 09:19:11.250 # Error trying to rename the temporary AOF file temp-rewriteaof-bg-6268.aof into appendonly.aof: Input/output error

其他信息:

Redis server v=3.2.100 

坚持:

loading:0
rdb_changes_since_last_save:0
rdb_bgsave_in_progress:0
rdb_last_save_time:1694506742
rdb_last_bgsave_status:ok
rdb_last_bgsave_time_sec:-1
rdb_current_bgsave_time_sec:-1
aof_enabled:0
aof_rewrite_in_progress:0
aof_rewrite_scheduled:0
aof_last_rewrite_time_sec:1
aof_current_rewrite_time_sec:-1
aof_last_bgrewrite_status:ok
aof_last_write_status:ok
redis persistence redis-server
1个回答
0
投票

这个错误可以通过这个问题来解决。 不幸的是,我发现这些问题很相似,但他们也找不到解决方案:

如何限制appendonly.aof redis文件的大小

https://serverfault.com/questions/825883/redis-appendonly-aof-file-size-out-of-control

© www.soinside.com 2019 - 2024. All rights reserved.