Adding space to the data directory of the Red Hat Enterprise Linux host

If you allotted insufficient disk space to the /opt/netapp/data directory to support Unified Manager when you originally set up the Red Hat Enterprise Linux host and then installed Unified Manager, you can add disk space after installation by increasing disk space on the /opt/netapp/data directory.

Before you begin

You must have root user access to the Red Hat Enterprise Linux machine on which Unified Manager is installed.

About this task

We recommend that you back up the Unified Manager database before increasing the size of the data directory.

Steps

  1. Log in as root user to the Red Hat Enterprise Linux machine on which you want to add disk space.
  2. Stop the Unified Manager service and the associated MySQL software in the order shown: service ocieau stopservice ocie stopservice mysqld stop
  3. Create a temporary backup folder (for example, /backup-data) with sufficient disk space to contain the data in the current /opt/netapp/data directory.
  4. Copy the content and privilege configuration of the existing /opt/netapp/data directory to the backup data directory: cp -rp /opt/netapp/data/* /backup-data
  5. If SE Linux is enabled:
    1. Get the SE Linux type for folders on existing /opt/netapp/data folder: se_type=`ls -Z /opt/netapp/data | awk '{print $4}' | awk -F: '{print $3}' | head -1`
      The system returns a confirmation similar to the following:
      echo $se_type
      mysqld_db_t
    2. Run the chcon command to set the SE Linux type for the backup directory: chcon -R --type=mysqld_db_t /backup-data
  6. Remove the contents of the /opt/netapp/data directory: cd /opt/netapp/datarm -rf *
  7. Expand the size of the /opt/netapp/data directory to a minimum of 750 GB through LVM commands or by adding extra disks.
    Important: Mounting the /opt/netapp/data directory on an NFS export or CIFS share is not supported.
  8. Confirm that the /opt/netapp/data directory owner (mysql) and group (root) are unchanged: ls -ltr / | grep opt/netapp/data
    The system returns a confirmation similar to the following:
    drwxr-xr-x.  17 mysql root  4096 Aug 28 13:08 data
  9. If SE Linux is enabled, confirm that the context for the /opt/netapp/data directory is still set to mysqld_db_t: touch /opt/netapp/data/abcls -Z /opt/netapp/data/abc
    The system returns a confirmation similar to the following:
    -rw-r--r--. root root unconfined_u:object_r:mysqld_db_t:s0 /opt/netapp/data/abc
  10. Copy the contents from backup-data, back to the expanded /opt/netapp/data directory: cp -rp /backup-data/* /opt/netapp/data/
  11. Start the MySQL service: service mysqld start
  12. After the MySQL service is started, start the ocie and ocieau services in the order shown: service ocie startservice ocieau start
  13. After all of the services are started, delete the backup folder /backup-data: rm -rf /backup-data