gbserver/src/scripts/utils/set-size-5GB.sh

11 lines
390 B
Bash
Raw Normal View History

2025-08-24 19:53:58 -03:00
export container="pragmatismo-alm-ci"
2025-08-16 20:40:20 -03:00
lxc stop "$container"
2025-08-24 19:53:58 -03:00
lxc config device override "$container" root size=15GB
lxc config device set "$container" root size=15GB
lxc start "$container"
ROOT_DEV=$(lxc exec "$container" -- df / --output=source | tail -1)
lxc exec "$container" -- growpart "$(dirname "$ROOT_DEV")" "$(basename "$ROOT_DEV")"
2025-08-16 20:40:20 -03:00
lxc exec "$container" -- resize2fs "$ROOT_DEV"