ci: clarify runner disk diagnostics
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 1m11s
All checks were successful
Deploy to Frontend Servers / deploy (push) Successful in 1m11s
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user