Courseiva
Storage ManagementmediumMultiple ChoiceObjective-mapped

LFCS Storage Management Practice Question

A database server is running out of space in its /var/lib/mysql directory. The system admin wants to add a new 100GB disk to increase storage. Which of the following steps should be performed to mount the new filesystem at /var/lib/mysql without data loss?

⚠ Common exam trap

Many exam-takers choose Option C, thinking they can mount directly and then move data, but they overlook that mounting over a non-empty directory hides existing data, making it impossible to move without unmounting first, which would cause data loss if not done carefully.

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

Partition the disk, create a filesystem, mount it at a temporary mount point, copy existing data from /var/lib/mysql to the new filesystem, unmount /var/lib/mysql (if it's a mount), mount the new filesystem at /var/lib/mysql, and update /etc/fstab.

It ensures no data loss by first copying existing data to the new filesystem mounted at a temporary point, then unmounting the old mount (if any) and remounting the new filesystem at /var/lib/mysql. This preserves the existing database files and allows the new disk to be used without disrupting the directory structure. The /etc/fstab update ensures the mount persists across reboots.

Answer analysis

Option-by-option breakdown

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

  • Add the new disk as an LVM physical volume, extend the volume group, extend the logical volume containing /var/lib/mysql, and then resize the filesystem.

    Why it's wrong here

    This assumes LVM is already in use; the question doesn't specify LVM.

  • Partition the disk, create a filesystem, add an entry in /etc/fstab, and reboot the server.

    Why it's wrong here

    Rebooting does not copy existing data and may cause service failure.

  • Partition the disk, create a filesystem, mount it directly to /var/lib/mysql, and then move the existing data into place.

    Why it's wrong here

    Mounting directly overwrites the existing mount point, potentially hiding data.

  • Partition the disk, create a filesystem, mount it at a temporary mount point, copy existing data from /var/lib/mysql to the new filesystem, unmount /var/lib/mysql (if it's a mount), mount the new filesystem at /var/lib/mysql, and update /etc/fstab.

    Why this is correct

    Correct procedure ensures no data loss.

About these practice questions

Courseiva writes every LFCS 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 LFCS practice question is part of Courseiva's free Linux Foundation 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 LFCS exam.