Created
March 1, 2019 17:08
-
-
Save natefoo/0793931e305386b704100522a73cee95 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