EBS Disk is full

0

We are almost running out of 16 TiB space on a EBS disk. The application can only mount to a single mount. For example: lets call it as app We don't want to change the instance type. I was wondering if you could suggest how we can solve this?

Would it be ideal to add another EBS disk, move some of the old data to the new disk and then make symlinks on the old EBS volume to the moved data on the new EBS volume?

Thanks

profile picture
Sri
已提問 2 年前檢視次數 656 次
3 個答案
1
已接受的答案

I'm assuming that the application can only deal with one directory instead of one mount. Something like:

/data - 16TB Volume

Where something like this would not work:

/data - 16TB Volume
/data2 - 16TB Volume

How about mounting the volumes in this manner:

/data/current - 16TB Volume
/data/old - 16TB Volume

You could also look at using Amazon EFS.

profile pictureAWS
專家
kentrad
已回答 2 年前
  • Thank you. Our application can't cater /data/current and /data/old. The data is stored under /data/yyyy/mm and we can't mount 2 mount points as we need a single mount point EFS would cause performance issues, So EBS would be the correct choice.

  • But the application does not mount the volumes, it is only dealing with paths into the file system, right? So, you could have each /data/yyyy mounted with a different volume. The application traversing the directory would be unaware that these are multiple volumes. It would be pretty easy to test.

  • Yes, I agree. the application can't cater for different paths such as /data/current and /data/old. Let's say it uses the path like /app/data/yyyy/mm we usually create sym links under /app to point to a diff path

  • Using sym links should work, but I'm not sure what additional benefit it gets you. You still have to mount the additional volumes. /app/data/2022 is the mount point for a 16TB volume. /app/data/2021 is the mount point for another 16TB volume. And so on.

  • Thank you very much for all your help.

1

You can modify your volume and increase the size of your EBS Volume for details on how to do it see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/requesting-ebs-volume-modifications.html Once the Volume is increased you can extend the File System after the volume has been resized, for details on how to resize the File System see https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/recognize-expanded-volume-linux.html

AWS
Nuno_Q
已回答 2 年前
  • I agree but we have hit the max limit on a single EBS volume of 16TB, hence I would like to ask if we should create another volume. move some old data to the new volume and then sym link

  • Thank you Nuno

1

You can also attach multiple volumes and RAID them together: https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/raid-config.html

profile pictureAWS
已回答 2 年前
  • Thank you Rodney

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南