Question 344 of 522
System ArchitecturehardMultiple ChoiceObjective-mapped

Quick Answer

The correct answer is to use the e4defrag command with the -v option on the mount point to check and defragment files online. This is because e4defrag is the native ext4 tool designed specifically for online defragmentation, allowing an administrator to reduce file fragmentation without unmounting the filesystem or causing downtime, which directly addresses the performance degradation on the database logical volume. On the LPIC-1 exam, this scenario tests your understanding that while ext4 generally resists fragmentation, heavy write workloads can still cause it, and e4defrag is the only standard tool that performs online defragmentation without requiring filesystem unmounting. A common trap is assuming ext4 cannot be defragmented at all or that you must use offline tools like fsck, but e4defrag works on a live, mounted filesystem. Memory tip: think "e4defrag" as "ext4 defrag" — the 'e' stands for ext4, and it runs while the system is 'e'veryday online.

LPIC-1 System Architecture Practice Question

This LPIC-1 practice question tests your understanding of system architecture. Read the scenario carefully and evaluate each option against the stated constraints before committing to an answer. After answering, compare your reasoning against the explanation and wrong-answer breakdown below. Once you have made your selection, read the full explanation to reinforce the concept and understand why each distractor is designed to mislead on exam day.

A company runs a critical database server on Linux. The server has a hardware RAID controller with two logical volumes: one for the operating system (LV1) and one for the database data (LV2). The server uses LVM on top of the RAID volumes. Recently, the database performance has degraded. The administrator suspects that the file system on LV2 is heavily fragmented. The server uses the ext4 filesystem. The administrator wants to check the fragmentation level and, if necessary, defragment the filesystem without unmounting it or causing downtime. However, ext4 does not support online defragmentation. What should the administrator do to minimize fragmentation impact while maintaining availability?

Clue words in this question

Noticing these words before you look at the options changes how you read each choice.

  • Clue: "minimum / minimize"

    Why it matters: Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

Question 1hardmultiple choice
Full question →

Answer choices

Why each option matters

Answer the question above first, then reveal the full breakdown to understand why each option is right or wrong.

Correct answer & explanation

Use the e4defrag command with the -v option on the mount point to check and defragment files online.

Option D is correct because e4defrag is a tool specifically designed for online defragmentation of ext4 filesystems. It can check fragmentation levels and defragment files without requiring the filesystem to be unmounted, thus avoiding downtime. This directly addresses the administrator's need to minimize fragmentation impact while maintaining availability.

Key principle: Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Answer analysis

Option-by-option breakdown

For each option: why learners choose it and why it is or isn't the right answer here.

  • Create a new filesystem on LV2, copy data back, and symlink the old mount point to the new one.

    Why it's wrong here

    This requires downtime to recreate and copy data.

  • Use tune2fs to set the reserved block percentage to 0 and increase the inode size.

    Why it's wrong here

    tune2fs does not perform defragmentation.

  • Schedule a maintenance window, unmount LV2, run e2fsck -fn, then run e2fsck -D to defragment.

    Why it's wrong here

    e2fsck -D only optimizes directories, not file defragmentation, and requires unmounting.

  • Use the e4defrag command with the -v option on the mount point to check and defragment files online.

    Why this is correct

    e4defrag can defragment files on a mounted ext4 filesystem, reducing fragmentation without downtime.

    Clue confirmation

    The clue word "minimum / minimize" in the question point toward this answer.

    Related concept

    Read the scenario before looking for a memorised answer.

Common exam traps

Common exam trap: answer the scenario, not the keyword

The trap here is that candidates may assume ext4 has no online defragmentation support at all, but e4defrag provides a limited online capability, or they may confuse e4defrag with e2fsck, which requires unmounting.

Detailed technical explanation

How to think about this question

e4defrag works by analyzing ext4 extent-based allocation and moving file blocks to contiguous regions on disk. It uses the FIBMAP and FIEMAP ioctl calls to map file extents and the FALLOC_FL_COLLAPSE_RANGE flag to reorganize data. In practice, e4defrag is effective for lightly to moderately fragmented filesystems but may not handle severe fragmentation well, and it can be I/O intensive during operation.

KKey Concepts to Remember

  • Read the scenario before looking for a memorised answer.
  • Find the constraint that changes the correct option.
  • Eliminate answers that are true in general but not in this case.

TExam Day Tips

  • Watch for words such as best, first, most likely and least administrative effort.
  • Review why wrong options are wrong, not only why the correct option is correct.

Key takeaway

Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option.

Real-world example

How this comes up in practice

A practitioner preparing for the LPIC-1 exam encounters this exact type of scenario on the job. The correct answer here is not the most general option — it is the best answer for the specific constraint described. Answer the scenario, not the keyword: identify the specific constraint before choosing the most familiar-sounding option. Real exam questions reward reading the full scenario before eliminating options, because the constraint defines which answer fits.

What to study next

Got this wrong? Here's your next step.

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Related practice questions

Related LPIC-1 practice-question pages

Use these pages to review the topic behind this question. This is how one missed question becomes focused revision.

Practice this exam

Start a free LPIC-1 practice session

Short sessions build daily habit. Longer sessions build exam-day stamina. Try a timed session to simulate real conditions.

FAQ

Questions learners often ask

What does this LPIC-1 question test?

System Architecture — This question tests System Architecture — Read the scenario before looking for a memorised answer..

What is the correct answer to this question?

The correct answer is: Use the e4defrag command with the -v option on the mount point to check and defragment files online. — Option D is correct because e4defrag is a tool specifically designed for online defragmentation of ext4 filesystems. It can check fragmentation levels and defragment files without requiring the filesystem to be unmounted, thus avoiding downtime. This directly addresses the administrator's need to minimize fragmentation impact while maintaining availability.

What should I do if I get this LPIC-1 question wrong?

Identify which exam domain this question belongs to, review the core concept, then practise similar questions from the same domain.

Are there clue words in this question I should notice?

Yes — watch for: "minimum / minimize". Asks for the least resource use — fewest addresses, smallest subnet, lowest overhead. Eliminate over-provisioned options even if they would technically work.

What is the key concept behind this question?

Read the scenario before looking for a memorised answer.

About these practice questions

Courseiva creates original exam-style practice questions with explanations and wrong-answer analysis. It does not publish real exam questions, exam dumps, or protected exam content. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

Last reviewed: Jun 11, 2026

Question Discussion

Share a tip, memory trick, or ask about the reasoning behind this question. Do not post real exam questions, leaked content, braindumps, or copyrighted exam material. Comments are moderated and may be removed without notice.

Loading comments…

Sign in to join the discussion.

This LPIC-1 practice question is part of Courseiva's free LPI certification practice question bank. Courseiva provides original exam-style practice questions with explanations, topic-based practice, mock exams, readiness tracking, and study analytics to help learners prepare for the LPIC-1 exam.