Skip to content

problem adding storage to instance

0

I had my initial question answered here and managed to add the storage but have ran into further problems now and think because the question was answered my reply question isn't being seen. https://repost.aws/questions/QUa764xE6OQIK_AFG2xV24rQ#ANeH4lTHYQSSK9Cb3i_BWHjA

Basically I managed to add the storage as a seperate drive (D drive) and moved some files over to this drive, was all working well but now after restarting the instance the drive is unavailable (screen shot link here) https://gyazo.com/a39ac2bd460391189283d9665c5acdad

also going to attach a screenshot of what disk management is showing,https://gyazo.com/5caad7eac9447ab14b2ef08b0a191605 I've tried the process a few times now so i'm guessing I keep making new drives but for some reason they aren't staying attached after the instance is shut down? I don't have the option to extend volume on disk 0 (option greyed out) not really sure where to go from here!

asked 2 years ago230 views

2 Answers
1

It appears you're experiencing an issue with the persistence of your additional storage after restarting your EC2 instance. This is a common problem when working with EC2 instances and additional storage volumes. Here's what might be happening and how you can address it:

  1. Temporary vs. Persistent Storage: The additional drive you created might be using instance store storage rather than an Elastic Block Store (EBS) volume. Instance store volumes are temporary and do not persist after an instance is stopped or terminated.

  2. EBS Volume Attachment: If you did create an EBS volume, it's possible that it's not set to automatically attach to your instance on startup. You'll need to ensure that the volume is configured to attach automatically.

  3. Drive Letter Assignment: Windows doesn't always maintain drive letter assignments across restarts, especially for non-boot volumes.

To resolve this issue:

  1. Verify that you're using EBS volumes for your additional storage. These persist independently of the instance lifecycle.

  2. In the EC2 console, check your instance's details and ensure that all desired EBS volumes are attached and set to attach automatically on instance start.

  3. If the volumes are attached but not appearing in Windows:

    • Open Disk Management (as you've done)
    • Look for disks marked as "Offline"
    • Right-click on these disks and select "Online"
    • If necessary, assign a drive letter
  4. For future reference, you can use the EC2 User Data script to automatically mount volumes and assign drive letters on instance start.

  5. If you're repeatedly creating new volumes, be cautious as this can lead to unnecessary costs. Make sure to delete any unneeded volumes.

Remember, extending the boot volume (Disk 0) often requires the instance to be stopped first, which is why that option might be greyed out.

If you continue to have issues, you may need to review your EC2 instance's configuration in the AWS console to ensure all volumes are correctly attached and persisting across restarts.
Sources
adding storage to an instance | AWS re:Post

answered 2 years ago

EXPERT

reviewed 2 years ago

  • thanks for your reply, I can indeed confirm it is an EBS volume https://gyazo.com/8a481e6dc6b94096832e719eaf445c70 but it is saying that it is attached to the instance. The disks are showing as uninitialised upon startup but I can initialise them. they then show as online but unallocated https://gyazo.com/31fa54d297a07f95a0929cdacf46ad13 https://gyazo.com/61c606be865894fbe1751a9da37ee771 any ideas how to get the D drive that I previously created back? I transfered alot of stuff there so the instance is pretty useless now qithout it! Also will I now be incuring needless costs for these 4 unallocated disks? I can't seem to find an option to delete them. Finally how do I extend the disk 0 if the instance is stopped? I thought the way to do this was within disk management itself. thanks

0

The EBS volumes whether allocated or not will stay attached to the EC2. If you want to delete it, you can delete it from EC2 console or CLI. In EC2 console, choose the EC2, then storage and find the volume. Open the volume in a new tab, and detach from EC2 and then delete. You need to be careful on selecting the correct volume to delete as you have a number of these with same volume size.

Also, for Windows, the EBS volume need to be initialised - https://learn.microsoft.com/en-us/windows-server/storage/disk-management/initialize-new-disks

EXPERT

answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.