fdisk不能创建大于2T的分区,创建大分区得用parted,我在用parted创建分区时遇到下面的警告提示:
# parted /dev/sdb (parted) mkpart primary 0 100% Warning: The resulting partition is not properly aligned for best performance. Ignore/Cancel
上网搜索的结论是分区起始的扇区成是把optimal_io_size的值与alignment_offset的值相加,之后除以physical_block_size的值。
[root@db_taibao oracle]# cat /sys/block/sdb/queue/optimal_io_size 0 [root@db_taibao oracle]# cat /sys/block/sdb/queue/minimum_io_size 4096 [root@db_taibao oracle]# cat /sys/block/sdb/alignment_offset 0 [root@db_taibao oracle]# cat /sys/block/sdb/queue/physical_block_size 4096
采用下面的值创建成功
(parted) mkpart primary 4096s 100% (parted)