Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
单文件夹含大量文件如何删除?
Experiences and Insight
487
views ·
0
replies ·
To
floor
Go
呆了个呆
deepin
2017-02-28 16:10
Author
本帖最后由 w113124 于 2017-2-28 08:11 编辑
先说明一下,这个问题不是deepin的问题,是我deboan服务器上的一个错误配置,没有定期清理过期临时文件引起的
这个目录里到底有多少文件已经无法知道了(估计上千万个文件,之前还清理了另一个300到500万左右的目录,用php脚本成功清理了),现在对这个目录只能使用 cd 命令,其它命令要么是卡半天后没找到文件,要么就是用ps查看状态变成了D,然后系统的load average一路上升到好几百,使用 rm, rsync,命令删除过,卡半天后load average几百,用php脚本opendir打开目录,卡半天后readdir反回0个文件。。。
现在我要备份这个目录父路径上的东西,服务器是4T单分区的,又不能格式化,头痛啊。。。
Reply
Like 0
Favorite
View the author
All Replies
No replies yet
Please
sign
in first
Featured Collection
Change
Nuntia - Modern IMAP/SMTP mail client for Deepin (Beta tester wanted!)
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
Four agent skills for laptop power, sleep, and honest bug reports
Installing qemu-user breaks deepin
Adding a Dancing Spectrum Bar to the Deepin Taskbar | deepin-spectrum
Popular Events
More
先说明一下,这个问题不是deepin的问题,是我deboan服务器上的一个错误配置,没有定期清理过期临时文件引起的
这个目录里到底有多少文件已经无法知道了(估计上千万个文件,之前还清理了另一个300到500万左右的目录,用php脚本成功清理了),现在对这个目录只能使用 cd 命令,其它命令要么是卡半天后没找到文件,要么就是用ps查看状态变成了D,然后系统的load average一路上升到好几百,使用 rm, rsync,命令删除过,卡半天后load average几百,用php脚本opendir打开目录,卡半天后readdir反回0个文件。。。
现在我要备份这个目录父路径上的东西,服务器是4T单分区的,又不能格式化,头痛啊。。。