Linux+ Linux+ Filesystem and Storage Management 3 — Questions and Answers
Question 1: Which RAID level provides striping with distributed parity and requires a minimum of 3 disks?
- RAID 0
- RAID 1
- RAID 5 (Correct answer)
- RAID 10
Correct answer: RAID 5
RAID 5 stripes data and parity across all disks (minimum 3), tolerating one disk failure while maintaining read performance.
Question 2: A developer runs 'ln file1 file2' then deletes file1. What happens to file2?
- file2 is also deleted
- file2 becomes a broken link
- file2 remains intact with the data (Correct answer)
- file2 loses its permissions
Correct answer: file2 remains intact with the data
Hard links share the same inode; deleting one filename only decrements the link count, so file2 remains fully accessible until all links are removed.
Question 3: What does the 'noatime' mount option do?
- Prevents creation timestamp updates
- Disables access time updates on file reads (Correct answer)
- Blocks modification time tracking
- Prevents attribute changes
Correct answer: Disables access time updates on file reads
noatime stops the filesystem from updating the access time (atime) each time a file is read, reducing unnecessary disk writes.
Question 4: Which command converts a physical partition to an LVM physical volume?
- vgcreate /dev/sdb1
- lvcreate /dev/sdb1
- pvcreate /dev/sdb1 (Correct answer)
- pvmake /dev/sdb1
Correct answer: pvcreate /dev/sdb1
pvcreate initializes a disk or partition as an LVM physical volume by writing LVM metadata to it.
Question 5: A XFS filesystem is full. Which command increases its size to use newly added space?
- xfs_repair /dev/sda1
- resize2fs /dev/sda1
- xfs_growfs /mount/point (Correct answer)
- xfs_admin -s /dev/sda1
Correct answer: xfs_growfs /mount/point
xfs_growfs expands a mounted XFS filesystem to fill available space; it takes the mount point, not the device, as its argument.
Question 6: What is the effect of the 'discard' mount option on an SSD-backed filesystem?
- Enables TRIM to free unused blocks on the SSD (Correct answer)
- Discards write cache on unmount
- Removes deleted files immediately from disk
- Disables journaling for SSD optimization
Correct answer: Enables TRIM to free unused blocks on the SSD
The discard option enables online TRIM, sending discard commands to the SSD to free blocks as files are deleted, maintaining SSD performance.
Question 7: Which file contains the kernel's current list of recognized partition types and their identifiers?
- /etc/partitions
- /proc/partitions (Correct answer)
- /sys/block/partitions
- /dev/disk/partitions
Correct answer: /proc/partitions
/proc/partitions is a virtual file that lists all block devices and partitions currently known to the running kernel.
Which RAID level provides striping with distributed parity and requires a minimum of 3 disks?