-
-
Save martenson/85118b72f95fe851744a9a70a3750dc4 to your computer and use it in GitHub Desktop.
Resize Jenkins worker partitions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# I ran each block individually by hand by pasting =P | |
df -hl /var/lib/docker /var/jenkins && \ | |
systemctl stop docker && \ | |
umount /var/lib/docker && \ | |
pkill -u jenkins | |
# wait a few seconds, but not too long because Jenkins will reconnect D= | |
umount /var/jenkins && \ | |
lvresize --resizefs --size -20G /dev/vg/var+jenkins && \ | |
lvresize --extents +100%FREE /dev/vg/var+lib+docker && \ | |
mount /var/lib/docker && \ | |
btrfs filesystem resize max /var/lib/docker && \ | |
mount /var/jenkins && \ | |
df -hl /var/lib/docker /var/jenkins | |
# looks good? ok: | |
systemctl start docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment