OpenShift Container Storage is now OpenShift Data Foundation starting with version 4.9.
Chapter 2. Enabling file system access for containers on Red Hat Enterprise Linux based nodes
Deploying OpenShift Data Foundation on an OpenShift Container Platform with worker nodes on a Red Hat Enterprise Linux base in a user provisioned infrastructure (UPI) does not automatically provide container access to the underlying Ceph file system.
Skip this step for hosts based on Red Hat Enterprise Linux CoreOS (RHCOS).
Procedure
- Log in to the Red Hat Enterprise Linux based node and open a terminal.
For each node in your cluster:
Verify that the node has access to the rhel-7-server-extras-rpms repository.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager repos --list-enabled | grep rhel-7-server
# subscription-manager repos --list-enabled | grep rhel-7-server
If you do not see both
rhel-7-server-rpms
andrhel-7-server-extras-rpms
in the output, or if there is no output, run the following commands to enable each repository:Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager repos --enable=rhel-7-server-rpms
# subscription-manager repos --enable=rhel-7-server-rpms
Copy to Clipboard Copied! Toggle word wrap Toggle overflow subscription-manager repos --enable=rhel-7-server-extras-rpms
# subscription-manager repos --enable=rhel-7-server-extras-rpms
Install the required packages.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow yum install -y policycoreutils container-selinux
# yum install -y policycoreutils container-selinux
Persistently enable container use of the Ceph file system in SELinux.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow setsebool -P container_use_cephfs on
# setsebool -P container_use_cephfs on