Skip to content

Increase the max size of vhd to 4TB. #4053

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 1, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/ResourceManager/Compute/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
-->
## Current Release
* Updated Set-AzureRmVMAEMExtension: Add caching information for Premium managed disks
* Add-AzureRmVhd: The size limit on vhd is increased to 4TB.

## Version 3.0.0
* Updated Set-AzureRmVMAEMExtension and Test-AzureRmVMAEMExtension cmdlets to support Premium managed disks
Expand Down
6 changes: 3 additions & 3 deletions src/ServiceManagement/Compute/Sync/Upload/BlobCreatorBase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ public interface ICloudPageBlobObjectFactory

public abstract class BlobCreatorBase
{
private const long OneTeraByte = 1024L * 1024L * 1024L * 1024L;
private const long FourTeraByte = 4 * 1024L * 1024L * 1024L * 1024L;

protected FileInfo localVhd;
protected readonly ICloudPageBlobObjectFactory blobObjectFactory;
Expand Down Expand Up @@ -96,10 +96,10 @@ private static void AssertIfValidVhdSize(FileInfo fileInfo)
{
using (var stream = new VirtualDiskStream(fileInfo.FullName))
{
if (stream.Length > OneTeraByte)
if (stream.Length > FourTeraByte)
{
var lengthString = stream.Length.ToString("N0", CultureInfo.CurrentCulture);
var expectedLengthString = OneTeraByte.ToString("N0", CultureInfo.CurrentCulture);
var expectedLengthString = FourTeraByte.ToString("N0", CultureInfo.CurrentCulture);
string message = String.Format("VHD size is too large ('{0}'), maximum allowed size is '{1}'.", lengthString, expectedLengthString);
throw new InvalidOperationException(message);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
-->
## Current Release

* Add-AzureVhd: The size limit on vhd is increased to 4TB.

## Version 4.0.0

## Version 3.8.0
Expand Down