An administrator needs to extend the storage capacity of a Linux server. They have added a new physical disk and created a physical volume (PV) on it. Now, the administrator wants to check the existing volume groups (VGs) to decide into which volume group the new physical volume should be extended. Which command should be used to display the current volume groups and their associated information?
The correct answer is 'vgs', as it stands for 'volume groups' and is used to display information about the volume groups managed by LVM. It would give an overview of the volume groups available on the system, including details like VG name, the total size, available free space, and the number of physical volumes (PVs) it contains, helping the administrator in making a decision where to extend the storage.
The answer 'lvdisplay' is incorrect because it shows information about logical volumes, not volume groups. 'pvscan' only scans all disks for physical volumes, it doesn't provide detailed information about volume groups. 'fdisk -l' displays partition and disk information, which does not directly relate to LVM's volume group configuration.
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 LVM and why is it used in Linux?
Open an interactive chat with Bash
What information does the 'vgs' command display?
Open an interactive chat with Bash
How do 'lvdisplay', 'pvscan', and 'fdisk -l' differ from 'vgs'?