I stupidly created a reasonably deep tree (4 folders deep) with the leaf folders containing a large amount of smallish files (over 1 million files around 200kb to 1mb in size). In total the count would be over 80 GB of files. This was created in the /tmp/ directory of a Ubuntu Server 14.04 box running inside Hetzner (relevant to come up with way to connect to it possibly).
From memory running a "find . | wc -l" took over 12 hours to run.
I then needed to reboot the server. This is not normally an issue as it has been rebooted multiple times over the last few weeks without issue. No config changes have taken place nor additional software installed.
In this case however it is not coming back online. I can ping the box but I cannot ssh or connect to any port I would expect to come back online.
I suspect the issue is that the script that mounts and clears tmp on boot /etc/init/mounted-tmp.conf is struggling to clear the files, causing the box to be stuck in the init boot phase.
I don't suppose there is any way to speed this process up? I know if I could disable the tmp clean somehow I could use the rsync trick to clean the folders but I have no idea how to even do this.