Linux Disk Management +LVM Logical Volume management

Source: Internet
Author: User

Note: There can be a total of 4 Primary and extended partitions in a Linux system, with logical partitions starting from 5 .

Linux system:ext3(swap partition) 5(extended partition) 8E(logical volume) b(FAT32)

1. View the system's disk and partition status

650) this.width=650; "style=" Float:none; "title=" 1.png "src=" http://s3.51cto.com/wyfs02/M01/6F/D8/ Wkiol1wrdtzznqpzaaikaznskyc808.jpg "alt=" Wkiol1wrdtzznqpzaaikaznskyc808.jpg "/>

2. View the disk mount status and capacity usage in the system

650) this.width=650; "style=" Float:none; "title=" 2.png "src=" http://s3.51cto.com/wyfs02/M01/6F/DC/ Wkiom1wrc12yjtdiaacdipg8p1u834.jpg "alt=" Wkiom1wrc12yjtdiaacdipg8p1u834.jpg "/>

3. Go to the Disk Management tool

650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M01/6F/D8/ Wkiol1wrdt2ygot4aaau_ad71gw890.jpg "alt=" Wkiol1wrdt2ygot4aaau_ad71gw890.jpg "/>

4.P Viewing disk partitions

650) this.width=650; "style=" Float:none; "title=" 4.png "src=" http://s3.51cto.com/wyfs02/M02/6F/D8/ Wkiol1wrdt3ymnxzaad_1yo5faw870.jpg "alt=" Wkiol1wrdt3ymnxzaad_1yo5faw870.jpg "/>

5.N new, p primary partition

650) this.width=650; "style=" Float:none; "title=" 5.png "src=" http://s3.51cto.com/wyfs02/M01/6F/DC/ Wkiom1wrc16a3byeaad9z_6nyzu224.jpg "alt=" Wkiom1wrc16a3byeaad9z_6nyzu224.jpg "/>

6.E New Extended partition

650) this.width=650; "style=" Float:none; "title=" 6.png "src=" http://s3.51cto.com/wyfs02/M02/6F/DC/ Wkiom1wrc9jyyfhbaadotppnbrq890.jpg "alt=" Wkiom1wrc9jyyfhbaadotppnbrq890.jpg "/>

7.L New Logical partition

650) this.width=650; "style=" Float:none; "title=" 7.png "src=" http://s3.51cto.com/wyfs02/M02/6F/D8/ Wkiol1wrdbjgkyghaadqhiirezy499.jpg "alt=" Wkiol1wrdbjgkyghaadqhiirezy499.jpg "/>

8. Delete a partition

650) this.width=650; "style=" Float:none; "title=" 8.png "src=" http://s3.51cto.com/wyfs02/M00/6F/D8/wKioL1WrdbmS_ Vujaaatijuegnc024.jpg "alt=" Wkiol1wrdbms_vujaaatijuegnc024.jpg "/>

9. Save the partition configuration

650) this.width=650; "style=" Float:none; "title=" 9.png "src=" http://s3.51cto.com/wyfs02/M00/6F/DC/ Wkiom1wrc9mwmo0jaaadiezslh4273.jpg "alt=" Wkiom1wrc9mwmo0jaaadiezslh4273.jpg "/>

10. Logical Change partition format

650) this.width=650; "style=" Float:none; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M01/6F/D9/ Wkiol1wrdbnw8uqwaabw-0xfucg452.jpg "alt=" Wkiol1wrdbnw8uqwaabw-0xfucg452.jpg "/>

11. Permanently mount a disk partition

650) this.width=650; "style=" Float:none; "title=" 11.png "src=" http://s3.51cto.com/wyfs02/M02/6F/D9/ Wkiol1wrdjpidlrjaaayu5gf3iq138.jpg "alt=" Wkiol1wrdjpidlrjaaayu5gf3iq138.jpg "/>

650) this.width=650; "style=" Float:none; "title=" 12.png "src=" http://s3.51cto.com/wyfs02/M02/6F/DC/ Wkiom1wrdfoivyw1aadi4mvrnwq661.jpg "alt=" Wkiom1wrdfoivyw1aadi4mvrnwq661.jpg "/>

12. Formatting partitions

MKFS command can format ext 's,fat file system

Mkswap command to format swap partitions

Mkfs-t ext3/dev/sdb1(format a partition)

Mkfs-t vfat-f 32/dev/sdd6(formatted FAT32 file system)

MKSWAP/DEV/SDD5 (formatted swap partition)

LVM is a logical mechanism for the management of disk partition in Linux system, which is built on the hard disk and partition, a logical layer under the file system, which can dynamically adjust the disk capacity while keeping the original data unchanged.

/ Boot partitions cannot be created based on LVM and must be isolated

PV Physical Volume +VG Volume group +LV Logical Volume =LVM

PV: Physical volume is the most basic unit, usually corresponds to a piece of hard disk, or partition

1. View the physical volumes in the system

650) this.width=650; "style=" Float:none; "title=" 1.png "src=" http://s3.51cto.com/wyfs02/M01/6F/D9/ Wkiol1wremxa3zdpaabldhpgx6g773.jpg "alt=" Wkiol1wremxa3zdpaabldhpgx6g773.jpg "/>

2. Create a physical volume

650) this.width=650; "style=" Float:none; "title=" 2.png "src=" http://s3.51cto.com/wyfs02/M00/6F/D9/ Wkiol1wremba6rpcaabn_jwxbdu136.jpg "alt=" Wkiol1wremba6rpcaabn_jwxbdu136.jpg "/>

3. View the details of a physical volume

650) this.width=650; "style=" Float:none; "title=" 3.png "src=" http://s3.51cto.com/wyfs02/M00/6F/DC/ Wkiom1wrdubxj8ogaac9w8g8t94856.jpg "alt=" Wkiom1wrdubxj8ogaac9w8g8t94856.jpg "/>

4. Delete a physical volume

650) this.width=650; "style=" Float:none; "title=" 4.png "src=" http://s3.51cto.com/wyfs02/M01/6F/D9/ Wkiol1wremarzbbnaaa8hewv4ci325.jpg "alt=" Wkiol1wremarzbbnaaa8hewv4ci325.jpg "/>

VG: consisting ofone or more PV

1. View the volume groups in the system

650) this.width=650; "style=" Float:none; "title=" 5.png "src=" http://s3.51cto.com/wyfs02/M02/6F/D9/ Wkiol1wrer6iqdauaackugthoza002.jpg "alt=" Wkiol1wrer6iqdauaackugthoza002.jpg "/>

2. Create a volume group with the name Llh

650) this.width=650; "style=" Float:none; "title=" 6.png "src=" http://s3.51cto.com/wyfs02/M00/6F/D9/ Wkiol1wrer6gvyueaaa68yjrmz4370.jpg "alt=" Wkiol1wrer6gvyueaaa68yjrmz4370.jpg "/>

3. View the details of a volume group

650) this.width=650; "style=" Float:none; "title=" 7.png "src=" http://s3.51cto.com/wyfs02/M00/6F/DC/ Wkiom1wrdz-sib2saaedfmsndrq572.jpg "alt=" Wkiom1wrdz-sib2saaedfmsndrq572.jpg "/>

4. Delete a volume group

650) this.width=650; "style=" Float:none; "title=" 8.png "src=" http://s3.51cto.com/wyfs02/M01/6F/D9/wKioL1WreR_ Zss8naaa81vrmj10176.jpg "alt=" Wkiol1wrer_zss8naaa81vrmj10176.jpg "/>

5. Expand the/DEV/SDC physical volume to a single volume group

650) this.width=650; "title=" 9.png "src=" Http://s3.51cto.com/wyfs02/M00/6F/D9/wKioL1WreZGQcKhfAABD9bYjPy8914.jpg " alt= "Wkiol1wrezgqckhfaabd9byjpy8914.jpg"/>

LV: Built on the VG , not directly related to PV

1. View the logical volumes in the system

650) this.width=650; "style=" Float:none; "title=" 10.png "src=" http://s3.51cto.com/wyfs02/M00/6F/DC/ Wkiom1wrd-qj3wmmaabiu0izg1g387.jpg "alt=" Wkiom1wrd-qj3wmmaabiu0izg1g387.jpg "/>

2. Create a logical volume with a size of 10G named llh_1

650) this.width=650; "style=" Float:none; "title=" 11.png "src=" http://s3.51cto.com/wyfs02/M00/6F/D9/ Wkiol1wrecqryrrjaaa_yrrgeb4402.jpg "alt=" Wkiol1wrecqryrrjaaa_yrrgeb4402.jpg "/>

3. View the details of a logical volume

650) this.width=650; "style=" Float:none; "title=" 12.png "src=" Http://s3.51cto.com/wyfs02/M01/6F/D9/wKioL1WrecvAs_ 9paaeqkrv-xuo999.jpg "alt=" Wkiol1wrecvas_9paaeqkrv-xuo999.jpg "/>

4. Expand the remaining 5G size in the LLH volume group to the logical volume llh_1

650) this.width=650; "style=" Float:none; "title=" 13.png "src=" http://s3.51cto.com/wyfs02/M01/6F/DC/ Wkiom1wrd-uigzgvaabp8fy7okq050.jpg "alt=" Wkiom1wrd-uigzgvaabp8fy7okq050.jpg "/>

5. Delete a volume group

650) this.width=650; "style=" Float:none; "title=" 14.png "src=" http://s3.51cto.com/wyfs02/M00/6F/DC/ Wkiom1wrd-urdyntaabgdqxglae534.jpg "alt=" Wkiom1wrd-urdyntaabgdqxglae534.jpg "/>

The Debian system needs to be aware of installing a package first:

650) this.width=650; "title=" 15.png "src=" http://s3.51cto.com/wyfs02/M00/6F/DC/wKiom1WreKmxrc1AAAAm8qxYJIo881.jpg "alt=" Wkiom1wrekmxrc1aaaam8qxyjio881.jpg "/>

Linux Disk Management +LVM Logical Volume management

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.