A high-performance, durable block storage designed to be used with Azure Virtual Machines and Azure VMware Solution.
Hi @Michał Czajkowski,
Adding additional information to the above:
The physical sector size of the disk is 4096 bytes, it determines the minimum block size that can be set. You cannot set a block size smaller than the physical sector size.
Workarounds:
1.Use the Default Block Size: Since the physical sector size is 4096 bytes, you can create the filesystem with the default block size. This will ensure optimal performance and compatibility.
To format the disk with a smaller allocation unit size using the mkfs command:
sudo mkfs -t ext4 -b 4096 -T small /dev/sdd
2. Use a File System Efficient for Small Files: Using a file system like NTFS or ReFS on Windows, which are efficient for handling small files.
3.Use Btrfs Filesystem (with Compression): Btrfs is a filesystem that supports compression and is optimized for storing a large number of small files. It can manage various block sizes effectively, and its compression features enhance the efficient storage of small files.
sudo mkfs.btrfs -d single -O compress=zlib /dev/sdd
4. Use XFS with Larger Inodes: While XFS may already be a better choice than EXT4 for small file storage, you can further optimize it by configuring it with larger inodes.This improves the handling of metadata, which is useful when dealing with small files.
You can use the -i flag to adjust the inode size during formatting:
sudo mkfs.xfs -i size=512 /dev/sdd
5. Utilize Azure Blob Storage: If your workload primarily consists of small files, consider using Azure Blob Storage instead of Azure disks. Blob Storage is optimized for storing large amounts of unstructured data, including small files.
Please let us know if you have any further queries. I’m happy to assist you further.
Please consider to “up-vote” and "accept the answer" wherever the information provided helps you, this can be beneficial to other community members.