forked from Ikalus1988/MisakaNet
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlesson-disk-space-cleanup.json
More file actions
12 lines (12 loc) · 1.06 KB
/
Copy pathlesson-disk-space-cleanup.json
File metadata and controls
12 lines (12 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
{
"task_id": "lesson-disk-space-cleanup",
"title": "Disk Space Cleanup",
"domain": "general",
"tags": [
"contrib"
],
"problem": "写入文件或构建向量库时报 `No space left on device` / `ENOSPC`,hermes-hub 进程崩溃。",
"solution": "**快速定位谁占空间:**\n```bash\ndu -sh ~/.hermes/* 2>/dev/null | sort -h\ndu -sh /mnt/d/Eric/知识库/chroma_db_v4/ 2>/dev/null\n```\n\n**清理向量库旧版本:**\n```bash\n# 先停 hermes-hub\n# 查看 chroma 版本\nls /mnt/d/Eric/知识库/chroma_db_v4/\n\n# 备份后重建(如果太大)\ncp -r /mnt/d/Eric/知识库/chroma_db_v4/ ~/chroma_db_v4_backup_$(date +%Y%m%d)\n```\n\n**清理 HuggingFace 缓存:**\n```bash\n# 清理重复的 snapshot\ndu -sh ~/.cache/huggingface/hub/\n\n# 删除旧版本模型文件(谨慎)\n# huggingface-cli snapshots remove <model-id>\n```\n\n**清理 tmp 和日志:**\n```bash\nrm -rf /tmp/hermes-* 2>/dev/null\nfind ~/.hermes/logs/ -name \"*.log\" -mtime +7 -delete 2>/dev/null\n```",
"source": "lessons/contrib/disk-space-cleanup.md",
"test_cmd": ""
}