# Xfs\_quota not working

**URL:** <https://discuss.elastic.co/t/xfs-quota-not-working/166591>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [January 31, 2019, 3:21pm UTC](https://discuss.elastic.co/t/xfs-quota-not-working/166591 "2019-01-31T15:21:47Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![darren.skinner](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@darren.skinner](https://discuss.elastic.co/u/darren.skinner)\
**Post date:** [January 31, 2019, 3:21pm UTC](https://discuss.elastic.co/t/xfs-quota-not-working/166591/1 "2019-01-31T15:21:47Z")

</div>

I'm having issues getting quotas working in ece. version 2.0.1

I'm getting the following error in the allocator.log file:

```
[2019-01-31 14:44:02,569][WARN][no.found.runner.managers.XFSQuotaManager] Command [[sudo, -n, xfs_quota, -x, -c, limit -p bhard=4096m rtbhard=4096m 17851, /local]] returned status code [0]] with output: [E: [xfs_quota: cannot setup path for mount /local: No such device or address], E: [xfs_quota: cannot setup path for mount /local: No such device or address]] {}

```

It seems to be complaining about setting it up for /local however /local is not my data path. it is /local/elastic-cloud

```
bash-4.2$ mount|grep local
/dev/mapper/vg_elastic_cloud-ece on /local/elastic-cloud type xfs 
(rw,relatime,attr2,inode64,prjquota)

```

If i run the command with the correct filesystem it creates the quota as expected:

```
15:15:17 # xfs_quota -x -c 'limit -p bhard=4096m rtbhard=4096m 17851' /local/elastic-cloud

15:15:17 # xfs_quota -x -c 'report -h ' /local/elastic-cloud
Project quota on /local/elastic-cloud (/dev/mapper/vg_elastic_cloud-ece)
                    Blocks
Project ID Used Soft Hard Warn/Grace
---------- ---------------------------------
#0 45.6M 0 0 00 [------]
#17851 0 0 4G 00 [------]
```

---

<div class="post-metadata">

**Author:** ![rockybean](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rockybean/32/11443_2.png) [@rockybean](https://discuss.elastic.co/u/rockybean)\
**Post date:** [February 1, 2019, 12:12am UTC](https://discuss.elastic.co/t/xfs-quota-not-working/166591/2 "2019-02-01T00:12:37Z")

</div>

Did you specify data path when you install ece?

Can you list your directory under /local ?

---

<div class="post-metadata">

**Author:** ![darren.skinner](https://avatars.discourse-cdn.com/v4/letter/d/7ba0ec/32.png) [@darren.skinner](https://discuss.elastic.co/u/darren.skinner)\
**Post date:** [February 4, 2019, 2:28pm UTC](https://discuss.elastic.co/t/xfs-quota-not-working/166591/3 "2019-02-04T14:28:58Z")

</div>

HI,

I specified the data path as /local/elastic-cloud

the only contents of the /local directory is elastic-cloud

---

<div class="post-metadata">

**Author:** ![Alex\_Piggott](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/alex_piggott/32/11053_2.png) [@Alex\_Piggott](https://discuss.elastic.co/u/Alex_Piggott)\
**Post date:** [February 4, 2019, 2:53pm UTC](https://discuss.elastic.co/t/xfs-quota-not-working/166591/4 "2019-02-04T14:53:20Z")

</div>

Hi @darren.skinner

Looking at the code, it _appears_ that you can't use the `host storage path` as the root of a volume.

Eg if you want ECE to use `/local/elastic-cloud` then the XFS root must be `/local`. If that's not possible then everything needs to move up by one, eg the volume could be `/local/xfs` and then `--host-storage-path` could be `/local/xfs/elastic-cloud`

I didn't know this until just now when I looked, and it doesn't seem to be documented anywhere - that's something we'll look into.

Apologies for the inconvenience.

Alex

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 18, 2019, 2:53pm UTC](https://discuss.elastic.co/t/xfs-quota-not-working/166591/5 "2019-02-18T14:53:27Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
