A summary of the methods used to transfer GPT partitions to MBR partitions in Linux

Source: Internet
Author: User

Today, a co-worker has a problem with three 1T disks (SDB, SDC, SDD) added to several of the hosts he owns, but the new three partitions are added directly to a section using GPT partitioning. Because the previous MBR boot was used, and the LVM partition was mounted separately on several mount points. Colleagues now want to convert the new three partitions to MBR, to the PV volume, to the original LVM partition (the PV volume on the SDA disk), and to dynamically increase the size of the/data mount point.

Here is a record of the methods available for conversion to colleagues:

Method One: Parted tool conversion

Parted-s/DEV/SDA Mklabel Msdos

Method Two: DiskPart conversion

Enter DiskPart, enter list disk to view the information on the disks, enter select Disk 0 Select disks, enter clean empty disk partitions, and enter the Convert MBR transformation partition table format.

Here are some common methods for the convert command:

Convert basic-Convert secondary disk from dynamic to basic
Convert dynamic-Converts a disk from basic to dynamic
Convert GPT-converts a disk from MBR to GPT
Convert MBR-Converts a disk from GPT to MBR
The misunderstanding of MBR and LVM

The MBR has a single disk size limit of no more than 2.2T, colleagues in the above example want to increase the original size of 1T/data to 4 T, if it is a pure MBR partition, it is certainly not, but the combination of multiple MBR disks created under the LVM LV mount partition is this limitation?

The answer is no, the increase to 4T can be successful. What is the maximum capacity of the LVM logical volumes that can be referred to Novell Web site?

This article contains the following paragraph:

For the LVM volumes created by LVM2, the capacity size depends on the kernel limit (and, of course, your disk space).

For LVM volumes created by LVM1, the maximum possible capacity of the LVM logical volume depends on the extended size used. The calculation formula is:
65534 * Extended size = maximum Logical volume size
The SUSE linux default extension size is 4MB.

Therefore, the default logical volume maximum value is 4MB * 65534 = 256 GB.
The extended size may take a value range of 8KB to 16GB, in binary meter. If you set the maximum expansion size, then the maximum volume is approximately 1PB:
65534 * 16GB = 1,048,544 GB

Note: The file system you are using needs to support your logical volume size. The SLEs default file system is ReiserFS, which supports 16TB space in the maximum.
If you intend to extend a logical volume that already exists, use the "vgdisplay" command to view the extended size used

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.