Skip to content

Commit 3a2146a

Browse files
dctuckermchammer01
andauthored
draft instructions for 3.14 partition resizing (#53693)
Co-authored-by: mc <[email protected]>
1 parent 129d6a6 commit 3a2146a

File tree

1 file changed

+44
-1
lines changed

1 file changed

+44
-1
lines changed

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

Lines changed: 44 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,15 +69,41 @@ Root storage refers to the total size of your instance's root disk. The availabl
6969
> Before increasing the root partition size, you must put your instance in maintenance mode. For more information, see [AUTOTITLE](/admin/configuration/configuring-your-enterprise/enabling-and-scheduling-maintenance-mode).
7070
7171
1. Attach a new disk to your {% data variables.product.prodname_ghe_server %} appliance.
72-
1. Run the `lsblk` command to identify the new disk's device name.
72+
1. Run the `lsblk` command to identify the new disk's device name.{% ifversion ghes > 3.13 %}
73+
1. Back up your existing EFI boot partition:
74+
75+
```shell
76+
sudo dd if=/dev/disk/by-label/EFIBOOT of=EFIBOOT.bak bs=1M
77+
```
78+
79+
{% endif %}
80+
7381
1. Run the `parted` command to format the disk, substituting your device name for `/dev/xvdg`:
7482

83+
{% ifversion ghes < 3.14 %}
84+
7585
```shell
7686
sudo parted /dev/xvdg mklabel msdos
7787
sudo parted /dev/xvdg mkpart primary ext4 0% 50%
7888
sudo parted /dev/xvdg mkpart primary ext4 50% 100%
7989
```
8090

91+
{% else %}
92+
93+
```shell
94+
sudo parted /dev/xvdg mklabel gpt
95+
sudo parted -a optimal /dev/xvdg mkpart bios fat32 1MiB 2MiB
96+
sudo parted /dev/xvdg set 1 bios_grub on
97+
sudo parted -a optimal /dev/xvdg mkpart efi fat32 2MiB 512MiB
98+
sudo parted /dev/xvdg set 2 esp on
99+
sudo parted -a optimal /dev/xvdg mkpart primary 512MiB 50%
100+
sudo parted /dev/xvdg set 3 boot off
101+
sudo parted /dev/xvdg set 3 esp off
102+
sudo parted -a optimal /dev/xvdg mkpart primary 50% 100%
103+
```
104+
105+
{% endif %}
106+
81107
1. If your appliance is configured for high-availability or geo-replication, to stop replication run the `ghe-repl-stop` command on each replica node:
82108

83109
```shell
@@ -86,6 +112,8 @@ Root storage refers to the total size of your instance's root disk. The availabl
86112

87113
1. To install the {% data variables.product.prodname_ghe_server %} software on the newly partitioned disk, run the `ghe-upgrade` command. You must replace **PACKAGE-NAME.pkg** with the path to a platform-specific upgrade package that matches the version of {% data variables.product.prodname_ghe_server %} already running on the appliance. You cannot use a universal hotpatch upgrade package, such as `github-enterprise-2.11.9.hpkg`. After the `ghe-upgrade` command completes, application services will automatically terminate.
88114

115+
{% ifversion ghes < 3.14 %}
116+
89117
```shell
90118
ghe-upgrade PACKAGE-NAME.pkg -s -t /dev/xvdg1
91119
```
@@ -96,6 +124,21 @@ Root storage refers to the total size of your instance's root disk. The availabl
96124
sudo mkfs.ext4 -L fallback /dev/xvdg2
97125
```
98126

127+
{% else %}
128+
129+
```shell
130+
ghe-upgrade PACKAGE-NAME.pkg -s -t /dev/xvdg3
131+
```
132+
133+
1. Run these commands on the secondary partitions of the newly added disk:
134+
135+
```shell
136+
sudo dd if=/dev/disk/by-label/EFIBOOT of=/dev/xvdg2 bs=1M
137+
sudo mkfs.ext4 -L fallback /dev/xvdg4
138+
```
139+
140+
{% endif %}
141+
99142
1. Shut down the appliance:
100143

101144
```shell

0 commit comments

Comments
 (0)