Essentially, I do a while-loop that descends to the level of customer directories and the performs the find within each one of them. Normally, I would move the files to a trash directory at the root of the filesystem, but this is on the new netapps so a) this is mounted over NFS and moves would be extremely expensive and b) there's a built-in snapshotting capability in WAFL. So I'll snap it first, then run the cleaner. (On the plus side, I've been running this cleaner against our existing storage for years, so the basic algorithm is rock-solid.)
No comments:
Post a Comment