Mounting on a Dedicated Disk for Sisense Single Nodes

Applicable to Sisense on Linux

For Sisense Linux deployments on a single node, you must mount the /opt directory on a dedicated disk. To mount an attached block device on every system reboot, add an entry for the device to the /etc/fstab file. You can use the device name, such as /dev/xvdf, in /etc/fstab, but Sisense recommends using the device's 128-bit universally unique identifier (UUID) instead. Device names can change, but the UUID persists throughout the lifetime of the partition. By using the UUID, you reduce the chances that the system becomes unbootable after a hardware reconfiguration.

To mount /opt:

  1. Find the name of the device.
    sudo lsblk -o
  2. Format the device with the your disk name
    sudo mkfs.xfs /dev/{second_disk_name}
  3. Verify that the /opt directory exists.
    sudo mkdir -p /opt
  4. Find the UUID/ name of the device.
    sudo lsblk -o +UUID
  5. Open the /etc/fstab file using any text editor.
    sudo vim /etc/fstab
  6. Add the following entry to /etc/fstab to mount the device at the specified mount point. The fields are the UUID value returned by blkid (or lsblk for Ubuntu 18.04), the mount point, the file system, and the recommended file system mount options.
    UUID=aebf131c-6957-451e-8d34-ec978d9581ae /opt xfs defaults,nofail 0 2
    Note: If you ever boot your instance without this volume attached (for example, after moving the volume to another instance), the nofail mount option enables the instance to boot even if there are errors mounting the volume. Debian derivatives, including Ubuntu versions earlier than 16.04 must also add the nobootwait mount option.
  7. To verify that your entry works, run the following commands to mount all file systems in /etc/fstab. If there are no errors, your file system will mount automatically after it is rebooted.
    sudo mount -a
  8. Verify that the /opt directory is mounted to the new drive and is on the new disk.