System Storage
Use the Maintenance > System Storage options to monitor disk storage availability. Running out of disk space can result in corrupting the MobileIron Core database. Therefore, this feature ensures that:
- You are aware when disk space availability is becoming too low. Once warned, you can clean up the Core database and avoid database corruption.
- Core services are automatically stopped when disk space availability reaches the lowest threshold, thereby avoiding database corruption when no more disk space is available.
MobileIron Core can send you an email when it detects that its available disk storage space has dropped below thresholds that you define. Specifically, when the available space is less than a:
- Warning Threshold: to receive a warning email.
- Stop Threshold: to receive an email and after a five minute delay, Core stops its critical services if you selected that option.
When notified, you can use existing CLI commands to clean up the Core database, thereby freeing up disk space. The CLI commands are:
- dbcleanup purge_data
- dbcleanup app_inventory
- diskcleanup retired_devices
- diskcleanup trashed apps
Using these commands is described in the Increasing available disk storage section of this chapter.
NOTE: | Hover over the System Storage bar to see a popup indicating the actual storage usage and capacity. |
Although the Event Center system event System storage threshold has been reached (set in the Admin Portal’s Logs > Event Settings) you will still receive a notification, no automatic action results from the event being triggered. Without immediate action, the possibility of running out of disk space and database corruption is more likely.
This section includes the following topics:
- Configuring system storage thresholds
- Stopped Core services
- Increasing available disk storage
- Restart Core services
Configuring system storage thresholds
Use Maintenance > System Storage to set the disk storage capacity thresholds and use System Manager to enable automatically stopping critical Core services.
Procedure
To configure the disk storage capacity thresholds:
- Log into System Manager.
- Go to Maintenance > System Storage.
- Go to the System Storage options and check the box next to Check free space capacity every.
- Select how many days between each check.
-
Select the time of day for each check.
IMPORTANT: The system uses GMT (Greenwich Mean Time). Select a time that is during your work hours so that you see the notification emails at a time of day when you can take actions. -
Enter the email addresses for receiving the notifications.
Separate email addresses with commas.
-
Select a Warning Threshold.
For example, if this value is set to 20%, an email notification is sent when disk storage availability drops to less than 20% of disk storage capacity.
-
Select a Stop Threshold.
For example, if this value is set to 10%, an email notification is sent when disk storage availability drops to less than 10% of the threshold:
-
Select Stop all critical Core services when stop threshold is met.
Refer to the Stopped Core services table for more information.
Core delays stopping the services until five minutes after the threshold is met. You cannot cancel the stop action once it is triggered.
-
Click Save.
You will receive emails when a threshold is met.
Example
Warning Threshold email
Storage has reached a warning threshold of 50%.
Total Size : 197300M
Used Size : 92621
Available Size : 94651
Note: Cleanup the disk space using CLI commands.
Stop Threshold email
Storage has reached a stop threshold of 45%. CORE services will be stopped in 5 minutes, if not already stopped
Total Size : 197300M
Used Size : 137503M
Available Size : 49769M
Note: Cleanup the disk space using CLI commands. Reboot Core to restart the services
Stopped Core services
When disk storage availability drops below the stop threshold, and you have selected the option to stop critical services, Core stops are listed in the following table:
Service stopped |
Impact to stopping the service |
Core |
Stopping this service stops:
However, the following are still running:
|
RDB Exporter |
Core does not send data to the Reporting Database |
Increasing available disk storage
When the warning threshold or stop threshold is reached, use CLI commands to clean up the disk storage.
Procedure
- Use ssh to log in to MobileIron Core.
- Enter enable to access EXEC PRIVILEGED CLI mode.
- Enter the “enable secret” password.
-
Enter dbcleanup purge_data to clean up the database.
If Core services are not already stopped, this command stops them and restarts them when it finishes the clean up.
-
Enter dbcleanup app_inventory to clean up unused and duplicate app inventory information in the data base.
If Core services are not already stopped, this command stops them and restarts them when it finishes the clean up.
- Enter diskcleanup retired_devices to clean up retired devices from the disk.
- Enter diskcleanup trashed_apps to clean up deleted apps from the disk.
- Restart Core if any Core services were stopped.
Restart Core services
You can use the following methods to restart Core services:
- System Manager
- CLI command
Restarting Core services using System Manager
Procedure
- Log into System Manager.
- Go to Maintenance > Reboot.
- Click Reboot > Yes.
Restarting Core services using the CLI
Procedure
- Use ssh to log in to MobileIron Core.
- Enter enable to access EXEC PRIVILEGED CLI mode.
- Enter the “enable secret” password.
- Enter reload.