Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Laravel Homestead - Increase LLM Volume Size
#!/usr/bin/env bash
# @see:
# @see:
# @see:
# @see:
# @see:
# @see:
# Default LVM volume size is 64GB, this will add 50% of the available disk space (512GB) to it, making it 256GB:
sudo lvextend -r -l +50%FREE /dev/mapper/homestead--vg-thinpool
sudo lvextend -r -l +100%FREE /dev/mapper/homestead--vg-mysql--master
# The volume size can be tested by using filling it up with a fake file (try 100G and 300G to fill 64GB and 256GB):
sudo fallocate -l 300G /var/lib/mysql/test.txt
sudo rm -rf /var/lib/mysql/test.txt
# List volumes:
sudo fdisk -l
sudo lvdisplay
sudo parted -l
sudo lvs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment