locked
Resizing an Azure drive RRS feed

  • Question

  • I currently have a Web role acting as an SMB server, we have run into the issue that the allocated Azure Drive is too small (as originally allocated) and need to resize it. Currently I have the role creating a new drive, copying the data from one drive to the other and then using the .CopyTo method on the azure drive to copy over the old drive (after both are unmounted).

     

    Can anybody think of any better way to do this?

    Tuesday, October 11, 2011 7:28 PM

Answers

  • Sadly that doesn't work, their is no feasible method we have found that will maintain both security and uptime at this time, the current work around is to create two SMB servers one with the new drive one with the old.. have the new one (in staging) copy from the old one (in production).

     

    Sadly this still means we have to reimage the rest of our roles as they lose connectivity as soon as you do a VIP swap to the new server.

    • Marked as answer by MGetz Friday, October 14, 2011 1:23 PM
    Friday, October 14, 2011 1:23 PM

All replies

  • You can resize an Azure drive (Page Blob) using REST API - Set Blob Properties (http://msdn.microsoft.com/en-us/library/ee691966.aspx). Take a look at the following blog post by Windows Azure Storage team regarding changing the size using Storage Client library: http://blogs.msdn.com/b/windowsazurestorage/archive/2010/04/11/using-windows-azure-page-blobs-and-how-to-efficiently-upload-and-download-page-blobs.aspx (go to the section titled: Advanced Functionality – Clearing Pages and Changing Page Blob Size)

    Hope this helps.

    Thanks

    Gaurav Mantri

    Cerebrata Software

    http://www.cerebrata.com

     

    Wednesday, October 12, 2011 3:03 AM
  • Taking a look at that post it seems like it should be possible, however in your own post http://stackoverflow.com/questions/5822070/how-do-i-increase-the-size-of-an-azure-clouddrive you mention that following the steps provided in that post will in fact render the VHD inoperable. Did you ever find a work around for this?
    Wednesday, October 12, 2011 1:57 PM
  • Hi,

    Simply resize the page blob will not work. A drive is actually a vhd file. You can’t resize a vhd file once it is created, even on desktop Windows. There’re some third party tools that can resize vhd files. So one workaround is to download the page blob to your local machine, resize it using third party tools, and upload it again. But if you take this approach, you’re taking your own risk.

     

    Best Regards,

    Ming Xu.


    Please mark the replies as answers if they help or unmark if not.
    If you have any feedback about my replies, please contact msdnmg@microsoft.com.
    Microsoft One Code Framework
    • Proposed as answer by Seetha_ Friday, October 14, 2011 11:03 AM
    • Unproposed as answer by MGetz Friday, October 14, 2011 1:20 PM
    Thursday, October 13, 2011 9:35 AM
  • Sadly that doesn't work, their is no feasible method we have found that will maintain both security and uptime at this time, the current work around is to create two SMB servers one with the new drive one with the old.. have the new one (in staging) copy from the old one (in production).

     

    Sadly this still means we have to reimage the rest of our roles as they lose connectivity as soon as you do a VIP swap to the new server.

    • Marked as answer by MGetz Friday, October 14, 2011 1:23 PM
    Friday, October 14, 2011 1:23 PM