In centos, the full name of lvm is "Logical Volume Manager", which means "logical volume management" in Chinese. It is a mechanism for managing disk partitions in the Linux environment. Its original intention was to solve the problem of hard disk devices. It is not easy to modify the partition size permissions after the partition is created.
The operating environment of this article: CentOS 7 system, DELL G3 computer
What is LVM
LVM is the abbreviation of Logical Volume Manager, which is a mechanism for managing disk partitions in the Linux environment.
The original intention of its creation is to solve the problem that hard disk devices cannot easily modify the partition size permissions after creating a partition. LVM technology adds a logical layer between the hard disk partition and the file system. It provides an abstract Volume groups can combine multiple hard disks into cans. In this way, users do not have to worry about the underlying architecture layout of the physical hard disk device, and can easily dynamically adjust the hard disk partition. In short, when one of our partitions is not enough in production, in addition to cleaning up historical data, we need to adjust the storage location of the current data. Otherwise, once the partition is full, it will not work, and LVM technology can solve the problem. After migrating the original data (the original partition must be in LVM format), you can add a hard disk at will, and then dynamically add space to the LVM partition. Of course, you can also reduce the space. The point is that the original data will not be affected in any way.
Why use LVM
If you directly use the fdisk partition to mount, as time goes by, the amount of data will become larger and larger, and the hard disk space will become smaller and smaller. If you want to expand the capacity, you must mount a new hard disk and then migrate the data. This will inevitably lead to the cessation of front-end business and does not meet the needs of the enterprise. Therefore, the perfect solution should be to freely adjust the size of the file system without any downtime. Adjustments can facilitate file systems spanning different disks and partitions. The logical volume management (LVM, Logical Volume Manager) mechanism provided by Linux is a perfect solution.
LVM logical volume management abstractly encapsulates the underlying physical hard disk and presents it to the upper-layer system in the form of a logical volume. The size of the logical volume can be dynamically adjusted without losing existing data. The newly added hard disk will not change the existing upper logical volume, which greatly improves the flexibility of disk management.
Several LVM terms:
Physical storage media (The physical media): This refers to the system’s storage device: hard disk, such as: /dev/hda, /dev /sda, etc., are the lowest-level storage units of the storage system.
Physical volume (physical volume): A physical volume refers to a hard disk partition or a device (such as RAID) that logically has the same function as a disk partition. It is the basic storage logical block of LVM, but it is not the same as the basic physical storage. Media (such as partitions, disks, etc.) comparison, but contains management parameters related to LVM.
Volume Group: LVM volume group is similar to a physical hard disk in a non-LVM system, and is composed of physical volumes. One or more "LVM partitions" (logical volumes) can be created on a volume group, which consists of one or more physical volumes.
Logical volume (logical volume): The logical volume of LVM is similar to the hard disk partition in the non-LVM system. A file system (such as /home or /usr, etc.) can be established on the logical volume.
PE (physical extent): Each physical volume is divided into basic units called PE (Physical Extents). The PE with a unique number is the smallest unit that can be addressed by LVM. The size of the PE is configurable and defaults to 4MB.
LE (logical extent): Logical volumes are also divided into addressable basic units called LE (Logical Extents). In the same volume group, the size of LE and PE are the same and correspond one to one.
A hard disk (physical storage medium) is formatted into a physical volume (Physical Volume), which is divided into several PE (PHYSICAL Ex ') with a default size of 4m, and then creates the volume group on the basis of PV (Volume Group), you can add one or more PVs to VG. VG is like a space pool. How many PVs are there, how much capacity does VG have? Finally, a logical volume is created based on VG, a logical volume Just several PEs, then format the LV and then mount it (treat the LV as a partition)
Recommendation: "centos usage tutorial"
The above is the detailed content of What is centos lvm. For more information, please follow other related articles on the PHP Chinese website!

CentOS is suitable for building powerful and reliable servers. Its advantages include: 1. Stability and reliability, support cycle up to 10 years; 2. Security, built-in SELinux and regular security patches; 3. Compatibility and ecosystem, highly compatible with RHEL, with a rich software warehouse; 4. Performance optimization, suitable for various hardware platforms and providing kernel tuning.

CentOS will continue to evolve in the future, and users should choose alternative distributions. 1) Evaluate the requirements, choose such as RockyLinux or AlmaLinux, and focus on stability and support. 2) Develop a migration plan, use tools such as CentOS2Rocky, and pay attention to testing and verification. 3) Plan early, maintain contact with the open source community, and ensure a smooth transition.

CentOS is widely selected as a server operating system because it is stable, secure and free. 1.CentOS is based on RHEL, providing enterprise-level stability and a life cycle of up to 10 years. 2. It has rich software packages and strong community support. 3. Simple installation, use yum management software package, and intuitive configuration. 4. Improve server management efficiency through command line tools, regular backups and log management. 5. Optimize server performance by adjusting kernel and network parameters.

CentOS will continue to develop through CentOSStream in the future. CentOSStream is no longer a direct clone of RHEL, but is part of RHEL development. Users can experience the new RHEL functions in advance and participate in development.

The transition from development to production in CentOS can be achieved through the following steps: 1. Ensure the consistent development and production environment, use the YUM package management system; 2. Use Git for version control; 3. Use Ansible and other tools to automatically deploy; 4. Use Docker for environmental isolation. Through these methods, CentOS provides powerful support from development to production, ensuring the stable operation of applications in different environments.

CentOSStream is a cutting-edge version of RHEL, providing an open platform for users to experience the new RHEL functions in advance. 1.CentOSStream is the upstream development and testing environment of RHEL, connecting RHEL and Fedora. 2. Through rolling releases, users can continuously receive updates, but they need to pay attention to stability. 3. The basic usage is similar to traditional CentOS and needs to be updated frequently; advanced usage can be used to develop new functions. 4. Frequently asked questions include package compatibility and configuration file changes, and requires debugging using dnf and diff. 5. Performance optimization suggestions include regular cleaning of the system, optimizing update policies and monitoring system performance.

The reason for the end of CentOS is RedHat's business strategy adjustment, community-business balance and market competition. Specifically manifested as: 1. RedHat accelerates the RHEL development cycle through CentOSStream and attracts more users to participate in the RHEL ecosystem. 2. RedHat needs to find a balance between supporting open source communities and promoting commercial products, and CentOSStream can better convert community contributions into RHEL improvements. 3. Faced with fierce competition in the Linux market, RedHat needs new strategies to maintain its leading position in the enterprise-level market.

RedHat shut down CentOS8.x and launches CentOSStream because it hopes to provide a platform closer to the RHEL development cycle through the latter. 1. CentOSStream, as the upstream development platform of RHEL, adopts a rolling release mode. 2. This transformation aims to enable the community to get exposure to new RHEL features earlier and provide feedback to accelerate the RHEL development cycle. 3. Users need to adapt to changing systems and reevaluate system requirements and migration strategies.


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Dreamweaver CS6
Visual web development tools

WebStorm Mac version
Useful JavaScript development tools

PhpStorm Mac version
The latest (2018.2.1) professional PHP integrated development tool

mPDF
mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),
