Chapter 5. Configuring shared storage using NFS


The RHUA and CDS nodes require a shared storage volume that both can access to store content managed by RHUI. Currently, RHUI supports only network file system (NFS) solutions. You can set up an NFS server either on the RHUA node or on a dedicated machine.

The following instructions explain how to create and configure an NFS to work with RHUI.

Note

Setting up your NFS server on a dedicated machine allows the CDS nodes and your RHUI clients to continue working even if something happens to the RHUA node.

Prerequisites

  • Ensure you have root access to the NFS server
  • Ensure you have root access to the RHUA node
  • Ensure you have root access to all the CDS nodes you plan to use.

Procedure

  1. Install the nfs-utils package on the node hosting the NFS server, the RHUA node (if it differs from the NFS node), and all the CDS nodes.

    # yum install nfs-utils
  2. Create a suitable directory to hold all the RHUI content.

    # mkdir /export
  3. Allow your RHUA and CDS nodes access to the directory by editing the /etc/exports file and adding the following line:

    /export rhua.example.com(rw,no_root_squash) cds01.example.com(rw,no_root_squash) cds02.example.com(rw,no_root_squash)
  4. Start and enable the NFS service.

    # systemctl start nfs-server
    # systemctl start rpcbind
    # systemctl enable nfs-server
    # systemctl enable rpcbind
    Note

    If the NFS service is already running use the restart command instead of the start command.

Verification

  • To test whether an NFS server is set up on a machine named filer.example.com, run the following commands on a CDS node:

    # mkdir /mnt/nfstest
    # mount filer.example.com:/export /mnt/nfstest
    # touch /mnt/nfstest/test

    Your setup is working properly if you do not get any error messages.

Red Hat logoGithubRedditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

© 2024 Red Hat, Inc.