# MISCONF：保存 RDB 快照失败：磁盘已满

- **ID:** `redis/rdb-save-failed-disk-full`
- **领域:** redis
- **类别:** io_error
- **验证级别:** ai_generated
- **修复率:** 90%

## 根因

Redis 存储 RDB 文件的文件系统空间不足，无法进行快照持久化。

## 版本兼容性

| 版本 | 状态 | 引入 | 弃用 |
|------|------|------|------|
| Redis 6.0 | active | — | — |
| Redis 7.0 | active | — | — |
| Redis 7.2 | active | — | — |

## 解决方案

1. ```
   通过移动或删除旧的 RDB/AOF 文件释放磁盘空间：find /var/lib/redis -name '*.rdb' -mtime +7 -delete（调整路径）。
   ```
2. ```
   向 Redis 数据目录添加更多磁盘空间或挂载更大的卷，然后手动触发 BGSAVE。
   ```

## 无效尝试

- **Delete random files from the disk to free space without checking Redis data** — May delete critical system files or other application data, causing instability. (50% 失败率)
- **Disable RDB persistence entirely with CONFIG SET save ''** — Removes all snapshot persistence, risking data loss on crash or restart. (30% 失败率)
