Monthly Archives: April 2009

rm -rf on Solaris ZFS filesystem doesn’t remove directories

This is one of the weirdest problems I’ve had for a while. On one of the servers I look after my home directory was a zfs filesystem set to /home/user. If I ever did an rm -rf on a directory structure underneath my home dir, it would remove all the files but leave all directories in place. The only way to get rid of the directories was to recursively remove each one. Painful.

Today I discovered a fix – although I don’t know the reason why. Read more »