Skip to main content
Active IQ Unified Manager 9.8
9.8
A newer release of this product is available.

Adding space to the data directory of the Linux host

Contributors

If you allotted insufficient disk space to the /opt/netapp/data directory to support Unified Manager when you originally set up the 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 or CentOS 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 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: systemctl stop ocieau ocie mysqld

  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 -arp /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:

    1. cd /opt/netapp/data

    2. rm -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.

    Note

    Mounting the /opt/netapp/data directory on an NFS or CIFS share is not supported.

  8. Confirm that the /opt/netapp/data directory owner (mysql) and group (root) are unchanged: ls -ltr /opt/netapp/ | grep data

    The system returns a confirmation similar to the following:

drwxr-xr-x.  17 mysql root  4096 Aug 28 13:08 data
  1. If SE Linux is enabled, confirm that the context for the /opt/netapp/data directory is still set to mysqld_db_t:

    1. touch /opt/netapp/data/abc

    2. ls -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
  2. Delete the file abc so that this extraneous file does not cause a database error in the future.

  3. Copy the contents from backup-data back to the expanded /opt/netapp/data directory: cp -arp /backup-data/* /opt/netapp/data/

  4. If SE Linux is enabled, run the following command: chcon -R --type=mysqld_db_t /opt/netapp/data

  5. Start the MySQL service: systemctl start mysqld

  6. After the MySQL service is started, start the ocie and ocieau services in the order shown: systemctl start ocie ocieau

  7. After all of the services are started, delete the backup folder /backup-data: rm -rf /backup-data