我们经常发布文档更新,此页面的翻译可能仍在进行中。有关最新信息,请访问英文文档。如果此页面上的翻译有问题,请告诉我们
文章版本: Enterprise Server 2.20

Increasing storage capacity

You can increase or change the amount of storage available for Git repositories, databases, search indexes, and other persistent application data.

本文内容

警告:分配新系统资源的过程因虚拟化平台和资源类型而异。 您应该始终配置系统关键资源的监测和警报。 更多信息请参阅“监控 GitHub Enterprise Server 设备”。

As more users join 您的 GitHub Enterprise Server 实例, 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: Before resizing the user storage volume, put your instance in maintenance mode. For more information, see "Enabling and scheduling maintenance mode."

建议根据 您的 GitHub Enterprise Server 实例 中使用的用户许可数选择不同的硬件配置。 |

用户许可vCPU内存附加的存储容量根存储容量
试用版、演示版或 10 个轻度用户216 GB100 GB200 GB
10-3000432 GB250 GB200 GB
3000-5000864 GB500 GB200 GB
5000-80001296 GB750 GB200 GB
8000-10000+16128 GB1000 GB200 GB

这些是最低限度的建议。 根据您的使用情况(例如用户活动和选定的集成),可能需要更多资源。 增加 CPU 资源时,建议为添加到 GitHub Enterprise Server 实例的每个 CPU(最多 16 个 CPU)添加至少 6.5 GB 内存。 更多信息请参阅“增加 CPU 或内存资源”。

Increasing the data partition size

  1. Resize the existing user volume disk using your virtualization platform's tools.
  2. SSH 连接到 您的 GitHub Enterprise Server 实例。
    $ ssh -p 122 admin@HOSTNAME
  3. Put the appliance in maintenance mode. For more information, see "Enabling and scheduling maintenance mode."
  4. Reboot the appliance to detect the new storage allocation.
  5. Run the ghe-storage-extend command to expand the /data filesystem:
    $ ghe-storage-extend

Increasing the root partition size using a new appliance

  1. Set up a new GitHub Enterprise Server instance with a larger root disk using the same version as your current appliance. For more information, see "Setting up a GitHub Enterprise Server instance."
  2. Shut down the current appliance.
  3. Detach the data disk from the current appliance using your virtualization platform's tools.
  4. Attach the data disk to the new appliance with the larger root disk.

Increasing the root partition size using an existing appliance

  1. Attach a new disk to your GitHub Enterprise Server appliance.
  2. Run the parted command 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%
  3. Run the ghe-upgrade command to install a full, platform specific package to the newly partitioned disk. A universal hotpatch upgrade package, such as github-enterprise-2.11.9.hpkg, will not work as expected.
    $ ghe-upgrade PACKAGE-NAME.pkg -s -t /dev/xvdg1
  4. Shut down the appliance.
  5. In the hypervisor, remove the old root disk and attach the new root disk at the same location as the old root disk.
  6. Start the appliance.

问问别人

找不到要找的内容?

联系我们