Preparing the RHEL Environment: How to set the fs.may_detach_mounts?

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

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?

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.

1 Like

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