使用parted创建大分区时 mkpart Warning: The resulting partition is not properly aligned for best performance.

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)
姚远ACE CSDN认证博客专家 ACE 华为云 MVP
Oracle ACE,华为云 MVP,Oracle10g,12c OCM; MySQL 5.6,5.7,8.0 OCP;CCNA; EMC Certified; IBM P Certified; RHCE; SQLServer 764; DB2 Certified; TOEIC 890;获得过两次国家部级科技进步奖;发明过两项计算机专利。微信:yaoyuanace 邮箱:yaoyuanace(at)qq.com
已标记关键词 清除标记
相关推荐
©️2020 CSDN 皮肤主题: Age of Ai 设计师:meimeiellie 返回首页