From: Dave Chinner <david@fromorbit.com>
To: Ryan Lindsay <rlindsay@unimelb.edu.au>
Cc: "xfs@oss.sgi.com" <xfs@oss.sgi.com>
Subject: Re: Any better way to interact with xfs?
Date: Fri, 29 Jul 2016 12:33:33 +1000 [thread overview]
Message-ID: <20160729023333.GB16044@dastard> (raw)
In-Reply-To: <SYXPR01MB044863A851C967C37649BE3FF8000@SYXPR01MB0448.ausprd01.prod.outlook.com>
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@fromorbit.com
_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs
prev parent reply other threads:[~2016-07-29 2:34 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-28 3:30 Any better way to interact with xfs? Ryan Lindsay
2016-07-28 3:48 ` Eric Sandeen
2016-07-28 6:48 ` Amir Goldstein
2016-07-29 2:25 ` Dave Chinner
2016-07-30 14:26 ` Amir Goldstein
2016-07-31 0:34 ` Dave Chinner
2016-07-31 6:12 ` Amir Goldstein
2016-07-31 23:08 ` Dave Chinner
2016-07-29 2:33 ` Dave Chinner [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160729023333.GB16044@dastard \
--to=david@fromorbit.com \
--cc=rlindsay@unimelb.edu.au \
--cc=xfs@oss.sgi.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox