If there are ACLs, then you also need to update all ACLs  (gpfs_getacl(), update uids and gids in all entries, gpfs_putacl()), in addition to the chown() call.
 
Regards,
 
Christof Schmitt || IBM || Spectrum Scale Development || Tucson, AZ
[email protected]  ||  +1-520-799-2469    (T/L: 321-2469)
 
 
----- Original message -----
From: Jim Doherty <[email protected]>
Sent by: [email protected]
To: gpfsug main discussion list <[email protected]>
Cc:
Subject: [EXTERNAL] Re: [gpfsug-discuss] Change uidNumber and gidNumber for billions of files
Date: Mon, Jun 8, 2020 5:57 PM
 
 
You will need to do this with chown from the  c library functions  (could do this from perl or python).   If you try to change this from a shell script  you will hit the Linux command  which will have a lot more overhead.     I had a customer attempt this using the shell and it ended up taking forever due to a brain damaged NIS service :-).   
 
Jim 
 
On Monday, June 8, 2020, 2:01:39 PM EDT, Lohit Valleru <[email protected]> wrote:
 
 
Hello Everyone,
 
We are planning to migrate from LDAP to AD, and one of the best solution was to change the uidNumber and gidNumber to what SSSD or Centrify would resolve.
 
May I know, if anyone has come across a tool/tools that can change the uidNumbers and gidNumbers of billions of files efficiently and in a reliable manner?
We could spend some time to write a custom script, but wanted to know if a tool already exists.
 
Please do let me know, if any one else has come across a similar situation, and the steps/tools used to resolve the same.
 
Regards,
Lohit
_______________________________________________
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 
 

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

Reply via email to