Provisioning storage

For the following validations, log in to the candidate host as root or as a user with superuser privileges. Determine whether the available, unused storage is sufficient and provision it:

  1. Display the available storage devices:
    lsblk --output=NAME,SIZE
  2. Compare the available storage with the amount required for an Analytics server, identify an appropriate partition, and create the appropriate file system. For specifics, refer to your Zenoss Professional Services architecture document. The required minimums are:
    • 50GB for /opt/zenoss_analytics. This is where the Analytics software is installed, and is also used as temporary storage by the ETL processes
    • 500GB for /var/lib/mysql. This is where mySQL stores its data, that is for both the data analytics database and the data warehouse.
    • 10GB for /tmp. This is used as temporary storage by both the Analytics ETL application and mySQL.
  3. For each type of storage listed above that requires provisioning, identify an appropriate partition, and create and mount the appropriate file system as necessary:
    1. Identify the target primary partition for the file system to create.
      lsblk --output=NAME,SIZE,TYPE,FSTYPE,MOUNTPOINT
    2. Create an EXT4 file system of the partition.
      mkfs -t ext4 <partition>
    3. Create the mount point for the file system.
      mkdir -p <filesystem path>

      that is, mkdir -p /opt/zenoss_analytics

    4. Add an entry for the file system to the /etc/fstab file. Replace <partition> with the path of the partition from step b and the <filesystem path> from that used in the previous step:
      echo "<partition> <filesystem path> ext4 defaults 0 0" >> /etc/fstab
    5. Mount the file system, and then verify it mounted correctly. Replace the <file system path> as appropriate:
      mount -a && mount | grep <filesystem path>