The /var partition is 100% full, which can lead to system instability (e.g., logging failures, package manager issues).
C is correct: lvextend -L +5G -r increases the size of the logical volume and resizes the filesystem in one command. This is the safest and most effective way to address space issues without data loss.
Incorrect Options:
A: Reformatting /var with mkfs.xfs will erase all data — destructive and unnecessary.
B: Removing all files from /var is highly dangerous as it contains logs, spool files, caches, and more. Critical system components will be lost.
D: Resizes the wrong logical volume — / not /var.
[Reference:, CompTIA Linux+ XK0-005 Official Study Guide, Chapter 7, man lvextend, man df, ]
Contribute your Thoughts:
Chosen Answer:
This is a voting comment (?). You can switch to a simple comment. It is better to Upvote an existing comment if you don't have anything to add.
Submit