fdisk partition of the essence:
Fdisk partition with the substance, is to modify the partition table 64 bytes after the previous head 446 bytes 0 0 track 1 sector.
Problem: You can use fdisk disk partition size must be less than 2T, if it is greater than 2T, partition to use parted (gpt)
Two partitioning tool introduced:
A, fdisk partition tool introduced:
Two, parted partition description:
Description: parted is a disk partition management tool, it is more flexible than fdisk, functional and more abundant, and also supports GUID Partition Table.
This is useful when managing disks on the IA64 platform, it supports both interactive and non-interactive mode. In addition it can perform common operations partition add, delete, etc., but also can move partitions, making the file system resize the file system, copy the file system.
Demand: RAID5 size 6T, the system has been installed, additionally added 2T plate 4, a conventional hard disk RAID5 made to three areas,
Total hard disk partition size: 6.2T
/ Data0 4.8T
/data1 1T
4G (no need to format, do DRBD + Hearbeat + Mysql High Availability Cluster)
parted / dev / sdb mklabel gpt --------- modify the partition as gpt
parted / dev / sdb mkpart primary 0 4800000 ------- create a primary partition 4.8T
parted / dev / sdb mkpart primary 4800001 5800001 ---- 1T create a primary partition
parted / dev / sdb mkpart primary 5800002 5804098 ----- create a primary partition 4G
parted /dev/sdb p
Walkthrough:
A key Subdivision:
The Command (m for Help): L ---- See partition type