Skip to content

Commit

Permalink
Merge pull request awslabs#4 from celonis/pvscan
Browse files Browse the repository at this point in the history
Force pvscan to recognize new disk extents
  • Loading branch information
tchellomello authored Mar 19, 2024
2 parents d5f5900 + 573bb67 commit a23cd94
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/build-manual.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ on:
required: true
default: 1234
type: string
os_distro:
launch_block_device_mappings_additional_volume_size:
required: true
default: al2
default: 300
type: string
goal:
required: true
Expand Down Expand Up @@ -93,13 +93,14 @@ jobs:
uses: ./.github/actions/ci/build
with:
k8s_version: ${{ inputs.k8s_version_short }}
os_distro: ${{ inputs.os_distro }}
os_distro: "al2"
build_id: ${{ needs.setup.outputs.build_id }}
additional_arguments: |
aws_region=${{ inputs.aws_region }} \
kubernetes_version=${{ inputs.k8s_version }} \
kubernetes_build_date=${{ inputs.k8s_build_date }} \
launch_block_device_mappings_volume_size=20 \
launch_block_device_mappings_additional_volume_size=${{ inputs.launch_block_device_mappings_additional_volume_size }} \
enable_fips=${{ inputs.fips }} \
arch=${{ inputs.arch }} \
working_dir="/home/ec2-user/worker" \
Expand Down
2 changes: 2 additions & 0 deletions templates/al2/provisioners/celonis-extras.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ EOF
################################################################################
### Grow var volumes ###############################################################
################################################################################

sudo pvscan
sudo pvresize /dev/sdf
sudo lvextend -l +100%FREE /dev/vg-01/var_vol
sudo xfs_growfs /var
2 changes: 1 addition & 1 deletion templates/al2/variables-default.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,6 @@
"subnet_id": "",
"temporary_security_group_source_cidrs": "",
"user_data_file": null,
"volume_type": "gp2",
"volume_type": "gp3",
"working_dir": "{{user `remote_folder`}}/worker"
}

0 comments on commit a23cd94

Please sign in to comment.