LVM: Logical Volume Manager (Logical Volume Manager)
Combine multiple physical disk partitions (PVS) into large volume groups (VG), and then partition the required size from the large volume group (LV)
PV (physical Volume, physical volume)
VG (Volume Group, Volume group)
PE (physical Extend, physical expansion block): PE is the minimum storage block for LVM, a bit like the file system block
LV (Logical Volume, Logic extension block): System ID = 8e
Characteristics
implementation Process :
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/C3/wKioL1WGs1KhN2XuAABdgbEE9VM134.jpg "style=" float: none; "title=" Image.png "alt=" Wkiol1wgs1khn2xuaabdgbee9vm134.jpg "/>
Create, modify, close steps
1:PV
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6E/C6/wKiom1WGsZzAIRgIAAFW0jcpMrM254.jpg "style=" float: none; "title=" Image2.png "alt=" Wkiom1wgszzairgiaafw0jcpmrm254.jpg "/>
2:VG
650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/6E/C3/wKioL1WGs1LAwN1gAAHEJXOY0PQ902.jpg "title=" Image3.png "style=" Float:none; "alt=" wkiol1wgs1lawn1gaahejxoy0pq902.jpg "/>
3 Increase/Decrease PV amount in VG:
Delete VG:
3:LV
4: format the LV, and mount the use
5: zoom in on LV and file system capacity
Lvresize [-L +/-increase/decrease PE number] [-l +/-increase/decrease size] Device
You can use the lvdisply command to see that the LV is increased but the file system does not grow
RESIZE2FS [Device]//Dynamic Extended file system capacity to the same as LV, if added file size, expand to the specified size
6: reduce LV and file system capacity
1: Uninstall
2: Disk check e2fsck-f [device]
3: Shrink file system resize2fs [device] [size]
7: Remove LV
8: Turn off LVM
Uninstall all LVM file systems first
Lvremove Delete LV
Vgchange-an vgname//Let VG not have active flag, equivalent to shutdown
Vgremove Delete VG
Pvremove removing PV
Delete the partition, or change the system ID back to 82 later use
This article is from the "Call Me boxin" blog, so be sure to keep this source http://boxinknown.blog.51cto.com/10435935/1664037
LVM Logical Volume Management