parted によって Warning: The resulting partition is not properly aligned for best performance. メッセージが発生する
Issue
-
parted
ユーティリティを使用してパーティションを作成すると、新しいパーティションのアラインメントが適切に行われず、パフォーマンスが悪くなる可能性があることを示すメッセージが表示されます。(parted) mkpart primary 128 1048575 Warning:You requested a partition from 128s to 1048575s. The closest location we can manage is 128s to 1048542s. Is this still acceptable to you? Yes/No?Yes Warning:The resulting partition is not properly aligned for best performance. <----- Ignore/Cancel?C
-
このメッセージはなぜ出力されますか? 出力されないようにするにはどうすれば良いですか?
-
パーティションにアラインメントを行うにはどうすれば良いですか? Dell ストレージシステム Compellant からの LUN があります。
fdisk /dev/mapper/mpatha
を実行すると以下のメッセージが表示されます。[root@localhost ~]# fdisk /dev/mapper/mpatha The device presents a logical sector size that is smaller than the physical sector size.Aligning to a physical sector (or optimal I/O) size boundary is recommended, or performance may be impacted. WARNING:DOS-compatible mode is deprecated.It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u'). Command (m for help):
-
アラインメントができるようにパーティションを作成するにはどうすれば良いですか? これは、RAW の Lun で、 Oracle ASM の Voting LUN として使用されます。
Environment
- Red Hat Enterprise Linux 6 (RHEL 6)
- Red Hat Enterprise Linux 7 (RHEL 7)
- Parted
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.