question

PUnleashed-7549 avatar image
0 Votes"
PUnleashed-7549 asked PUnleashed-7549 commented

Sector alignment for running Ubuntu VMs on Hyper-V

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
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

IanXue-MSFT avatar image
0 Votes"
IanXue-MSFT answered PUnleashed-7549 commented

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.



image.png (49.4 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Thanks for replying Ian,

That solves a part of the question. But still looking for answer for how to verify if:

Ubuntu OS has created correctly aligned partitions inside VM during installation

0 Votes 0 ·