3.1 KiB
3.1 KiB
title, intro, redirect_from, versions, topics
| title | intro | redirect_from | versions | topics | |||||
|---|---|---|---|---|---|---|---|---|---|
| Increasing storage capacity | You can increase or change the amount of storage available for Git repositories, databases, search indexes, and other persistent application data. |
|
|
|
{% data reusables.enterprise_installation.warning-on-upgrading-physical-resources %}
As more users join {% data variables.product.product_location %}, you may need to resize your storage volume. Refer to the documentation for your virtualization platform for information on resizing storage.
Requirements and recommendations
{% note %}
Note: Before resizing the user storage volume, put your instance in maintenance mode. For more information, see "[Enabling and scheduling maintenance mode](/enterprise/{{ currentVersion }}/admin/guides/installation/enabling-and-scheduling-maintenance-mode)."
{% endnote %}
Minimum requirements
{% data reusables.enterprise_installation.hardware-rec-table %}
Increasing the data partition size
- Resize the existing user volume disk using your virtualization platform's tools. {% data reusables.enterprise_installation.ssh-into-instance %}
- Put the appliance in maintenance mode. For more information, see "[Enabling and scheduling maintenance mode](/enterprise/{{ currentVersion }}/admin/guides/installation/enabling-and-scheduling-maintenance-mode)."
- Reboot the appliance to detect the new storage allocation.
- Run the
ghe-storage-extendcommand to expand the/data/userfilesystem:
$ ghe-storage-extend
Increasing the root partition size using a new appliance
- Set up a new {% data variables.product.prodname_ghe_server %} instance with a larger root disk using the same version as your current appliance. For more information, see "[Setting up a {% data variables.product.prodname_ghe_server %} instance](/enterprise/{{ currentVersion }}/admin/guides/installation/setting-up-a-github-enterprise-server-instance)."
- Shut down the current appliance.
- Detach the data disk from the current appliance using your virtualization platform's tools.
- Attach the data disk to the new appliance with the larger root disk.
Increasing the root partition size using an existing appliance
- Attach a new disk to your {% data variables.product.prodname_ghe_server %} appliance.
- Run the
partedcommand to format the disk:
$ sudo parted /dev/xvdg mklabel msdos
$ sudo parted /dev/xvdg mkpart primary ext4 0% 50%
$ sudo parted /dev/xvdg mkpart primary ext4 50% 100%
- Run the
ghe-upgradecommand to install a full, platform specific package to the newly partitioned disk. A universal hotpatch upgrade package, such asgithub-enterprise-2.11.9.hpkg, will not work as expected.
$ ghe-upgrade PACKAGE-NAME.pkg -s -t /dev/xvdg1
- Shut down the appliance.
- In the hypervisor, remove the old root disk and attach the new root disk at the same location as the old root disk.
- Start the appliance.