Centos6 for large-capacity hard drive (more than 2 TB) division and use

Source: Internet
Author: User
Tags dell r710
Company A new dellr710 database, 6 500 GB, 7.2k SAS hard disk, made into RAID5. because of the MBR partition size limit of 2.1 TB, so use the GPT partition format. 1. after installing the system for the first time, convert the MBR partition to the GPT partition yuminstallparted-yparted/dev/sdamkl...

 

Company a new dell r710 database, 6 500 GB, k sas hard drive, made into RAID5.

 

Because the MBR partition size is limited to 2.1 TB, the GPT partition format is used.

 

1. after installing the system for the first time, convert the MBR partition to the GPT partition.

 

Yum install parted-y

 

Parted/dev/sda

 

Mklabel gpt

 

Mkpart primary 0 1000

 

Mkpart primary 1000 5000

 

Mkpart primary 5000 200000

 

Mkpart primary 200000 2500000

 

Print

 

Quit

 

2. restart the server after the GPT partition is complete. because all data after the partition is deleted, it must be installed in centos6.

 

During the installation process, the custom partition displays four unknown partitions (that is, our GPT partition ).

 

Here we format the first three partitions,/boot,/swap,/, and use ext4. After installing the system for the last partition, try again.

 

3. after the system is installed:

 

Yum install kmod-xfs xfsprogs

 

Modprobe xfs // load the xfs file system module. if not, restart the server.

Lsmod | grep xfs // check whether the xfs module is loaded

Mkdir/data

 

Mkfs. xfs-f/dev/sda4

Mount-t xfs/dev/sda4/data // mount the partition to the Directory

 

Df-Th

 

Finally, add/etc/fstab for automatic mounting.

 

Vi/etc/fstab

 

/Dev/sda4/data xfs defaults 0 0

 

 

This article is from the "SOS" blog

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.