LVM3
LVM3
Exams
SuperCoaching
Test Series
Skill Academy
Pass
More
Search
Skill Academy
Career Programs
Mini Courses
Internship
Interview Questions
Digital Marketing
Web Development
Wordpress Development
Advanced Excel
Python Programming
Operating Systerm
Home
Interview Questions
Linux LVM Interview Questions
Linux LVM Interview Questions
Linux LVM Interview Questions
Last updated on May 5, 2023
Download As PDF
Linux LVM Interview Questions Exam Preparation
Linux LVM Interview Questions With Answers
If you're preparing for a Linux interview, you may encounter questions about
Logical Volume Management (LVM). LVM is a powerful tool that allows you to manage
disk space more efficiently on a Linux system. In this article, we've compiled a
list of common Linux LVM interview questions, ranging from basic to advanced, to
help you prepare for your interview. You'll find answers to questions like "What is
LVM in Linux?" and "How do you create a physical volume in LVM?" This article is
designed to help you ace your LVM interview by providing valuable insights into
what recruiters are looking for in a candidate. So, whether you're a seasoned Linux
admin or just starting out, read on to brush up on your LVM knowledge and be ready
to impress your interviewer.
Crack SSC Exams with Top Teachers like Puneet Chaudhary and Ananya Singh
Get 6 Months SuperCoaching @ just
₹2999
₹799
Physical Volume (PV): Represents a storage device, such as a hard disk or a disk
partition.
Volume Group (VG): A collection of one or more PVs, forming a pool of storage.
Logical Volume (LV): A virtual partition created from the VG, which can be
formatted with a file system and mounted.
Q3: How do you create a physical volume in LVM?
A3: To create a physical volume, use the pvcreate command:
pvcreate /dev/sdb1
Replace my_volume_group with the desired name and /dev/sdb1 with the appropriate
PV.
Replace my_logical_volume with the desired name, 10G with the desired size, and
my_volume_group with the appropriate VG.
Replace `my_snapshot` with the desired snapshot name, `5G` with the required
snapshot size, and `/dev/my_volume_group/my_logical_volume` with the appropriate
LV.
Q10: Explain the difference between linear and striped logical volumes.
A10:
pass-logo
Get Unlimited Access to Test Series for 880+ Exams and much more.
Know More
₹27/month
Buy Testbook Pass
Intermediate LVM Interview Questions
Q11. What are the benefits of using LVM over traditional partitioning?
A11. The benefits of using LVM (Logical Volume Manager) over traditional
partitioning are as follows:
To remove a physical volume from a volume group, first move the data from the
physical volume using pvmove, then use the vgreduce command:
Q14. What is the difference between a physical extent and a logical extent?
A14. Physical extents (PEs) and logical extents (LEs) are both fixed-size blocks of
storage used in LVM:
Physical extents are the basic units of allocation within a physical volume.
Logical extents are the basic units of allocation within a logical volume.
The main difference between them is their function in the LVM hierarchy. Physical
extents are related to the physical storage devices, whereas logical extents are
related to the logical volumes created by users.
Q15. How do you migrate data from one physical volume to another?
A15. To migrate data from one physical volume to another, use the pvmove command:
This command will move all the data from the source physical volume to the
destination physical volume.
Bootloader support: Not all bootloaders support booting from LVM, which may require
a separate boot partition.
Complexity: LVM can be more complex to set up and manage compared to traditional
partitioning.
Data recovery: Recovering data from an LVM-based system can be more challenging
than from traditional partitions.
Q17. How do you create a mirrored logical volume?
A17. To create a mirrored logical volume, use the lvcreate command with the -m
option:
Here, <mirrors> is the number of additional copies of the data (1 for a single
mirror).
Q18. What is a thin-provisioned logical volume, and how do you create one?
A18. A thin-provisioned logical volume is a volume that allocates storage space on
demand, only consuming physical storage when data is actually written to the
volume. This allows for more efficient storage utilization and over-provisioning of
storage.
Create a thin-provisioned logical volume using the lvcreate command with the --
virtualsize and --thin options:
lvcreate -V <virtual_size> --thin -n <logical_volume_name>
<volume_group_name>/<thin_pool_name>