Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I have a Windows Server 2008 instance on EC2. I need to shrink one of the drives (non-root) to a certain amount. Is there are well defined way of doing it?

Thanks

share|improve this question

1 Answer 1

There is a tutorial for Linux boxes described here, but while it may not apply directly, the concept is the same. You'll need to:

  1. Create a snapshot of the current EBS volume.
  2. Unount the EBS volume from the host.
  3. Create a new volume of the specified size using the previous snapshot from the first step.
  4. Remount the EBS volume.

So in essence, you're not resizing anything--you're creating a new EBS volume and transferring the content over using Amazon's built in snapshot system. Hope this helps!

share|improve this answer
    
Thanks, but there is one more thing. Current volume is 800GB, now I need only 400GB, and there is 380GB of space which I used up in the 800GB drive. If I by mistake allocate 370 GB (create a volume from the snapshot), will I get an error?, which I should logically thinking. Or should I allocate a new 400GB drive, attach it to the instance, copy the contents from 800GB to 400GB drive and remove the 800GB drive. Is this a good way of doing it? –  Wajih Jan 2 '11 at 17:18
    
The latter would be the safest. –  Andrew M. Jan 2 '11 at 19:36
    
Didn't help: Volume size 12GiB must be at least snapshot size 30GiB. –  user68324 Jan 26 '11 at 15:56
1  
These steps are for increasing the volume size not the other way around! You will get the error: "The size must be at least as big as the snapshot" –  Maziyar Dec 4 '13 at 6:27

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.