Git Product home page Git Product logo

windowsazurediskresizer's Introduction

WindowsAzureDiskResizer

Resizes a Windows Azure virtual disk directly in blob storage.

See http://blog.maartenballiauw.be/post/2013/01/07/Tales-from-the-trenches-resizing-a-Windows-Azure-virtual-disk-the-smooth-way.aspx for more info.

Binaries: http://blog.maartenballiauw.be/file.axd?file=2013%2f1%2fWindowsAzureDiskResizer-1.0.0.0.zip

Growing disks

The following steps should be taken for growing a disk:

  • Shutdown the VM
  • Delete the VM -or- detach the disk if it’s not the OS disk
  • In the Windows Azure portal, delete the disk (retain the data!) do that the lease Windows Azure has on it is removed
  • Run WindowsAzureDiskResizer with the correct parameters
  • In the Windows Azure portal, recreate the disk based on the existing blob
  • Recreate the VM -or- reattach the disk if it’s not the OS disk
  • Start the VM
  • Use diskpart / disk management to resize the partition

Shrinking disks

Note that shrinking a disk is a potentially dangerous operation and is currently unsupported by the tool. If this is required, the following may work, use at your own risk.

  • Modify Program.cs and remove the "if (footerInstance.CurrentSize >= newSize)" check

  • Use diskpart / disk management to resize the partition to a size smaller than the current

  • Shutdown the VM

  • Delete the VM -or- detach the disk if it’s not the OS disk

  • In the Windows Azure portal, delete the disk (retain the data!) do that the lease Windows Azure has on it is removed

  • Run WindowsAzureDiskResizer with the correct parameters

  • In the Windows Azure portal, recreate the disk based on the existing blob

  • Recreate the VM -or- reattach the disk if it’s not the OS disk

  • Start the VM

Disclaimer

Even though I have tested this on a couple of data disks without any problems, you are using the provided code and/or binaries at your own risk! I’m not responsible if something breaks! The provided code is as-is without warranty!

windowsazurediskresizer's People

Contributors

maartenba avatar t2kx avatar

Watchers

Nguyen Khac Trieu avatar James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.