Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

They're simply hardlinks so the files shouldn't actually even be deleted.

What options do I have? It even seems to take quite some load. I don't see how deleting 30.000 hard-links should take more than a minute, let alone a full hour.

I use rsnapshot, centos and an ext3 file system.

share|improve this question
I am also a rsnapshot user and deletes can take a looong time. – cstamas Jun 19 '11 at 17:28
up vote 1 down vote accepted

In order to delete all those files it must traverse the directory tree, and go down into the whole lot, deleting each files & directory one by one. This can take a while.

Sometimes the choice of filesystem can matter. Some filesystems can take a long time to delete lots of little files, some are good at this.

share|improve this answer

It may be that the dir_index feature is not enabled for the filesystem. Using debugfs will allow you to verify if enabled and set it if not.

share|improve this answer
tune2fs may be a more appropriate tool for end-users than debugfs. – Steven Monday Jun 19 '11 at 17:54

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.