# Storage Considerations

Upon initial installation HPE Morpheus Enterprise takes up less than 10 GB of space, however HPE Morpheus Enterprise Services, Virtual Images, Backups, Logs, stats, and user-uploaded and imported data require adequate space on the HPE Morpheus Enterprise Appliance(s) based on appliance configuration and activity. HPE Morpheus Enterprise recommends at least 200 GB as a general figure to start from but storage needs will vary dramatically based on each specific use case. In some cases, significantly more space will be needed.

IMPORTANT

It is the customer’s responsibility to ensure adequate storage space per configuration and use case. The appliance should be properly monitored to ensure it does not run low on disk space.

## Default Paths

`/opt/morpheus`
:   Morpheus Application and Services Files

`/var/opt/morpheus`
:   User, Application and Services Data, including default config Opensearch, RabbitMQ and Database data, default Virtual Image path, and working directory for Backups

`/var/opt/morpheus/morpheus-ui` (HA Installations Only)
:   In an HA Installation, a NFS share is required and mounted to this location. Virtual Images, Plugins, and other shared files are stored at this path to be accessible for all nodes

`/home`
:   Morpheus service account home data, such as configuration files

`/var/log`
:   Morpheus Service logs

`/tmp`
:   Storage for any temp files created by Morpheus or the operating system

## Images

Virtual Images can be uploaded to HPE Morpheus Enterprise Storage Providers for use across Clouds. By default when no Storage Provider has been added, images will write to `/var/opt/morpheus/morpheus-ui/vms`. Please ensure adequate space when uploading Images using local file paths.

## Backups

HPE Morpheus Enterprise can offload snapshots when performing backups to local or other Storage Providers. By default when no Storage Provider has been added, backups will write to `/var/opt/morpheus/bitcan/backups/`. When using none NFS Storage providers, the backup file(s) must be written to `/var/opt/morpheus/bitcan/working/` before they can be zipped, sent to the destination Storage provider such as S3, and removed from `/var/opt/morpheus/bitcan/working/`. Please ensure adequate space in `/var/opt/morpheus/bitcan/` when offloading Backups.

NOTE

The backup /working and /backups paths are configurable in morpheus.rb with bitcan[‘working\_directory’] = ‘$path’ and bitcan[‘backup\_directory’] = ‘/tmp’

## VM Logs and Stats

When using HPE Morpheus Enterprise with a locally-installed Elasticsearch configuration, VM, Container, Host and Appliance logs and stats are are stored in Elasticsearch. Please ensure adequate space in `/var`, specifically `/var/opt/morpheus/elasticsearch` in relation to the number of Instances reporting logs, log frequency, and log retention count. With partition space at 85% filled or higher (by default), Elasticsearch will enter an unhealthy state and the HPE Morpheus Enterprise appliance will not function properly.

## HPE Morpheus Enterprise Services Logs

Logs for services local to the HPE Morpheus Enterprise Appliance, such as the Morpheus UI, elasticsearch, rabbitmq, mysql, nginx and guacd are written to `/var/log/morpheus/`. Current logs are rotated nightly, zipped, and files older than 30 days are automatically removed. Misconfigured services, ports and permissions can cause excessive log file sizes.
