Linux Labs EspañolES

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

  1. Confirm whether blocks or inodes ran out, and which LV holds the path.
  2. Check the free space in the volume group.
  3. Grow the LV and its filesystem in one command.
  4. Verify with df.
Simulated terminal
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

bash
df -h /var/lib/pgsql
Show the solution
bash
df -hT /var/lib/pgsql
df -i /var/lib/pgsql
lsblk
vgs
lvextend -r -L +20G vg_data/lv_pgsql
df -h /var/lib/pgsql

Without -r, the LV grows and df stays at 100% until you run xfs_growfs /var/lib/pgsql.