search

What is centos lvm

Jan 28, 2022 pm 05:10 PM
centoslvm

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.

What is centos lvm

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!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What Comes After CentOS: The Road AheadWhat Comes After CentOS: The Road AheadApr 16, 2025 am 12:07 AM

Alternatives to CentOS include RockyLinux, AlmaLinux, OracleLinux, and SLES. 1) RockyLinux and AlmaLinux provide RHEL-compatible binary packages and long-term support. 2) OracleLinux provides enterprise-level support and Ksplice technology. 3) SLES provides long-term support and stability, but commercial licensing may increase costs.

CentOS: Exploring the AlternativesCentOS: Exploring the AlternativesApr 15, 2025 am 12:03 AM

Alternatives to CentOS include UbuntuServer, Debian, Fedora, RockyLinux, and AlmaLinux. 1) UbuntuServer is suitable for basic operations, such as updating software packages and configuring the network. 2) Debian is suitable for advanced usage, such as using LXC to manage containers. 3) RockyLinux can optimize performance by adjusting kernel parameters.

Centos shutdown command lineCentos shutdown command lineApr 14, 2025 pm 09:12 PM

The CentOS shutdown command is shutdown, and the syntax is shutdown [Options] Time [Information]. Options include: -h Stop the system immediately; -P Turn off the power after shutdown; -r restart; -t Waiting time. Times can be specified as immediate (now), minutes ( minutes), or a specific time (hh:mm). Added information can be displayed in system messages.

Difference between centos and ubuntuDifference between centos and ubuntuApr 14, 2025 pm 09:09 PM

The key differences between CentOS and Ubuntu are: origin (CentOS originates from Red Hat, for enterprises; Ubuntu originates from Debian, for individuals), package management (CentOS uses yum, focusing on stability; Ubuntu uses apt, for high update frequency), support cycle (CentOS provides 10 years of support, Ubuntu provides 5 years of LTS support), community support (CentOS focuses on stability, Ubuntu provides a wide range of tutorials and documents), uses (CentOS is biased towards servers, Ubuntu is suitable for servers and desktops), other differences include installation simplicity (CentOS is thin)

Centos configuration IP addressCentos configuration IP addressApr 14, 2025 pm 09:06 PM

Steps to configure IP address in CentOS: View the current network configuration: ip addr Edit the network configuration file: sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0 Change IP address: Edit IPADDR= Line changes the subnet mask and gateway (optional): Edit NETMASK= and GATEWAY= Lines Restart the network service: sudo systemctl restart network verification IP address: ip addr

How to install centosHow to install centosApr 14, 2025 pm 09:03 PM

CentOS installation steps: Download the ISO image and burn bootable media; boot and select the installation source; select the language and keyboard layout; configure the network; partition the hard disk; set the system clock; create the root user; select the software package; start the installation; restart and boot from the hard disk after the installation is completed.

Centos8 restarts sshCentos8 restarts sshApr 14, 2025 pm 09:00 PM

The command to restart the SSH service is: systemctl restart sshd. Detailed steps: 1. Access the terminal and connect to the server; 2. Enter the command: systemctl restart sshd; 3. Verify the service status: systemctl status sshd.

How to restart the network in centos8How to restart the network in centos8Apr 14, 2025 pm 08:57 PM

Restarting the network in CentOS 8 requires the following steps: Stop the network service (NetworkManager) and reload the network module (r8169), start the network service (NetworkManager) and check the network status (by ping 8.8.8.8)

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Chat Commands and How to Use Them
1 months agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Zend Studio 13.0.1

Zend Studio 13.0.1

Powerful PHP integrated development environment

SublimeText3 Linux new version

SublimeText3 Linux new version

SublimeText3 Linux latest version

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

MinGW - Minimalist GNU for Windows

MinGW - Minimalist GNU for Windows

This project is in the process of being migrated to osdn.net/projects/mingw, you can continue to follow us there. MinGW: A native Windows port of the GNU Compiler Collection (GCC), freely distributable import libraries and header files for building native Windows applications; includes extensions to the MSVC runtime to support C99 functionality. All MinGW software can run on 64-bit Windows platforms.