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