Solution: A centos disk cannot be attached larger than 2 TB

Source: Internet
Author: User

Solution: A centos disk cannot be attached larger than 2 TB

The disk partition format MBR limits the size of a single disk to 2 TB. If you want to mount a disk larger than 2 TB, You need to replace it with another format, such as GPT.

Because it helps customers build a cloud platform using OnApp and store 6 TB for testing, they need to mount these 6 TB disks in other formats. On Linux (My CentOS5.9 x86_64), I will share the following methods to mount a 6 TB Dell MD3600f hardware storage:

[Root @ demo ~] # Parted/dev/sdb # Use parted to operate on the GPT disk and enter Interactive Mode


GNU Parted 1.8.1
Using/dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of commands.
(Parted) mklabel gpt # format the MBR disk as GPT
Warning: The existing disk label on/dev/sdb will be destroyed and all data on this disk will be lost. Do you want to continue?
Parted: invalid token: gpt
Yes/No? Yes
New disk label type? [Gpt]? Press Enter
(Parted) print

Model: DELL MD36xxf (scsi)
Disk/dev/sdb: 6000 GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags

(Parted) mkpart primary 0-1 # divide the entire disk space into one partition
(Parted) print

Model: DELL MD36xxf (scsi)
Disk/dev/sdb: 6000 GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 6000 GB 6000 GB primary

(Parted) quit
Information: Don't forget to update/etc/fstab, if necessary

The hardware storage has been mapped to the Hypervisor server, so you do not need to edit/etc/fstab any more. Now we have mounted 6 TB disks on CentOS.

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.