Standard Partition Specification
Hi
What is the standard procedure to create LVM Groups in RHEL 7.4 . Should i create a single VG with 1 PV or single VG with multiple PVs .
What are the pros and cons of having VG with single disk and multiple disks .
Thanks
Sadiq
Responses
Hi Mohammed,
From management perspective, a single PV as back-end device for a VG should be a good approach. However, this doesn't mean that a VG with multiple PVs is not a bad approach. What matters finally is your company or organization requirements or standards that you would normally follow. Saying so, there are likely chances that your one-to-one PV-VG combination may break as requirement to expand VG in future would arise. However, I've seen a few organizations or admins would like to present whole storage lun as a PV just to keep things simple and make future expansion of LUN easy. But this approach of without making partitions would simply motivate any tools or programs scanning for hard drives would likely to see the disk as un-used or un-partitioned disk and may suggest that to use it. Finally, at the time of building new systems, you could keep one to one PV-VG-LV combination which can be expanded as required later. Community members may have some other suggestion or better approach. It is always good to have a healthy communication which yields in knowledge sharing and help community.
Thanks, Sadashiva Murthy M
Not really standards, but there are "best practices". That said, those best practices tend to be predicated on what the specific use-cases are:
- LVM for OS tends to have different optimizations than LVM for applications/data;
- SAN vs local storage has different optimization-considerations
- HDD vs SSD has its own
- physical versus virtual has its own ...and different types of virtualization further complicate things
You'd probably get better/more-complete recommendations if you gave more background on what you have and what you're looking to optimize for.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
