Hi all -
I have a directory containing an unknown number of files - at least 35K at one point. I would like to delete the directory, but every method I've tried runs indefinitely (> ~12 hours), hangs, or runs out of memory. The directory is on a ZFS filesystem, but it isn't a separate ZFS dataset (lesson learned for next time).
So far I have tried the following:
1.
2. Different invocations of rsync trying --delete and --delete-after;
3. I tried a perl solution suggested,
Does anyone have any suggestions for dropping this directory? I would be very appreciative - thank you in advance for your time and help!
Mods, if it would be better to post this in a different forum please let me know and I'll repost it.
I have a directory containing an unknown number of files - at least 35K at one point. I would like to delete the directory, but every method I've tried runs indefinitely (> ~12 hours), hangs, or runs out of memory. The directory is on a ZFS filesystem, but it isn't a separate ZFS dataset (lesson learned for next time).
So far I have tried the following:
1.
# rm -rf ocd-data/ - this hangs with a [zio->io_cv] in ctrl+t2. Different invocations of rsync trying --delete and --delete-after;
# rsync -a --delete-after empty_dir/ ocd-data/ just hang... and never return.3. I tried a perl solution suggested,
# perl -e 'for(<*>){((stat)[9]<(unlink))}', but I don't really know perl... and this, too, never returns. Does anyone have any suggestions for dropping this directory? I would be very appreciative - thank you in advance for your time and help!
Mods, if it would be better to post this in a different forum please let me know and I'll repost it.