Skip to content

Commit

Permalink
RHCOS partition resizing
Browse files Browse the repository at this point in the history
Updating the custom paritioning config:
1. Configure 600G for RHCOS sysroot
2. Create 100G partition, intended to be used as LSO storageclass for Monitoring
3. Create partition using the rest of the device, intended to be used as an OSD
  • Loading branch information
jeniferh committed Nov 30, 2021
1 parent cf3def3 commit 2b8d7cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ macAddressList | String | List of MAC address should be set per host In the foll
- Create the ign file from the custom-config.fcc:
```
fcct custom-config.fcc > file.ign
```
**TIP:** To change the RHCOS sysroot partition size (currently set to 600G) you can use the following before creating the ign file:

```
sed -i -e "s/OFFSET=600G/OFFSET=120G/" custom-config.fcc
```

- Upload `file.ign` to a shared location which the OpenShift nodes can access.
Expand Down
7 changes: 5 additions & 2 deletions custom-config.fcc
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ storage:
#!/bin/bash

LABEL=datastore
OFFSET=120G
OFFSET=600G
LSO_LABEL=lsostore
LSO_OFFSET=100G

set -euo pipefail

Expand Down Expand Up @@ -89,7 +91,8 @@ storage:

# Relocate second GPT header to end of disk and create partition
sgdisk --move-second-header \
--new=0:+"${OFFSET}":0 --change-name=0:"${LABEL}" \
--new=0:+"${OFFSET}":+"${LSO_OFFSET}" --change-name=0:"${LSO_LABEL}" \
--new=0:0:0 --change-name=0:"${LABEL}" \
"${device}"

# Wait for device node
Expand Down

0 comments on commit 2b8d7cd

Please sign in to comment.