Problem:
Stratusphere Hub does not have sufficient disk space to perform online update
Symptoms:
When attempting to run update on the appliance, it returns an error message complaining about the lack of disk space.
Possible Resolution(s):
First, logon to Hub as root (https://liquidwarelabs.zendesk.com/entries/25053567-Cannot-logon-as-root-to-the-console-in-Stratusphere-5-5). Also strongly recommend using PuTTY or any SSH client to logon to Hub instead (https://liquidwarelabs.zendesk.com/entries/24782618-How-do-I-Remote-Access-Stratusphere-Appliance-Console-) because it allows copy and paste.
Before we start, we need to identify the error and see if it runs out of disk space while downloading the update or installing the update.
- While downloading updates:
If the space is used up during download, we need to free up space under /var as the upgrade cache is stored in /var/cache/yum/.
- As root, run: du -Sax /var | sort -nr | head -n 20
This will list out the 20 biggest directories/files under /var. Examine the directories and file names. Frequently /var/www/html/mentok/graph and /var/clamav take up the most space, and we can safely remove the content without causing any issue to the system. -
/var/www/html/mentok/graph contains cached graphs, which you can safely remove: rm -f /var/www/html/mentok/graph/*
- Try run the upgrade again. If that does not provide enough space, run rm -f /var/clamav/* to free up additional space for the update files.
- While installing updates:
If it runs out of space while installing updates, we needs to check the space in root directory (/) and free up space. However, this is more complicated as root is full of critical files, making it more difficult to remove the right files.
- As root, run: du -Sax / | sort -nr | head -n 20
This will list out the 20 biggest directories/files under root. Examine the directories and file names. Most likely there is a directory with lots of log files that can be freed, or maybe it contains a crash dump in here. Identify the directories and the files to be removed. If you have question on this, please reach out to Liquidware Labs Support. - Only remove a directory or a file if it is safe to remove: rm -rf <directory path>/* or rm -f <file path>
- Try run the upgrade again. If that does not provide enough space, move on to the next safe file/directory on list to free up additional space for the update files.
Product: Stratusphere FIT/UX
Product Version: N/A
Expires on: 365 days from publish date
Updated: Nov. 19, 2014