[gpfsug-discuss] Question on changing mode on many files

Dorigo Alvise (PSI) alvise.dorigo at psi.ch
Tue Dec 7 13:44:24 GMT 2021


Dear users/developers/support,
I'd like to ask if there is a fast way to manipulate the permission mask of many files (millions).

I tried on 900k files and a recursive chmod (chmod 0### -R path) takes about 1000s, with about 50% usage of mmfsd daemon.
I tried with the perl's internal function chmod that can operate on an array of files, and it takes about 1/3 of the previous method. Which is already a good result.

I've seen the possibility to run a policy to execute commands, but I would avoid to execute external commands through mmxargs, 1M of times; would you ?

Does anybody have any suggestion to do this operation with minimum disruption on the system ?

Thank you,

    Alvise
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://gpfsug.org/pipermail/gpfsug-discuss_gpfsug.org/attachments/20211207/086b9747/attachment-0001.htm>


More information about the gpfsug-discuss mailing list