diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index b982ff3..2ec25f2 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -16,7 +16,8 @@ jobs: echo "=== Disk before resize ===" df -h / - lsblk -o NAME,SIZE,TYPE,MOUNTPOINT,FSTYPE,PKNAME,PARTN || true + hostname || true + lsblk -o NAME,SIZE,TYPE,MOUNTPOINT,FSTYPE || true ROOT_SOURCE=$(findmnt -n -o SOURCE / 2>/dev/null || true) ROOT_FSTYPE=$(findmnt -n -o FSTYPE / 2>/dev/null || true) @@ -39,6 +40,9 @@ jobs: fi echo "Root source: $ROOT_SOURCE ($ROOT_FSTYPE), disk: /dev/${DISK_NAME:-unknown}, partition: ${PART_NUM:-unknown}" + if [ -n "$DISK_NAME" ]; then + echo "Visible disk bytes: $(sudo blockdev --getsize64 "/dev/$DISK_NAME" 2>/dev/null || echo unknown)" + fi if [ -n "$DISK_NAME" ] && [ -n "$PART_NUM" ]; then if ! command -v growpart >/dev/null 2>&1; then sudo dnf -y install cloud-utils-growpart || sudo yum -y install cloud-utils-growpart || true @@ -61,7 +65,7 @@ jobs: echo "Available on root volume: ${AVAIL_MB} MB" if [ "${AVAIL_MB:-0}" -lt 3500 ]; then echo "::error::Less than 3.5GB free on root volume (${AVAIL_MB}MB)." - echo "If EBS is already 200GB, grow the EC2 root partition/filesystem on the runner host or install cloud-utils-growpart." + echo "growpart could not find extra space. If AWS says EBS is 200GB, this job is likely running on the wrong runner/volume or the OS still has not seen the expanded disk; reboot/rescan the runner host and verify lsblk shows ~200G for the parent disk." exit 1 fi diff --git a/docs/deploy.md b/docs/deploy.md index 5db7937..ceb57cc 100644 --- a/docs/deploy.md +++ b/docs/deploy.md @@ -59,7 +59,7 @@ sudo resize2fs # ext filesystems # or sudo xfs_growfs / # xfs filesystems ``` -If the step cannot find `growpart`, it tries to install `cloud-utils-growpart` with `dnf`/`yum`. If install is blocked, install it manually on the runner host and rerun the workflow. The step also prints `lsblk`; if the parent disk still shows 8GB there, AWS has not attached/refreshed the expanded EBS volume for this instance. +If the step cannot find `growpart`, it tries to install `cloud-utils-growpart` with `dnf`/`yum`. If install is blocked, install it manually on the runner host and rerun the workflow. The step also prints `hostname`, `lsblk`, and the visible parent disk byte size. If `growpart` says `NOCHANGE` and the parent disk still shows 8GB, the job is running on the wrong runner/volume or the OS still has not seen the expanded EBS volume; verify the EC2 instance/volume pair and reboot/rescan the runner host. ### Node version is too old