A system administrator has physically moved disks containing an LVM volume group named datavg from a decommissioned server to a new server. After booting the new server, the logical volumes within datavg are not visible. A pvscan command confirms the physical volumes are present but shows they belong to an exported volume group. Which of the following commands must the administrator run to make the datavg volume group and its logical volumes known to the new system?
The correct command is vgimport datavg. The vgimport command is used to make a volume group that was moved from another system known to the current system. This process registers the volume group with the new system's LVM metadata. After a volume group is successfully imported, it typically needs to be activated using vgchange -a y datavg before its logical volumes can be mounted and used.
vgcreate datavg is incorrect because this command is used to create a new, empty volume group. The volume group datavg already exists on the disks and does not need to be created.
vgchange -a y datavg is incorrect in this initial step because it is used to activate a volume group that is already known to the system. The volume group must be imported with vgimport before it can be activated.
vgextend datavg /dev/sdd is incorrect because this command is used to add a new physical volume (/dev/sdd) to an existing, active volume group. It does not make an entire inactive volume group available to the system.
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 `vgimport` command?
Open an interactive chat with Bash
Why is `vgchange -a y` used after `vgimport`?
Open an interactive chat with Bash
How does `pvscan` help in identifying volume groups on a new system?
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