Skip to content

Commit 3f0416a

Browse files
djdefihubwriter
andauthored
Add commands required to safely shutdown & reboot when resizing GHES disk (github#18832)
* Add commands required to safely shutdown & reboot * Fix a list * Update content/admin/enterprise-management/increasing-storage-capacity.md Co-authored-by: hubwriter <hubwriter@github.com>
1 parent 24482bc commit 3f0416a

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

content/admin/enterprise-management/increasing-storage-capacity.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,10 @@ As more users join {% data variables.product.product_location %}, you may need t
3131
1. Resize the existing user volume disk using your virtualization platform's tools.
3232
{% data reusables.enterprise_installation.ssh-into-instance %}
3333
3. 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)."
34-
4. Reboot the appliance to detect the new storage allocation.
34+
4. Reboot the appliance to detect the new storage allocation:
35+
```shell
36+
$ sudo reboot
37+
```
3538
5. Run the `ghe-storage-extend` command to expand the `/data/user` filesystem:
3639
```shell
3740
$ ghe-storage-extend
@@ -40,7 +43,10 @@ As more users join {% data variables.product.product_location %}, you may need t
4043
### Increasing the root partition size using a new appliance
4144

4245
1. 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)."
43-
2. Shut down the current appliance.
46+
2. Shut down the current appliance:
47+
```shell
48+
$ sudo poweroff
49+
```
4450
3. Detach the data disk from the current appliance using your virtualization platform's tools.
4551
4. Attach the data disk to the new appliance with the larger root disk.
4652

@@ -57,6 +63,9 @@ As more users join {% data variables.product.product_location %}, you may need t
5763
```shell
5864
$ ghe-upgrade PACKAGE-NAME.pkg -s -t /dev/xvdg1
5965
```
60-
4. Shut down the appliance.
66+
4. Shut down the appliance:
67+
```shell
68+
$ sudo poweroff
69+
```
6170
5. In the hypervisor, remove the old root disk and attach the new root disk at the same location as the old root disk.
6271
6. Start the appliance.

0 commit comments

Comments
 (0)