How to decrease my AMI size in AWS Cloud

0 votes
HI,

I have one custom AMI which is 50 GB. But we don't much space. How to decrease this AMI size ? Is possible? Else How to decrease a Windows EBS volume size? In modify volume, we can only increase.
Dec 10, 2020 in AWS by Lakshminarayanan
• 1,370 points
2,741 views

1 answer to this question.

0 votes

Hi@Lakshminarayanan,

You can't decrease the volume size directly. But you can do this by creating a new volume. You can follow the below steps.

  1. Snapshot the volume.

  2. Create a new smaller EBS volume.

  3. Attach the new volume.

  4. Format the new volume.

  5. Mount the new volume.

  6. Copy data from the old volume to the new volume.

  7. Prepare the new volume.

  8. Detach and unmount the old volume.

Hope this helps!
Check out the AWS certification program and learn from the industry expert.
answered Dec 10, 2020 by MD
• 95,460 points
Hi,

Is possible to copy complete OS to mounted volume? Because i have installed some Applications and used Group policy and so on. So is possible to copy complete data with OS to newly mounted volume?

Hi,

Try to unmount your default partition. It may crash your instance. So don't try with your original one where you have your running application. Try with a new instance.

Hi,

I have golden AMI. Just I started instance from that AMI. Now I'm going to try copy data from C: to the newly created volume by using the below command.

>xcopy /s C:\*.* D:\

After copied data from C:\ to D:\

One message appeared like "sharing violation"
What's the issue?

Hi,

Did you create any partition in the D drive?
Hi,

Yes i have done below things after adding newly created volume.

1. Make it Online

2. Intialize the Disk

3. Create new volume as D
Ok create one folder and mount the folder in the newly created partition. And then copy the data files.

Related Questions In AWS

0 votes
1 answer

How to have a server 2012 in cloud and my users in different location

You will access the server the same ...READ MORE

answered Sep 25, 2018 in AWS by Priyaj
• 58,020 points
871 views
+3 votes
1 answer

How to download aws sdk in my eclipse?

To use AWS SDK simply follow the ...READ MORE

answered Dec 11, 2018 in AWS by Priyaj
• 58,020 points
4,574 views
0 votes
1 answer
0 votes
1 answer
+1 vote
1 answer

How to copy AMI from one region to another region in AWS?

Hi@akhtar, To copy your AMI from one region ...READ MORE

answered Jun 7, 2020 in AWS by MD
• 95,460 points
5,704 views
0 votes
1 answer

how to get the list of aws services i am used in aws my account by using the lambda function

Hi@shalk, You can create a session in your ...READ MORE

answered Sep 24, 2020 in AWS by MD
• 95,460 points
2,456 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP