Recently bought a new server Dell R730
First we made a RAID 1 and RAID 5
Installing the system on RAID 1
After the system is installed, it is now partitioned, the actual size is 19T after the RAID 5 has been completed.
So we can not use the traditional Fdisk partition, here using parted to partition, our system is CentOS 7, file system type is set to be the XFS file system
Here to start the partition:
[Email protected] ~]# Parted/dev/sdb
GNU Parted 3.1
Using/dev/sdb
Welcome to GNU parted! Type ' help ' to view a list of commands.
(parted) p
Model:dell PERC h730p Mini (SCSI)
Disk/dev/sdb:20.0tb
Sector size (logical/physical): 512b/512b
Partition TABLE:GPT
Disk Flags:
Number Start End Size File system Name Flag
(parted) Help
Align-check type N check partition N for TYPE (min|opt) alignment
Help [COMMAND] Print general help, or help on COMMAND
Mklabel,mktable Label-type Create a new Disklabel (partition table)
Mkpart Part-type [Fs-type] START END make a partition
Name Number name name partition number as name
Print [devices|free|list,all| Number] Display the partition table, available devices, free space, all found partitions, or a particular partition
Quit Exit Program
Rescue start END Rescue a lost partition near START and end
RM Number Delete Partition number
Select Device Choose the DEVICE to edit
Disk_set flag State Change the FLAG on selected device
Disk_toggle [flag] toggle the state of flags on selected device
Set number flag state change the FLAG on partition number
Toggle [Number [FLAG]] toggle the state of FLAG on partition number
Unit unit Set the default unit to unit
Version display the version number and copyright information of the GNU Parted
(parted) Print free
Model:dell PERC h730p Mini (SCSI)
Disk/dev/sdb:20.0tb
Sector size (logical/physical): 512b/512b
Partition TABLE:GPT
Disk Flags:
Number Start End Size File system Name Flag
17.4kB 20.0TB 20.0TB Free Space
(parted) parted
Align-check type N check partition N for TYPE (min|opt) alignment
Help [COMMAND] Print general help, or help on COMMAND
Mklabel,mktable Label-type Create a new Disklabel (partition table)
Mkpart Part-type [Fs-type] START END make a partition
Name Number name name partition number as name
Print [devices|free|list,all| Number] Display the partition table, available devices, free space, all found partitions, or a particular partition
Quit Exit Program
Rescue start END Rescue a lost partition near START and end
RM Number Delete Partition number
Select Device Choose the DEVICE to edit
Disk_set flag State Change the FLAG on selected device
Disk_toggle [flag] toggle the state of flags on selected device
Set number flag state change the FLAG on partition number
Toggle [Number [FLAG]] toggle the state of FLAG on partition number
Unit unit Set the default unit to unit
Version display the version number and copyright information of the GNU Parted
(parted) MKPART/DEV/SDB1
File system type? [Ext2]? Xfs
Starting point? 0
End point? 5120GB
Warning: The resulting partition is not a properly aligned for best performance.
Ignore/ignore/abandon/cancel? Ignore
(parted) MKPART/DEV/SDB2
File system type? [Ext2]? Xfs
Starting point? 5120GB
End point? 10240GB
(parted) MKPART/DEV/SDB3
File system type? [Ext2]? Xfs
Starting point? 10240GB
End point? 15360GB
(parted) Print free
Model:dell PERC h730p Mini (SCSI)
Disk/dev/sdb:20.0tb
Sector size (logical/physical): 512b/512b
Partition TABLE:GPT
Disk Flags:
Number Start End Size File system Name Flag
1 17.4kB 5120GB 5120GB/DEV/SDB1
5120GB 5120GB 524kB Free Space
2 5120GB 10.2TB 5120GB/DEV/SDB2
3 10.2TB 15.4TB 5120GB/DEV/SDB3
15.4TB 20.0TB 4641GB Free Space
(parted) MKPART/DEV/SDB4
File system type? [Ext2]? Xfs
Starting point? 15360GB
End point? 20001GB
(parted) Q
After finding the data found that the EXT4 format does not support more than 16T disk partitioning, there is no way to use only XFS format. The partition is now complete. Now we need to format the disk.
Mkfs.xfs/dev/sdb1
Mkfs.xfs/dev/sdb2
Mkfs.xfs/dev/sdb3
Mkfs.xfs/dev/sdb4
Start creating a logical volume now
Pvcreate
Vgcreate Vgdata
Lvcreate Lvdata
Mkfs.xfs .../vgdata-lvdata
Now it's hanging on the partition. Mkdir/ftproot
Mount/dev/mapper/vgdata-lvdata/ftproot
Vim/etc/fstab
/dev/mapper/vgdata-lvdata/ftproot XFS Defaults 0 0
The parameters for the/etc/fstab column below mean: http://blog.csdn.net/duyiwuer2009/article/details/8644753
Article reference:
Http://blog.sina.com.cn/s/blog_406127500102uyr9.html
http://www.tuicool.com/articles/u63e6f
Http://blog.chinaunix.net/uid-26413552-id-3379232.html
CentOS 20T HDD (over 16T) partition