Hi Thomas,

Thank you. This explains everything. I think I'm going to take access
condition off for the directory removal hoping that users don't complain
about empty directory removal regardless of access time.

Thank you again for your quick answer.

Best,
Sreedhar.

Sreedhar Manchu
HPC Systems Administrator
eSystems & Research Services
New York University, New York 10012



On Tue, Nov 26, 2013 at 3:01 PM, Thomas LEIBOVICI
<[email protected]>wrote:

>  Hi,
>
> I think your problem is the "last_access <= 60d" condition which is
> unlikely to happen for directories.
> Indeed, every "ls" on the directory is considered as an access and so
> update its access time in  the filesystem.
> Even the robinhood check for testing if a directory is empty may update
> it...
>
> Regards,
> Thomas
>
>
> Le 26/11/2013 16:06, Sreedhar Manchu a écrit :
>
> Hi,
>
>  We have been using Robinhood for regular clean up of our scratch space.
> It works very well. At the beginning we didn't want to clean up  any
> directories for different reasons. Then users started complaining about it
> and so I modified the configuration for Robinhood to do this.
>
>  But it looks like directory cleanup is not happening at all. I have
> pasted the configuration below. I run Robinhood once a week as cronjob.
> This is how I run it:
>
>  robinhood -P -R -O
>
>
>  I even tried running robinhood -P -O and then robinhood -R -O. But it
> looks like directory cleanup didn't happen in both the cases. Am I doing
> something wrong in my configuration or is there a way one could achieve
> both file and directory removal at the same time?
>
>
>  The reason I'm asking this is that right now I'm not sure when would
> robinhood would start deleting directories after cleaning all the files in
> that directory (age_rm_empty_dirs is 1 minute).
>
>
>  Any help would be appreciated. Thank you in advance for your help.
>
>  rmdir_policy
>
> {
>
>     # Remove directories that have been empty for more than 1 minute
>
>     age_rm_empty_dirs   = 1min;
>
>
>      # don't remove dirs that owns to 'root' or whose depth < 2
>
>     Ignore
>
>     {
>
>         depth < 2
>
> or last_access <= 60d
>
>  or tree == "/scratch/root"
>
> or tree == "/scratch/cgsb"
>
> or tree == "/scratch/work"
>
> or owner == "root"
>
> or type == symlink
>
>     }
>
>
>      #ignore_fileclass = hpc_admins;
>
>
>  }
>
>
>  Rmdir_Parameters
>
> {
>
>     # Interval for performing empty directory removal
>
>     runtime_interval = 12h ;
>
>
>      # Number of threads for performing rmdir operations
>
>     nb_threads_rmdir = 8 ;
>
>
>      # Queue size (for leveraging rmdir threads load)
>
>     rmdir_queue_size = 256 ;
>
>  }
>
>
>
>   Sreedhar Manchu
> HPC Systems Administrator
> eSystems & Research Services
> New York University, New York 10012
>
>
>
> ------------------------------------------------------------------------------
> Shape the Mobile Experience: Free Subscription
> Software experts and developers: Be at the forefront of tech innovation.
> Intel(R) Software Adrenaline delivers strategic insight and game-changing
> conversations that shape the rapidly evolving mobile landscape. Sign up now. 
> http://pubads.g.doubleclick.net/gampad/clk?id=63431311&iu=/4140/ostg.clktrk
>
>
>
> _______________________________________________
> robinhood-support mailing 
> [email protected]https://lists.sourceforge.net/lists/listinfo/robinhood-support
>
>
>
------------------------------------------------------------------------------
Rapidly troubleshoot problems before they affect your business. Most IT 
organizations don't have a clear picture of how application performance 
affects their revenue. With AppDynamics, you get 100% visibility into your 
Java,.NET, & PHP application. Start your 15-day FREE TRIAL of AppDynamics Pro!
http://pubads.g.doubleclick.net/gampad/clk?id=84349351&iu=/4140/ostg.clktrk
_______________________________________________
robinhood-support mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/robinhood-support

Reply via email to