[RHEL 6] parted reports "Warning: The resulting partition is not properly aligned for best performance."

 

문제

  • While creating a partition using parted utility, it reports that new partition is misaligned and this may result in very poor performance:

  • What is the reason for above warning messages? how to eliminate it?

환경

  • Red Hat Enterprise Linux 6
  • Parted

해결

  • When creating the partition using parted utility, please select the start sector value for partition that satisfies one of the following three conditions in algorithm used to determine optimal alignment for the partition:

  • For example, when optimal io size is not present in topology information, alignment offset is 0 and minimum io size is a power of 2, please select the start sector value for a partition such that it is greater than or equal to 2048 (4k), if start sector value is greater then 2048, then please make sure that it is exactly divisible by 2048:

OR

Get the values as below:

Now to get the right first sector add optimal_io_size to alignment_offset and then divide the result by physical_block_size.

For example:

Now do:

See How to create a partition with parted for details on creating partition with parted.

근본 원인

  • parted uses the following algorithm to determine optimal alignment for newly created partition, if none of the following conditions viz. 2a, 2b or 2c are satisfied, then warning message "The resulting partition is not properly aligned for best performance." would be displayed by parted utility.

 

포스팅 글도 참조 하면 도움이 된다.

aligned for best performance – parted

댓글 남기기

이메일은 공개되지 않습니다. 필수 입력창은 * 로 표시되어 있습니다