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

简介: fdisk不能创建大于2T的分区,创建大分区得用parted,我在用parted创建分区时遇到下面的警告提示

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)
相关文章
|
编解码 算法 测试技术
[译]Page Multiplexing and Ordering in a Physical Ogg Stream
Ogg容器格式的设计和排列受几个高级设计决策支配,这些决策构成了特定的低级设计决策的依据。
91 0
Partition 1 does not start on physical sector boundary
Partition 1 does not start on physical sector boundary
921 0
Partition 1 does not start on physical sector boundary
|
SQL 关系型数据库
ORA-1652: unable to extend temp segment by 128 in tablespace xxx Troubleshootin
当收到告警信息ORA-01652: unable to extend temp segment by 128 in tablespace xxxx 时,如何Troubleshooting ORA-1652这样的问题呢? 当然一般xxx是临时表空间,也有可能是用户表空间。
2113 0