LVM is a logical volume management, is a mechanism for disk partition management under Linux, I believe many people want to know how Linux creates LVM and LVM usage, so Xiaobian will target LVM Create and use a detailed introduction, let's learn together.
LVM explain:
Image Outline: What
1) LVM, the role:
LVM called the Logical Volume Manager, the role is Improve the management and flexibility of disk partitioning.
The logical volume LVM can effectively manage and allocate disk space. You can combine scattered small partitions into one large volume group, and divide the required space from the volume group to make a logical volume. Capacity expansion and reduction are easy to use. There is also a backup function, which refers to the lvm snapshot.
2) Create an instance:
Disk->Partition->ID Modify 8e-"Save.
I used a disk to do it through partitions. It is also possible to divide each disk into one zone.
Device Boot Start End Blocks Id System
/dev/sdb1 1 1306 10490413+ 8e Linux LVM
/dev/sdb2 1307 2612 10490445 8e Linux LVM
/dev/sdb3 2613 3918 10490445 8e Linux LVM
3) Create a physical volume: via the pvcreate command.
pvcreate /dev/sdb1
pvcreate /dev/sdb2
pvcreate /dev/sdb3
[root@station106 ~]# pvs(View Create Physical volume).
PV VG Fmt Attr PSize PFree
/dev/sda2 vg0 lvm2 a-- 59.99g 7.99g
/dev/sdb1 lvm2 a-- 10.00g 10.00g< Br>
/dev/sdb2 lvm2 a-- 10.00g 10.00g
/dev/sdb3 lvm2 a-- 10.00g 10.00g
pvdisplay See more details.
[root@station106 ~]# pvdisplay
--- Physical volume ---
PV Name /dev/sdb1
VG Name myvg< Br>
PV Size 10.00 GiB /not usable 4.54 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2560
Free PE 2560
Allocated PE 0
PV UUID XP8QfA-WQDd-1v9p-QKxk-AztZ-Nr9e-QbN6Gu
--- Physical volume ---
PV Name /dev/sdb2
VG Name myvg
PV Size 10.00 GiB /not usable 4.58 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2560
Free PE 2560
Allocated PE 0
PV UUID f8Dtdd-fV9e-1yB7-1B8P-21mU-CU2f-fQDAxe
--- Physical volume ---
PV Name /dev/sdb3
VG Name myvg
PV Size 10.00 GiB /not usable 4.58 MiB
Allocatable yes
PE Size 4.00 MiB
Total PE 2560
Free PE 256 0
Allocated PE 0
PV UUID rKNL0x-WXq2-gHYD-T27r-Gf05-a4y3-f4zqzt
4) Create a logical volume: via vgcreate.
[root@station106 ~]# vgcreate myvg /dev/sdb{1,2,3}
Volume group “myvg” successfully created
Previous1234Next 4 pages in total
PHP Trojan is mainly used to attack websites. It will insert code into the website.
Many people may not know that the Ubuntu system has its own recovery mode. So what
We all know that it is easy to achieve remote access between the same systems, but
Grub is a bootloader from the Gnu project. It is a multi-boot specification implementation that allo
Linux can not log in mysql how to do?
Git Workflow and Basic Operations in Linux
Linux tips for modifying tab widths
How does Linux modify the RPM installation directory?
How to restart Tomcat regularly on Linux system
Linux network card binding setting method
How does the Linux system view the number of threads in a process?
What should I do if I install a graphics card driver error on Ubuntu 13.10?
How to use Linux to clear Bash environment variables with commands
IE browser is forced to link a website solution
How to solve the problem that the USB interface of Win7 system does not respond
Windows 7 Virtual XP Mode has six serious flaws
Win8.1 running "Dragon Ball Super Universe" always suddenly stops working how to deal with?
Win7 prohibits the installation of software, win7 restrictions on the installation of software
Microsoft completely abandoned the Aero Glass interface
How to hide WinXP's control panel
What are the styles of the win10 start menu? Win10 set the detailed method of the start menu