[DRBD-user] can't remove directory with a few million files

Felix Frank ff at mpexnet.de
Tue Feb 1 09:50:15 CET 2011

Note: "permalinks" may not be as permanent as we would like,
direct links of old sources may well be a few messages off.


> thanks ,-)
> tried that as well. the problem is, that it still completely locks
> I/O-access to the disk (only this lvm to be exact) from time to time
> while deleting. the only work around that seems to work is deleting each
> file separately in a loop and add very short sleep (eg. for i in $(find
> subdir/ -type f); do rm -f $i $$ sleep 0.02; done ).
> that now takes forever, but at least the DRBD-device doesn't block anymore.

Couldn't you improve your mileage by deleting in swaths of (say) a
hundred at a time?



More information about the drbd-user mailing list