Skip to content

Commit cc73684

Browse files
committed
add upgrade free space check to document
Signed-off-by: Jian Wang <w13915984028@gmail.com>
1 parent 9ab77d4 commit cc73684

File tree

2 files changed

+34
-2
lines changed

2 files changed

+34
-2
lines changed

docs/upgrade/automatic.md

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Note we are still working towards zero-downtime upgrade, due to some known issue
3434
- Back up your VMs if needed.
3535
- Do not operate the cluster during an upgrade. For example, creating new VMs, uploading new images, etc.
3636
- Make sure your hardware meets the **preferred** [hardware requirements](../index.md#hardware-requirements). This is due to there will be intermediate resources consumed by an upgrade.
37-
- Make sure each node has at least 25 GB of free space (`df -h /usr/local/`).
37+
- Make sure each node has at least 30 GiB of free system disk space (`df -h /usr/local/`). If any node in the cluster has less than 30 GiB of free system disk space, the upgrade will be denied. Check [free system disk space requirement](#free-system-disk-space-requirement) for more information.
3838

3939
:::
4040

@@ -101,7 +101,7 @@ Make sure to check [Upgrade support matrix](#upgrade-support-matrix) section fir
101101
name: v1.0.2
102102
namespace: harvester-system
103103
spec:
104-
isoChecksum: <SHA-512 checksum of the ISO>
104+
isoChecksum: <SHA-512 checksum of the ISO>
105105
isoURL: http://10.10.0.1/harvester.iso # change to local ISO URL
106106
releaseDate: '20220512'
107107
```
@@ -117,3 +117,35 @@ Make sure to check [Upgrade support matrix](#upgrade-support-matrix) section fir
117117
```
118118
119119
- An upgrade button should show up on the Harvester GUI Dashboard page.
120+
121+
## Free system disk space requirement
122+
123+
_Available as of v1.2.0_
124+
125+
The minimum free system disk space requirement in Harvester v1.2.0 is 30 GiB, which will be revised in each release.
126+
127+
Harvester will check the amount of free system disk space on each node when you select **Upgrade**. If any node does not meet the requirement, the upgrade will be denied as follows
128+
129+
![](/img/v1.2/upgrade/upgrade_free_space_check.png)
130+
131+
If some nodes do not have enough free system disk space, but you still want to try upgrading, you can customize the upgrade by updating the `harvesterhci.io/minFreeDiskSpaceGB` annotation of `Version` object.
132+
133+
```
134+
apiVersion: harvesterhci.io/v1beta1
135+
kind: Version
136+
metadata:
137+
annotations:
138+
harvesterhci.io/minFreeDiskSpaceGB: "30" # the value is pre-defined and may be customized
139+
name: 1.2.0
140+
namespace: harvester-system
141+
spec:
142+
isoChecksum: <SHA-512 checksum of the ISO>
143+
isoURL: http://192.168.0.181:8000/harvester-master-amd64.iso
144+
minUpgradableVersion: 1.1.2
145+
releaseDate: "20230609"
146+
```
147+
148+
:::caution
149+
150+
Setting a smaller value than the pre-defined value may cause the upgrade to fail and is not recommended in a production environment.
151+
72.2 KB
Loading

0 commit comments

Comments
 (0)