A Linux system administrator has attached a new storage device, /dev/sdd, to a server. The administrator suspects this device was previously used as a physical volume in a Logical Volume Manager (LVM) configuration on another system. Which of the following commands should be used to scan all block devices for LVM physical volumes and display the findings without making any changes?
The correct command is pvscan. This utility is designed to scan all supported block devices on the system for physical volumes and report what it finds. It is a read-only command ideal for discovering existing LVM metadata on a newly attached device without altering it.
pvcreate /dev/sdd is incorrect because this command initializes a device as a physical volume. Running it would overwrite any existing LVM metadata on /dev/sdd, which is the opposite of the administrator's goal.
vgscan is incorrect as its primary function is to scan for volume groups, not just individual physical volumes, and to rebuild the LVM cache file. While it scans devices, pvscan is the more direct tool for simply identifying all physical volumes.
pvdisplay /dev/sdd is incorrect because it displays detailed information about a specific physical volume that is already known to the LVM on the system. It is not a discovery tool for scanning all devices to find previously unknown physical volumes.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is the purpose of the `pvscan` command?
Open an interactive chat with Bash
How does `pvscan` differ from `vgscan`?
Open an interactive chat with Bash
Why would using `pvcreate` on an unknown device like `/dev/sdd` be a mistake?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
System Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access