Sector alignment for running Ubuntu VMs on Hyper-V

PUnleashed 1 Reputation point
2022-04-18T07:16:42.093+00:00

Hello,

We've purchased a new Dell server with 4 * 1.2TB Hard Drive SAS ISE 12Gbps 10k 512n configured in RAID 5.

This server will primarily run Ubuntu VMs (around 14) and these VMs will run MySQL databases. The host will run Windows Server 2019 Standard Edition.

I found a lot of literature saying that Partition boundaries, Sector boundaries and VHDX files should be all be aligned in order to have optimum performance.

Questions:

  1. Is this alignment need still relevant? Is it automatically handled by Windows?
  2. If this criteria applicable to the server configuration that I have, how do I ensure that:
    a. The partition was created with correct alignment
    b. VHDX file is correctly aligned to Sector Boundaries
    c. Ubuntu OS has created correctly aligned partitions inside VM during installation

Thank You!

Windows Server Storage
Windows Server Storage
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.Storage: The hardware and software system used to retain data for subsequent retrieval.
643 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Ian Xue (Shanghai Wicresoft Co., Ltd.) 34,271 Reputation points Microsoft Vendor
    2022-04-25T08:02:39.793+00:00

    Hi,

    The partitions are automatically aligned on Windows Server 2019 so you don't have to do that manually.

    To make sure the partitions are aligned, please run msinfo32 and click Components - Storage - Disks. If the Partition Starting Offset is divisible by 4096 then the partition is aligned.

    196012-image.png

    Best Regards,
    Ian Xue

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.