Increasing disk capacity
- Increase the size of the virtual disks for the
/chat_history
and/file_store
drives. (See the instructions that come with your virtual machine.) Reboot Hipchat Server. You can do this either gracefully through your virtual machine or by using the following command:
sudo reboot
Resizing the system disk (root and log partitions)
The exact instructions for resizing your root disk are outside the scope of Hipchat, since it depends very much on the virtualization infrastructure.
Below are example steps for how the system disk might be resized:
- Notify users of expected downtime and take a full backup
Make a note of the current partitions and sizes by logging into the Hipchat Server command-line interface and running the following command:
sudo dont-blame-hipchat -c "df -h && fdisk -l"
Note: The root and log partitions can be identified by lining up the "Mounted on" and "Filesystem" columns of the
df -h
output.- Turn off the virtual machine
- Using the appropriate virtualization tools, increase the
system.vmdk
virtual disk capacity (i.e. --resize) - Boot from a Live CD (i.e. SystemRescueCD) and increase the size of the partition to take advantage of the unallocated space using the appropriate operating system tools, like GParted.
Note: See an example of this process in the IBM guide to resizing operating system disk volumes. - Reboot the virtual machine without the Live CD
Log back into the Hipchat Server command-line interface to verify the disk space increase by re-running the following command:
sudo dont-blame-hipchat -c "df -h && fdisk -l"
An online increase of the log partition's disk space is also possible from the backend. See Online increase of the log partition's disk space for more information.
AWS deployments
If you deployed Hipchat Server using an Amazon machine image (AMI) on Amazon Web Services (AWS), you have one virtual disk that can automatically scale at boot. To make the disk scale at boot, follow these instructions:
http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ebs-expand-volume.html