Courseiva
Block Devices, Filesystems and Advanced StoragemediumMultiple ChoiceObjective-mapped

LPIC-2 Practice Question: Block Devices, Filesystems and Advanced Storage

An administrator creates a new XFS filesystem on /dev/vg/data and needs to mount it at /data with noatime and a stripe unit of 1 MiB. Which /etc/fstab entry is correct?

⚠ Common exam trap

Many candidates confuse the unit of measurement: candidates often forget that `sunit` is in 512-byte blocks, not bytes or kilobytes, leading them to choose `sunit=1024` (which is only 512 KiB) instead of the correct `sunit=2048` for 1 MiB.

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

/dev/vg/data /data xfs defaults,noatime,sunit=2048 0 0

The `sunit` mount option specifies the stripe unit in 512-byte blocks. A stripe unit of 1 MiB equals 2048 blocks (1 MiB = 1024 KiB = 2048 * 512 bytes). The `noatime` option disables access time updates. This entry correctly mounts the XFS filesystem at /data with the required parameters.

Answer analysis

Option-by-option breakdown

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

  • /dev/vg/data /data xfs defaults,noatime,sunit=2048 0 0

    Why this is correct

    sunit=2048 sectors = 1 MiB stripe unit, with noatime.

  • /dev/vg/data /data xfs defaults,noatime,swidth=2048 0 0

    Why it's wrong here

    swidth sets the stripe width, not the stripe unit.

  • /dev/vg/data /data xfs defaults,noatime,allocsize=1m 0 0

    Why it's wrong here

    allocsize controls space allocation chunk size, not stripe unit.

  • /dev/vg/data /data xfs defaults,noatime,sunit=1024 0 0

    Why it's wrong here

    sunit=1024 gives a stripe unit of 512 KiB, not 1 MiB.

About these practice questions

Courseiva writes every LPIC-2 question from scratch — 507 in total, each with an explanation and a wrong-answer breakdown. None are copied from real exams or dumps. Learn why practice questions differ from exam dumps →

How Courseiva writes practice questions · Editorial policy

JA

Written by Johnson Ajibi, MSc IT Security

Senior Network & Security Engineer · founder of Courseiva

This LPIC-2 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-2 exam.