Storage: disks, LVM and RAID Labs
Simulated: the database volume is full
Foundation10 minSimulated terminalRHEL and Debian families
Objective
/var/lib/pgsql has at least 10 GiB free again, without unmounting it.
Requirements
- Runs in the simulated terminal below.
Steps
- Confirm whether blocks or inodes ran out, and which LV holds the path.
- Check the free space in the volume group.
- Grow the LV and its filesystem in one command.
- Verify with df.
The simulated terminal needs JavaScript.
Not solved yet. Fix the problem, then run the verification commands.
This is a simulation in your browser. It accepts the common forms of each command. The output imitates a real server.
Verification
df -h /var/lib/pgsqlShow the solution
df -hT /var/lib/pgsql
df -i /var/lib/pgsql
lsblk
vgs
lvextend -r -L +20G vg_data/lv_pgsql
df -h /var/lib/pgsqlWithout -r, the LV grows and df stays at 100% until you run xfs_growfs /var/lib/pgsql.