Courseiva
Knowledge + Practice
CertificationsVendorsCareer RoadmapsLabs & ToolsStudy GuidesGlossaryPractice Questions
C
Courseiva

Free IT certification practice questions with explained answers for CCNA, CompTIA, AWS, Azure, Google Cloud, and more.

Certification Practice Questions

CCNA practice questionsSecurity+ SY0-701 practice questionsAWS SAA-C03 practice questionsAZ-104 practice questionsAZ-900 practice questionsCLF-C02 practice questionsA+ Core 1 practice questionsGoogle Cloud ACE practice questionsCySA+ CS0-003 practice questionsNetwork+ N10-009 practice questions
View all certifications →

Product

CertificationsCertification PathsExam TopicsPractice TestsExam Dumps vs Practice TestsStudy HubComparisons

Company

AboutContactEditorial PolicyQuestion Writing PolicyTrust Center

Legal

Privacy PolicyTerms of Service

Courseiva is a free IT certification practice platform offering original exam-style practice questions, detailed explanations, topic-based practice, mock exams, readiness tracking, and study analytics for Cisco, CompTIA, Microsoft, AWS, and other technology certifications.

© 2026 Courseiva. Courseiva is operated by JTNetSolutions Ltd. All rights reserved.

Courseiva is an independent certification practice platform and is not affiliated with, endorsed by, or sponsored by Cisco, Microsoft, AWS, CompTIA, Google, ISC2, ISACA, or any other certification vendor. Vendor names and certification marks are used only to identify the exams learners are preparing for.

← Block Devices, Filesystems and Advanced Storage practice sets

LPIC-2 Block Devices, Filesystems and Advanced Storage • Complete Question Bank

LPIC-2 Block Devices, Filesystems and Advanced Storage — All Questions With Answers

Complete LPIC-2 Block Devices, Filesystems and Advanced Storage question bank — all 0 questions with answers and detailed explanations.

47
Questions
Free
No signup
Certifications/LPIC-2/Practice Test/Block Devices, Filesystems and Advanced Storage/All Questions
Question 1mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A system administrator notices that a new 1TB NVMe drive (/dev/nvme0n1) is not detected by the kernel. The hardware is confirmed working. Which troubleshooting step should be taken first to check if the drive is recognized by the system's PCI subsystem?

Question 2hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An administrator is designing a high-availability storage solution using DRBD. The requirement is to have two nodes with synchronous replication and automatic failover in case of primary node failure. Which configuration best achieves this?

Question 3easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A filesystem is reported as 'read-only' after an unexpected power failure. Which command should be used to attempt repair without data loss?

Question 4mediummulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which TWO statements about LVM thin provisioning are correct?

Question 5mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A Linux administrator is managing a database server running on CentOS 7 that uses ext4 filesystems on LVM. The server has three physical volumes: /dev/sda (200GB), /dev/sdb (200GB), and /dev/sdc (200GB) all in volume group 'vg_db'. The logical volume 'lv_data' (400GB) is used for database files. Recently, the DBA reports that database writes are slower than expected. Iostat shows high average wait times (>100ms) on /dev/sdc but normal on /dev/sda and /dev/sdb. The LVM stripes data across all three PVs with a stripe size of 64KB. Which action should the administrator take to improve performance?

Question 6mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A system administrator needs to create a new 500 MB ext4 filesystem on /dev/sdb1 and mount it persistently at /data. Which set of commands accomplishes this task?

Question 7hardmulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which TWO statements about LVM thin provisioning are correct?

Question 8easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

The administrator wants to create a RAID 1 array using /dev/sdb1 and /dev/sdc1, then create a filesystem and mount it at /mnt/raid1. Which command sequence should be used first?

Exhibit

Refer to the exhibit.

# lsblk
NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0   100G  0 disk
├─sda1   8:1    0     1G  0 part /boot
├─sda2   8:2    0    49G  0 part /
└─sda3   8:3    0    50G  0 part /home
sdb      8:16   0   100G  0 disk
└─sdb1   8:17   0   100G  0 part
sdc      8:32   0   100G  0 disk
└─sdc1   8:33   0   100G  0 part
Question 9mediumdrag order
Read the full DHCP explanation →

Order the steps to configure a Linux system as a DHCP client using dhclient.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 10mediumdrag order
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Arrange the steps to configure a Linux system as a PostgreSQL database server.

Drag steps to the numbered slots on the right, or tap a step then tap a slot.

Steps
Order
1Step 1
2Step 2
3Step 3
4Step 4
5Step 5
Question 11mediummatching
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Match each LVM term to its definition.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

A storage device or partition used by LVM

A pool of physical volumes that can be allocated to logical volumes

A virtual block device created from a volume group

The smallest allocatable unit in a physical volume

Maps to a physical extent in a logical volume

Question 12mediummatching
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Match each security tool to its function.

Drag a concept onto its matching description — or click a concept then click the description.

Concepts
Matches

Packet filtering firewall using netfilter

Successor to iptables with improved syntax

Mandatory access control (MAC) system

Mandatory access control using profiles

Intrusion prevention by banning IPs based on logs

Question 13easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A Linux administrator notices that a newly added disk /dev/sdc is not recognized by the system. Which command should be used to rescan the SCSI bus without rebooting?

Question 14easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An administrator needs to create an ext4 filesystem on /dev/sdb1 with a block size of 4096 bytes and reserve 2% of blocks for root. Which command accomplishes this?

Question 15mediummultiple choice
Read the full NAT/PAT explanation →

After adding a new LUN to an existing SAN, the administrator runs multipath -ll but sees the new LUN as 'failed'. The multipathd service is running. What is the most likely cause?

Question 16mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An administrator needs to extend an ext4 filesystem on logical volume 'home' by 5 GB. The volume group 'vg' has free extents. Which sequence of commands is correct?

Question 17hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A database server experiences performance degradation. Analysis shows high I/O wait on a LVM logical volume that uses striping across two physical volumes. What is the most effective way to improve performance?

Question 18hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A system's root filesystem on /dev/sda1 is offline. The administrator boots into rescue mode and needs to check the filesystem integrity. Which command should be used first?

Question 19mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

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?

Question 20easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which command can be used to display all UUIDs of block devices that contain filesystems?

Question 21hardmultiple choice
Read the full NAT/PAT explanation →

A storage administrator sees the following output from multipath -ll: 'dm-3 (3600605b0038f1f0019f1f7e00000000) size=10G features='0' hwhandler='0' wp=rw' but the paths are all 'failed'. The scsi devices are listed in /proc/scsi/scsi. What is the most likely cause?

Question 22mediummulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which two commands can be used to create a swap space on a partition /dev/sdb2? (Choose two.)

Question 23easymulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which two commands display information about LVM physical volumes? (Choose two.)

Question 24hardmulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which three conditions must be met for a filesystem to be mounted by UUID in /etc/fstab? (Choose three.)

Question 25mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Refer to the exhibit. The administrator wants to mount /dev/sdb1 at /data using its UUID. Which /etc/fstab entry is correct?

Exhibit

# blkid
/dev/sda1: UUID="abcd-1234" TYPE="ext4"
/dev/sda2: UUID="efgh-5678" TYPE="swap"
/dev/sdb1: UUID="ijkl-9012" TYPE="ext4" PARTUUID="12345678-01"
Question 26hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Refer to the exhibit. The /data filesystem is nearly full. The administrator has added a new disk /dev/sdc with 10GB capacity. The VG currently has no free space. Which steps will increase the available space for /data using LVM and ext4?

Exhibit

# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/mapper/vg-data  20G   16G  4.0G  80% /data
Question 27easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Refer to the exhibit. A system administrator wants to replace disk sdb1 in the RAID1 array. After physically removing sdb, which sequence of commands should be used?

Exhibit

# cat /proc/mdstat
Personalities : [raid1] [raid6] [raid5] [raid4] 
md0 : active raid1 sdb1[0] sdc1[1]
      2097152 blocks [2/2] [UU]
      
unused devices: <none>
Question 28mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A system administrator notices that a new iSCSI target is not appearing as a block device after running iscsiadm. The target is known to be online and reachable. What is the most likely cause?

Question 29easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which command can be used to create a swap partition on /dev/sdb1?

Question 30hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An administrator wants to convert an ext4 filesystem to Btrfs without losing data. Which procedure should be used?

Question 31mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A filesystem check on an XFS filesystem reports corruption. What is the recommended way to repair it?

Question 32easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which of the following is the primary configuration file for the udev device manager?

Question 33hardmultiple choice
Read the full NAT/PAT explanation →

An administrator needs to configure iSCSI multipathing. After setting up two paths, which command should be used to verify the multipath topology?

Question 34mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A filesystem created with mkfs.ext4 on /dev/sda1 has a reserved block count of 5%. How can the administrator reduce it to 1% without reformatting?

Question 35easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which file contains the filesystem table that is read during system boot to mount filesystems?

Question 36hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An administrator wants to create a thin provisioned LVM pool and a thin volume. Which sequence of commands is correct?

Question 37easymulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which TWO commands display UUIDs of block devices? (Select TWO)

Question 38hardmulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which THREE of the following are correct statements about LVM thin provisioning? (Select THREE)

Question 39easymulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

Which THREE of the following are correct about RAID 1 in mdadm? (Select THREE)

Question 40mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An administrator runs the command shown. However, when a user tries to execute a binary from /mnt/tmp, it fails with 'Permission denied'. What is the most likely cause?

Exhibit

mount -t tmpfs -o size=2G,noexec,nosuid tmpfs /mnt/tmp
ls -la /mnt/tmp
total 4
drwxrwxrwt  2 root root   40 Oct 27 10:00 .
drwxr-xr-x  3 root root 4096 Oct 27 09:55 ..
Question 41hardmultiple choice
Read the full NAT/PAT explanation →

An administrator observes that only one path is shown as active for mpathb. What is the most likely cause?

Exhibit

cat /etc/multipath.conf
defaults {
    user_friendly_names yes
    find_multipaths yes
}
blacklist {
    devnode "^sd[a-z]"
}
multipath -ll
mpathb (36005076303ffc300000000000000374) dm-2 HP,MB3000FCAPA
size=1.0T features='0' hwhandler='0' wp=rw
`-+- policy='round-robin 0' prio=0 status=active
  |- 1:0:0:0 sdb 8:16 active ready running
Question 42hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A company runs a database server on Linux with a 4-disk RAID 10 array using mdadm. The server recently experienced a power outage. After reboot, the array is not assembling automatically. The administrator runs `mdadm --assemble --scan` and it fails with a message: 'mdadm: /dev/md0 has been found but is not a valid md superblock.' The administrator checks /proc/mdstat and sees no arrays. The disks /dev/sda, /dev/sdb, /dev/sdc, /dev/sdd are present. Running `mdadm --examine /dev/sda` shows no md superblock, but the disk contains data partitions. The administrator suspects that the superblock may be corrupted or that the disks were accidentally overwritten. The administrator has documentation that the array was created with the following parameters: RAID level 10, 4 disks, chunk size 512 KiB, metadata 1.2. What is the best course of action to recover the array?

Question 43easymultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A server running Linux with an ext4 filesystem on /dev/sda1 has experienced an unexpected power loss due to a faulty power supply. After replacing the power supply and rebooting, the system fails to mount /dev/sda1 with an error message indicating 'wrong superblock magic number' or 'superblock corrupted'. The administrator recalls that ext4 filesystems have backup superblocks created during mkfs. Using the command 'dumpe2fs /dev/sda1 | grep -i backup' is not possible because the device is not mountable. However, the administrator remembers that for this specific filesystem, a backup superblock is located at block offset 32768 based on the output of 'mke2fs -n' from the original creation. What is the correct course of action to recover the filesystem and mount it?

Question 44mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An organization runs a critical application on a Linux server that stores its data on a 500GB LVM logical volume named /dev/vg_data/lv_app. The application must remain operational with minimal disruption, so unmounting the volume is not acceptable. The administrator needs to create a full backup of the logical volume to an external 1TB USB drive attached via eSATA. The backup must capture a point-in-time consistent state of the filesystem. The logical volume is formatted with XFS. Which of the following procedures best achieves this goal while minimizing downtime?

Question 45easymulti select
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A system administrator needs to create a RAID 10 array using four disks: /dev/sdb, /dev/sdc, /dev/sdd, /dev/sde. Which TWO commands correctly achieve this?

Question 46mediummultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

An administrator wants to use /dev/sdb for a new ext4 filesystem. Which step must be performed first?

Exhibit

Refer to the exhibit.

# lsblk -o NAME,SIZE,TYPE,MOUNTPOINT
NAME   SIZE TYPE MOUNTPOINT
sda    50G disk 
├─sda1 20G part /
├─sda2  2G part [SWAP]
└─sda3 28G part /var
sdb    20G disk
Question 47hardmultiple choice
Read the full Block Devices, Filesystems and Advanced Storage explanation →

A database server uses LVM with an XFS filesystem on /dev/vg_data/lv_db, mounted at /var/lib/mysql. The LV is at 95% capacity. A new 50GB disk /dev/sdd has been added and initialized as a physical volume, then added to the volume group vg_data. The database is running and cannot be stopped. The administrator must extend the LV and filesystem. What is the correct course of action?

Practice tests

Scored 10-question sessions with instant feedback and explanations.

LPIC-2 Practice Test 1 — 10 Questions→LPIC-2 Practice Test 2 — 10 Questions→LPIC-2 Practice Test 3 — 10 Questions→LPIC-2 Practice Test 4 — 10 Questions→LPIC-2 Practice Test 5 — 10 Questions→LPIC-2 Practice Exam 1 — 20 Questions→LPIC-2 Practice Exam 2 — 20 Questions→LPIC-2 Practice Exam 3 — 20 Questions→LPIC-2 Practice Exam 4 — 20 Questions→Free LPIC-2 Practice Test 1 — 30 Questions→Free LPIC-2 Practice Test 2 — 30 Questions→Free LPIC-2 Practice Test 3 — 30 Questions→LPIC-2 Practice Questions 1 — 50 Questions→LPIC-2 Practice Questions 2 — 50 Questions→LPIC-2 Exam Simulation 1 — 100 Questions→

Practice by domain

Each domain maps to a weighted exam section. Focus on the domain where you are weakest.

Linux Kernel and System StartupBlock Devices, Filesystems and Advanced StorageAdvanced Networking ConfigurationDNS, Web and Mail ServicesFile Sharing and SambaSystem SecurityNetwork Client Management

Practice by scenario

Filter questions by type — troubleshooting, exhibit, drag-and-drop, PBQ, ACLs, OSPF, and more.

Browse scenarios→

Continue studying

All Block Devices, Filesystems and Advanced Storage setsAll Block Devices, Filesystems and Advanced Storage questionsLPIC-2 Practice Hub