If you are running on a more recent version of Scale you might want to look at the mmfind command.  It provides a find-like wrapper around the execution of policy rules.

Fred
_______________________________________________________
Fred Stock | Spectrum Scale Development Advocacy | 720-430-8821
[email protected]
 
 
----- Original message -----
From: "Dorigo Alvise (PSI)" <[email protected]>
Sent by: [email protected]
To: "'gpfsug main discussion list'" <[email protected]>
Cc:
Subject: [EXTERNAL] [gpfsug-discuss] Question on changing mode on many files
Date: Tue, Dec 7, 2021 8:53 AM
 

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

_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss 
 


_______________________________________________
gpfsug-discuss mailing list
gpfsug-discuss at spectrumscale.org
http://gpfsug.org/mailman/listinfo/gpfsug-discuss

Reply via email to