Question 47 of 144
SK0-005 server-administration Practice Question
A junior system administrator is managing a Linux file server running CentOS 7 with logical volumes managed by LVM. The server hosts home directories for 200 users on the /dev/vg_users/lv_home logical volume, mounted at /home. Yesterday, the administrator created an LVM snapshot named home_snap_20250101 of the home logical volume using `lvcreate -L 5G -s -n home_snap_20250101 /dev/vg_users/lv_home` to prepare for a scheduled maintenance. This morning, during a misoperation, the administrator accidentally ran `rm -rf /home/user123`, permanently deleting user123's home directory and all its contents. The snapshot still exists and contains the pre-deletion state of the entire logical volume. The administrator has root access and needs to restore the /home directory to its state as of the snapshot time to recover the lost data. All users are currently logged out and the server can be briefly taken offline if needed. Which of the following procedures should the administrator follow to restore the home directory data from the snapshot with minimal impact and risk?
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
✓
Verify the snapshot is intact, then unmount /home, merge the snapshot back into the original logical volume using `lvconvert --merge vg_users/home_snap_20250101`, which will roll back the /home LV to the snapshot state, then remount /home.
Option B correctly uses the LVM merge feature, which reverts the original logical volume to the snapshot state. This is the intended and efficient method for snapshot recovery, requiring only a temporary unmount. Option A manually copies data, which is time-consuming and may introduce permission issues. Option C creates a new volume unnecessarily, complicating restoration. Option D uses dd, which is risky and not a standard LVM restoration method.
Answer analysis
Option-by-option breakdown
For each option: why learners choose it and why it is or isn't the right answer here.
- ✗
Delete the current /home logical volume and create a new one from the snapshot, then restore the data using `dd if=/dev/vg_users/home_snap_20250101 of=/dev/vg_users/lv_home`.
Why it's wrong here
Using dd in this manner can lead to data corruption if the snapshot is not the exact same size as the original, and it circumvents LVM tools, introducing unnecessary risk.
- ✗
Create a new logical volume from the snapshot using `lvconvert --splitsnapshot`, mount it, and restore only user123's directory, then update /etc/fstab to use the new volume.
Why it's wrong here
This unnecessarily creates a new volume, complicating the restoration and requiring fstab updates, and may not restore the entire /home directory correctly.
- ✗
Mount the snapshot volume to /mnt/snap, copy the entire contents back to /home using `cp -a /mnt/snap/* /home/`, then unmount the snapshot and remove it.
Why it's wrong here
Manual copy is possible but not the most efficient or risk-free method; permissions and hidden files may not be perfectly replicated, and it requires more steps and time.
- ✓
Verify the snapshot is intact, then unmount /home, merge the snapshot back into the original logical volume using `lvconvert --merge vg_users/home_snap_20250101`, which will roll back the /home LV to the snapshot state, then remount /home.
Why this is correct
This is the standard LVM snapshot rollback procedure, ensuring a fast and complete restoration to the snapshot state.
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 →
Last reviewed: Jul 26, 2026
This SK0-005 practice question is part of Courseiva's free CompTIA 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 SK0-005 exam.
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.
Sign in to join the discussion.