刚开始使用fdisk 进行添加磁盘,添加了半天都加不上去,后来发现fdisk只能处理2T以下的磁盘,大于2T以上的磁盘需要使用parted进行分区。
There are two common problems when creating partitions in Linux on big storage arrays. The first is easy, and the warning message from fdisk is a bit of a giveaway:
WARNING: The size of this disk is 8.0 TB (7970004230144bytes).
DOS partition table format can not be used ondrivesforvolumes
larger than (2199023255040bytes) for512-byte sectors. Use parted(1) and GUID
partition table format (GPT).
The answer: use parted. Don’t have it?
Install it!The second problem is this warning from parted:
(parted) mklabel gpt
(parted) mkpart primary 0100%
Warning: The resulting partition isnot properly aligned for best performance.
Ignore/Cancel?
… and no matter what combination of numbers you use,