Linux LVM Extended Disk partition

Source: Internet
Author: User
Tags hex code

System: CentOS 6.3

--New partition

Fdisk-l/DEV/SDC # Viewing partitions

FDISK/DEV/SDC # Creating partitions

: N # New Partition

: P # Create primary partition

: 1 # Specify the partition number

: Enter # Start (default is not filled)

: +150g # End (set the partition size to 150G, the rest of the space is all divided directly enter)

Command (M for help): t # change partition type

Partition number (1-4): 1 # Specify partition numbers

Hex code (type L to list codes): 8e # LVM format

: P # View Partition

: W # Write information to disk


Partx-a/DEV/SDC1/DEV/SDC

PARTX/DEV/SDC # View the partition table and usage of the current hard disk


--LVM Extended Partition

PVCREATE/DEV/SDC1 # Add PV


Vgextend SYSVG/DEV/SDC1 # Add/DEV/SDC1 to group Sysvg


Lvextend-l +150g/dev/sysvg/var.vol # Extended 150G partition to Var.vol

or Lvextend-l +100%free/dev/sysvg/var.vol # to extend the remaining partitions to Var.vol


Resize2fs/dev/sysvg/var.vol # Sync (it takes a little time)

Before formatting the partition forget
The extended partitioning process is as follows:

Linux LVM Extended Disk partition

Related Article

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.