On Thu, Jul 28, 2016 at 03:30:16AM +0000, Ryan Lindsay wrote: > Hi > > I have a bit of a specific requirement. > > I have a server that currently has a 12T worth of data on it on an > xfs formatted LV. > > currently the file permissions are set via an LDAP, however we are > having to move to AD for out authentication mechanism. Which will > change the value of the existing UID's and GID's > > Since XFS has a lot of mechanisms that allow things to happen in > parallel. I was wondering if there was a way of interacting at the > file system level to facilitate a change of UID's on files rather > than having to just chown recursively down the file system. The > faster I can update the permissions the better basically The directory structure can be modified in parallel, so simply run multiple recursive chowns down separate branches of the directory tree on the filesystem. That will run as fast as your IO subsystem will let it. e.g. I can remove a 16-subdirectory wide tree with 50 million files in it using 16 "rm -rf subdir.$i" commands in about 4 minutes. It runs at 12,000 read IOPS doing it that. i.e. it runs as fast as the underlying storage can read the directory and inodes into cache. Cheers, Dave. -- Dave Chinner david@xxxxxxxxxxxxx _______________________________________________ xfs mailing list xfs@xxxxxxxxxxx http://oss.sgi.com/mailman/listinfo/xfs