Skip to content

Commit 7f56ca8

Browse files
Enhance instructions for increasing storage capacity (#57819)
Co-authored-by: Sophie <29382425+sophietheking@users.noreply.github.com>
1 parent 47c3692 commit 7f56ca8

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

content/admin/monitoring-and-managing-your-instance/updating-the-virtual-machine-and-physical-resources/increasing-storage-capacity.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,50 @@ Root storage refers to the total size of your instance's root disk. The availabl
5454

5555
1. Ensure system services are functioning correctly, then release maintenance mode. For more information, see [AUTOTITLE](/admin/configuration/configuring-your-enterprise/enabling-and-scheduling-maintenance-mode).
5656

57+
> [!WARNING]
58+
> If the `ghe-storage-extend` command (or a prior automatic check) reports: `ghe_user_data contains a file system with errors`, you must repair the filesystem before retrying the resize. Do not rerun `ghe-storage-extend` until the check completes cleanly. For recovery instructions, see [Repairing filesystem errors](#repairing-filesystem-errors).
59+
60+
### Repairing filesystem errors
61+
62+
If the filesystem check fails during `ghe-storage-extend`, follow these steps to repair it.
63+
64+
Ensure the appliance is in maintenance mode and no background jobs are running:
65+
66+
```shell copy
67+
ghe-maintenance -s
68+
ghe-resque-info
69+
```
70+
71+
1. Stop and activate the user volume, then run a forced filesystem check (auto‑answer yes):
72+
73+
```shell copy
74+
sudo systemctl stop ghe-user-disk
75+
VGNAME=$(sudo lvs --noheadings -o vg_name | grep ghe_storage_ | awk '{ print $1 }')
76+
sudo vgchange -ay "$VGNAME"
77+
sudo vgscan --mknodes
78+
sudo fsck -fy /dev/mapper/${VGNAME}-ghe_user_data
79+
```
80+
81+
1. Retry the resize:
82+
83+
```shell copy
84+
ghe-storage-extend
85+
```
86+
87+
1. Remount and verify new size:
88+
89+
```shell copy
90+
sudo systemctl start ghe-user-disk
91+
df -h /data/user
92+
```
93+
94+
1. Reboot and verify:
95+
96+
```shell copy
97+
sudo reboot
98+
df -h /data/user
99+
```
100+
57101
## Increasing the root partition size using a new appliance
58102

59103
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 [AUTOTITLE](/admin/installation/setting-up-a-github-enterprise-server-instance).

0 commit comments

Comments
 (0)