- Installation,Storage,and Compute with Windows Server 2016:Microsoft 70-740 MCSA Exam Guide
- Sasha Kranjac Vladimir Stefanovic
- 479字
- 2021-08-20 10:03:47
Configuring sector sizes
In a computer storage system, the allocation unit or a cluster is a unit of disk space allocated to files. An allocation unit is the smallest unit, or disk space, that an operating system can assign to store the data, that is, a file. Allocation unit sizes vary, depending on the chosen filesystem. This diagram shows the physical structure of a disk system, illustrating the differences between DISK SECTOR, TRACK SECTOR, CLUSTER OR ALLOCATION UNIT, and TRACK:

NTFS supports several allocation unit sizes, while ReFS has fewer choices, as shown here:

For example, if you store a 20-kilobyte file on a disk formatted with 16-kilobyte allocation units, the operating system allocates two allocation units for storing the file, or 32 kilobytes in total. That means the 20-kilobyte file uses 32 kilobytes of disk space. The difference, 12 kilobytes, is called slack space. The default NTFS allocation unit size is 4,096 bytes, although you can choose between 512 and 64 kilobyte sizes.
Depending on the sector size and on the typical file sizes you store on a volume, the slack space varies. For example, if you store mostly large files on a volume formatted with a smaller size sector, the slack space is smaller. On the other hand, if you store mostly small files on a volume formatted with a large sector size, expect to have a much larger slack space.
To convert a VHD into a new format, use this PowerShell command:
Convert-VHD –Path E:\vms\testvhd\test.vhd –DestinationPath E:\vms\testvhd\test-converted.vhd
To check whether the VHD is aligned, type the following PowerShell command:
Get-VHD –Path E:\vms\testvhd\test.vhd
Non-aligned VHDs will return the Alignment property as 0 (zero), while aligned VHDs will return the Alignment property as 1 (one).
VHD files use 512-byte logical sector sizes, while VHDX files use 4,096-byte logical sector sizes. Thus, choosing a default 4,096-byte disk sector size aligns perfectly with a VHDX logical sector size, avoiding any negative impact on the performance. Other major difference between the VHD and VHDX files is that the VHD maximum size is 2 TB, does not provide data protection, can't be resized live, and supports vendors other than Microsoft. On the other hand, VHDX files have a maximum size of 64 TB, provide data protection, can be resized live, handle snapshots better, and are only supported by Microsoft.
- Dreamweaver CS3 Ajax網頁設計入門與實例詳解
- 輕松學Java Web開發
- 微型計算機控制技術
- 機器自動化控制器原理與應用
- Hands-On Linux for Architects
- 新手學電腦快速入門
- 大數據技術與應用
- Storm應用實踐:實時事務處理之策略
- Practical Big Data Analytics
- 走近大數據
- Hands-On Dashboard Development with QlikView
- Linux系統下C程序開發詳解
- Machine Learning with Spark(Second Edition)
- 西門子S7-1200/1500 PLC從入門到精通
- Serverless Design Patterns and Best Practices