* XFS quotas: Skipping quotacheck in the initial mount
@ 2018-04-26 14:58 Jorge Garcia
2018-04-30 9:27 ` Carlos Maiolino
2018-04-30 22:48 ` Dave Chinner
0 siblings, 2 replies; 3+ messages in thread
From: Jorge Garcia @ 2018-04-26 14:58 UTC (permalink / raw)
To: linux-xfs
Hi all,
I tried to add XFS quotas in a fileserver with a capacity of 260TB
(112TB occupied), but after adding the user and project quota options
for this disk in the fstab file and remounting it, the mount rest
hanged running the quota check process. I waited for 20 minutes, but
this process did not finish. Due to this server can't be unavailable,
I had to cancel the process and remove the quota options from fstab
file.
My question is: Would it be possible to run the quota check process in
the background? If not, how could I get the estimated time to finish
this process?
Additional info:
This server is running 3.10.0-693.21.1.el7.x86_64 kernel (CentOS 7.4),
and here the number of inodes:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/sda 5625717696 39592403 5586125293 1% /export
Thanks in advance!
Jorge
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: XFS quotas: Skipping quotacheck in the initial mount
2018-04-26 14:58 XFS quotas: Skipping quotacheck in the initial mount Jorge Garcia
@ 2018-04-30 9:27 ` Carlos Maiolino
2018-04-30 22:48 ` Dave Chinner
1 sibling, 0 replies; 3+ messages in thread
From: Carlos Maiolino @ 2018-04-30 9:27 UTC (permalink / raw)
To: Jorge Garcia; +Cc: linux-xfs
Hi,
On Thu, Apr 26, 2018 at 04:58:00PM +0200, Jorge Garcia wrote:
> Hi all,
>
> I tried to add XFS quotas in a fileserver with a capacity of 260TB
> (112TB occupied), but after adding the user and project quota options
> for this disk in the fstab file and remounting it, the mount rest
> hanged running the quota check process. I waited for 20 minutes, but
> this process did not finish. Due to this server can't be unavailable,
> I had to cancel the process and remove the quota options from fstab
> file.
>
> My question is: Would it be possible to run the quota check process in
> the background? If not, how could I get the estimated time to finish
> this process?
>
No, otherwise you would get an inconsistency in the quotas, let's say for
example, it runs in background, and an user with limited quotas starts to write
to the filesystem, how would you check if the user has already used its space
share if the filesystem didn't read yet its current used space?
The quotacheck though only runs for the first time (as long FS consistency is
kept at least), so you won't have this delay on mount time every time you mount
your filesystem.
So, you can simply umount/mount the filesystem before rebooting your system, so
the quotacheck can run with your system up.
About the time it will need, it's hard to do, it all depends of your disk(s)
speed, the layout of the files in your disk(s), etc. XFS will need to walk
through all inodes and check to which user it belongs to, size used, etc, so, it
really depends a lot on how fast XFS can read all inodes from your disk(s).
Cheers.
> Additional info:
>
> This server is running 3.10.0-693.21.1.el7.x86_64 kernel (CentOS 7.4),
> and here the number of inodes:
>
> Filesystem Inodes IUsed IFree IUse% Mounted on
> /dev/sda 5625717696 39592403 5586125293 1% /export
>
> Thanks in advance!
> Jorge
> --
> To unsubscribe from this list: send the line "unsubscribe linux-xfs" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
--
Carlos
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: XFS quotas: Skipping quotacheck in the initial mount
2018-04-26 14:58 XFS quotas: Skipping quotacheck in the initial mount Jorge Garcia
2018-04-30 9:27 ` Carlos Maiolino
@ 2018-04-30 22:48 ` Dave Chinner
1 sibling, 0 replies; 3+ messages in thread
From: Dave Chinner @ 2018-04-30 22:48 UTC (permalink / raw)
To: Jorge Garcia; +Cc: linux-xfs
On Thu, Apr 26, 2018 at 04:58:00PM +0200, Jorge Garcia wrote:
> Hi all,
>
> I tried to add XFS quotas in a fileserver with a capacity of 260TB
> (112TB occupied), but after adding the user and project quota options
> for this disk in the fstab file and remounting it, the mount rest
> hanged running the quota check process. I waited for 20 minutes, but
> this process did not finish. Due to this server can't be unavailable,
> I had to cancel the process and remove the quota options from fstab
> file.
>
> My question is: Would it be possible to run the quota check process in
> the background? If not, how could I get the estimated time to finish
> this process?
>
> Additional info:
>
> This server is running 3.10.0-693.21.1.el7.x86_64 kernel (CentOS 7.4),
> and here the number of inodes:
>
> Filesystem Inodes IUsed IFree IUse% Mounted on
> /dev/sda 5625717696 39592403 5586125293 1% /export
FYI, you have 39.5 million allocated inodes. Given optimal inode
chunk distribution, that requires (39.5 / 32) million IOs to run
a quota scan. If you have spinning disks, then you are looking at
300 IOs/s here, and so somewhere around (1.25 x 10^6 / 3 x 10^2) =
~4200 seconds.
So I'd expect quota check to take somewhere between 1.5-2 hours to
complete on a filesystem like this.
Cheers,
Dave.
--
Dave Chinner
david@fromorbit.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2018-04-30 22:48 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-26 14:58 XFS quotas: Skipping quotacheck in the initial mount Jorge Garcia
2018-04-30 9:27 ` Carlos Maiolino
2018-04-30 22:48 ` Dave Chinner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).