# Preparing the RHEL Environment: How to set the fs.may\_detach\_mounts?

**URL:** <https://discuss.elastic.co/t/preparing-the-rhel-environment-how-to-set-the-fs-may-detach-mounts/171926>\
**Category:** Elastic Cloud Enterprise (ECE)\
**Created:** [March 12, 2019, 10:47am UTC](https://discuss.elastic.co/t/preparing-the-rhel-environment-how-to-set-the-fs-may-detach-mounts/171926 "2019-03-12T10:47:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ong](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ong/32/40766_2.png) [@Ong](https://discuss.elastic.co/u/Ong)\
**Post date:** [March 12, 2019, 10:47am UTC](https://discuss.elastic.co/t/preparing-the-rhel-environment-how-to-set-the-fs-may-detach-mounts/171926/1 "2019-03-12T10:47:18Z")

</div>

I am preparing the RHEL environment for installing ECE based on the documentation at [https://www.elastic.co/guide/en/cloud-enterprise/2.0/ece-configure-hosts-rhel-centos.html](https://www.elastic.co/guide/en/cloud-enterprise/2.0/ece-configure-hosts-rhel-centos.html)

I am stuck at the step on enabling fs.may\_detach\_mounts. I ran the "cat /proc/sys/fs/may\_detach\_mounts" and the system returned "cat: /proc/sys/fs/may\_detach\_mounts: No such file or directory".

Then I added the line "fs.may\_detach\_mounts=1" into /etc/sysctl.conf.

After that, I ran sysctl -p and /proc/sys/fs/may\_detach\_mounts but got the same no such file or directory message.

I tried to create the "may\_detach\_mounts" directory and the system returned "mkdir: Cannot create directory '/proc/sys/fs/may\_detach\_mounts: No such file or directory".

How do I enable this setting on RHEL?

---

<div class="post-metadata">

**Author:** ![osykora](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/osykora/32/41464_2.png) [@osykora](https://discuss.elastic.co/u/osykora)\
**Post date:** [March 13, 2019, 8:50am UTC](https://discuss.elastic.co/t/preparing-the-rhel-environment-how-to-set-the-fs-may-detach-mounts/171926/2 "2019-03-13T08:50:44Z")

</div>

Hi,

I would check the version of the kernel you use as I'm not sure this is supported by old versions, see [https://bugzilla.redhat.com/show\_bug.cgi?id=1441737](https://bugzilla.redhat.com/show_bug.cgi?id=1441737).

---

<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:** [March 27, 2019, 8:50am UTC](https://discuss.elastic.co/t/preparing-the-rhel-environment-how-to-set-the-fs-may-detach-mounts/171926/3 "2019-03-27T08:50:47Z")

</div>

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