Linux Labs EspañolES

Storage: disks, LVM and RAID Labs

Simulated: use the space of a resized cloud volume

Foundation8 minSimulated terminalRHEL and Debian families

Objective

The root filesystem shows the full 50 GiB of the resized volume, with no reboot.

Requirements

  • Runs in the simulated terminal below. The volume was already modified from 20 to 50 GiB.

Steps

  1. Find which layer still has the old size.
  2. Grow the partition, then the filesystem, in that order.
  3. 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 /
Show the solution
bash
lsblk
df -hT /
growpart /dev/nvme0n1 1
xfs_growfs /
df -h /

Growing the filesystem first changes nothing: XFS can only use space the partition already has.