public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
From: Dave Chinner <david@fromorbit.com>
To: Adam Brenner <aebrenne@uci.edu>
Cc: xfs@oss.sgi.com
Subject: Re: XFS Adding Quotas - Skip Quota check on first mount/boot
Date: Fri, 7 Jun 2013 13:50:46 +1000	[thread overview]
Message-ID: <20130607035046.GJ29338@dastard> (raw)
In-Reply-To: <CAO9TOLffaO62ZtvchpKnnORuNd0GJMsqKDeAhmdSQ1mnFn1EpA@mail.gmail.com>

On Thu, Jun 06, 2013 at 07:59:34PM -0700, Adam Brenner wrote:
> Howdy XFS Devs,
> 
> We run a 14TB XFS fileserver on our cluster and want to add quota
> support. This is running 3.9.2-1.el6.elrepo.x86_64 kernel under CentOS
> 6.3 (Final).

How many files in the filesystem?

> The issue is when we unmount the XFS RAID, and re-mount it adding
> quota support, the mount command hangs.

It won't have hung, it will just be busy doing a quotacheck.

> Sever IS responsive and the
> XFS mount point is not accessible. Reverting our changes in /etc/fstab
> to remove the quota options does not have mount hang.

Because it doesn't do a quotacheck.

> I suspect that upon re-mount, XFS is running a quota check on the 14TB
> RAID. My question is: how do I disable the initial quota check so it
> can mount it properly and have quota check run in the background?

You can't. quotacheck relies on exclusive access to the filesystem,
and so the mount cannot process until it completes. Quotas need to
be consistent before you can start using the filesystem....

Now, there's the possibility that we could parallelise quotacheck
because it uses bulkstat for iteration, but somebody would have to
find the time to do that and it won't solve your immediate problem.

Hence I suggest just waiting for it to complete - if you have
millions of inodes it could hours to complete, so just let it go
overnight...

Cheers,

Dave.
-- 
Dave Chinner
david@fromorbit.com

_______________________________________________
xfs mailing list
xfs@oss.sgi.com
http://oss.sgi.com/mailman/listinfo/xfs

  reply	other threads:[~2013-06-07  3:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07  2:59 XFS Adding Quotas - Skip Quota check on first mount/boot Adam Brenner
2013-06-07  3:50 ` Dave Chinner [this message]
2013-06-07  5:04   ` Arkadiusz Miśkiewicz
2013-06-07  5:57     ` Dave Chinner
2013-06-07  5:25   ` Adam Brenner
2013-06-07  6:10     ` Dave Chinner
2013-06-07  6:36   ` Stan Hoeppner

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=20130607035046.GJ29338@dastard \
    --to=david@fromorbit.com \
    --cc=aebrenne@uci.edu \
    --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