<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Jul 27, 2018 at 12:36 PM, Hu Bert <span dir="ltr"><<a href="mailto:revirii@googlemail.com" target="_blank">revirii@googlemail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">2018-07-27 8:52 GMT+02:00 Pranith Kumar Karampuri <<a href="mailto:pkarampu@redhat.com">pkarampu@redhat.com</a>>:<br>
><br>
><br>
> On Fri, Jul 27, 2018 at 11:53 AM, Hu Bert <<a href="mailto:revirii@googlemail.com">revirii@googlemail.com</a>> wrote:<br>
>><br>
>> > Do you already have all the 190000 directories already created? If not<br>
>> > could you find out which of the paths need it and do a stat directly instead<br>
>> > of find?<br>
>><br>
>> Quite probable not all of them have been created (but counting how<br>
>> much would take very long...). Hm, maybe running stat in a double loop<br>
>> (thx to our directory structure) would help. Something like this (may<br>
>> be not 100% correct):<br>
>><br>
>> for a in ${100..999}; do<br>
>> for b in ${100..999}; do<br>
>> stat /$a/$b/<br>
>> done<br>
>> done<br>
>><br>
>> Should run stat on all directories. I think i'll give this a try.<br>
><br>
><br>
> Just to prevent these served from a cache, it is probably better to do this<br>
> from a fresh mount?<br>
><br>
> --<br>
> Pranith<br>
<br>
</div></div>Good idea. I'll install glusterfs client on a little used machine, so<br>
there should be no caching. Thx! Have a good weekend when the time<br>
comes :-)<br>
</blockquote></div><br></div><div class="gmail_extra">If this proves effective, what you need to also do is unmount and mount again, something like:<br clear="all"></div><div class="gmail_extra"><br></div><div class="gmail_extra">mount<br></div><div class="gmail_extra">for a in ${100..999}; do<br>
for b in ${100..999}; do<br> stat /$a/$b/<br>
done<br>
done</div><div class="gmail_extra">unmount</div><div class="gmail_extra"><br></div><div class="gmail_extra">-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Pranith<br></div></div>
</div></div>