Creating the NFS Shares

NFS storage is used by all nodes in the Platform Kubernetes cluster to maintain state information about the infrastructure and to store other pertinent data.

For optimal security, secure all NFS settings to allow only required hosts to connect to the NFS server.

Understanding NFS Prerequisites

To ensure that your environment meets the prerequisites:

  1. On the NFS server, ensure ports 111, 2049, and 20048 are open.
  2. Ensure the required packages rpcbind and nfs-utils are installed and the related services are enabled on the NFS server.
  3. Check for prior installation.
  4. Install any missing required packages.
  5. Enable the required services by running the following commands:

    systemctl enable rpcbind
    systemctl start rpcbind
    systemctl enable nfs-server
    systemctl start nfs-server      
  1. For the minimum required sizes for each of the NFS installation directories, see the "Network File System" section in the Technical Requirements for ArcSight Platform 22.1.

Checking for Prior Installation

To check for prior installation of these packages:

  1. Set up the yum repository on your server.
  2. Run the following command:
  3. yum list installed <package name>

    This command returns an exit status code where:

    • 0 indicates the package is installed
    • 1 indicates the package is not installed (does not check whether the package is valid)

Installing a Missing Required Package

To install a missing required package, run the following command:

yum -y install <package name>

 

Understanding NFS Directory Structure

To create the NFS directory structure:

  1. Log in to the NFS server and create the following.
  2. Item Name Specification Example Command
    GROUP arcsight GID of 1999 # groupadd -g 1999 arcsight
    USER arcsight UID of 1999 # useradd -u 1999 -g 1999 -d /opt/arcsight arcsight
    NFS root directory /opt/arcsight-nfs # mkdir -p /opt/arcsight-nfs
If you have previously installed any version of CDF, you must remove all NFS shared directories from the NFS server before you proceed. To do this, run the following command for each directory: rm -rf <path to shared directory>
  1. For each directory listed in the table below, run the following command to create each NFS shared directory.
  2. mkdir -p <path to shared directory>

    For example:

    mkdir -p /opt/arcsight-nfs/itom-vol
Directory Mount Point Example

<NFS_root_DIRECTORY>/itom-vol

/opt/arcsight-nfs/itom-vol

<NFS_root_DIRECTORY>/db-single-vol

/opt/arcsight-nfs/db-single-vol

<NFS_root_DIRECTORY>/db-backup-vol

/opt/arcsight-nfs/db-backup-vol

<NFS_root_DIRECTORY>/itom-logging-vol

/opt/arcsight-nfs/itom-logging-vol

<NFS_root_DIRECTORY>/arcsight-volume

/opt/arcsight-nfs/arcsight-volume

  1. The permission setting of each parent directory and each subdirectory must be recursively set. If it is not, run the following command to update the permissions:
  2. chmod -R <path to shared directory>

    For example:

    chmod -R 755 /opt/arcsight-nfs
  1. Set the ownership in this structure to UID 1999 and GID 1999. Change the directory to /opt, then run the following command:
  2. chown -R 1999:1999 <NFS_root_DIRECTORY>
    If you use a UID/GID different than 1999/1999, then provide it during the CDF installation in the install script arguments --system-group-id and --system-user-id. In addition, if you are using NetApp with NFSv4 configuration, consider applying stickybits to al <NFS_root_directory> shares with:
    chmod g+w #chmod g+s

     

Exporting the NFS Configuration

The /etc/exports file on the NFS server must be configured to export each volume in order for the volume to be accessible over the NFS protocol. Every master and worker node in the CDF cluster must be granted access to the NFS volume shares.

  1. Save the /etc/exports file, then run the following command:
  2. exportfs -ra
  3. Synchronize the time on the NFS server and the time on the other servers in the cluster.
  4. If you add more NFS shared directories later, you must restart the NFS service.

Testing NFS

Test a mount to the NFS that might be used to determine the supported version.

  1. Create a test directory by running the following command:
  2. mkdir /mnt/nfstest
  3. Create a test mount by running the following command:
  4. mount -t nfs -o nfsvers=4 192.168.1.15:/opt/arcsight-nfs/arcsight-volume /mnt/nfstest
  5. Confirm the command.
  6. Remove the mount by running the following command:
  7. umount /mnt/nfstest