AWS is eating up storage spaceUsing all space on Amazon EC2 - Medium tierAWS instances: AMI bundles and snapshots and bears, oh myEC2 Ubuntu 12.04 m1.large ami isn't showing extra drives for full 850GB Instance Storagedisk space keeps filling up on EC2 instance with no apperent files/directoriesHow to add my newly created Ec2 filesystem to /etc/fstab so that it get mounted automatically on next bootAdding EBS volume to Amazon EC2 server. Do I need to?How to reduce AWS EBS root volume size?AWS fails to resize an RHEL64 instance upon launchEC2 Dashboard says instnce running but DevOps says ec2 instance is stopping/restartingmkfs fails on ec2 t3.large instances

Preserving culinary oils

Geometry affects line breaking

How to detach yourself from a character you're going to kill?

What caused the tendency for conservatives to not support climate change regulations?

Can a rogue effectively triple their speed by combining Dash and Ready?

Do creatures all have the same statistics upon being reanimated via the Animate Dead spell?

Could I be denied entry into Ireland due to medical and police situations during a previous UK visit?

What is the difference between nullifying your vote and not going to vote at all?

What does it mean when you think without speaking?

How can a single Member of the House block a Congressional bill?

Possible nonclassical ion from a bicyclic system

Why does the UK have more political parties than the US?

Intuition behind eigenvalues of an adjacency matrix

What was this black-and-white film set in the Arctic or Antarctic where the monster/alien gets fried in the end?

Looking after a wayward brother in mother's will

Rotated Position of Integers

Is a hash a zero-knowledge proof?

Creating Fictional Slavic Place Names

Can a non-EU citizen travel within the Schengen area without identity documents?

Why use water tanks from a retired Space Shuttle?

Self-Preservation: How to DM NPCs that Love Living?

When a current flow in an inductor is interrupted, what limits the voltage rise?

Why were the Night's Watch required to be celibate?

How do I subvert the tropes of a train heist?



AWS is eating up storage space


Using all space on Amazon EC2 - Medium tierAWS instances: AMI bundles and snapshots and bears, oh myEC2 Ubuntu 12.04 m1.large ami isn't showing extra drives for full 850GB Instance Storagedisk space keeps filling up on EC2 instance with no apperent files/directoriesHow to add my newly created Ec2 filesystem to /etc/fstab so that it get mounted automatically on next bootAdding EBS volume to Amazon EC2 server. Do I need to?How to reduce AWS EBS root volume size?AWS fails to resize an RHEL64 instance upon launchEC2 Dashboard says instnce running but DevOps says ec2 instance is stopping/restartingmkfs fails on ec2 t3.large instances






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;








1















I have ec2 account setup with size of 80GB. I have uploaded ML code of 2gb on this ec2 instance. However for some reasons my instance is 99% occupied in terms of storage space



ubuntu@ip-172-31-41-142:/dev$ df xvda1
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/xvda1 76171508 75318652 836472 99% /


Something is eating up almost 98% of my ec2 instances storage space. What is it and how do I clear this space










share|improve this question




























    1















    I have ec2 account setup with size of 80GB. I have uploaded ML code of 2gb on this ec2 instance. However for some reasons my instance is 99% occupied in terms of storage space



    ubuntu@ip-172-31-41-142:/dev$ df xvda1
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/xvda1 76171508 75318652 836472 99% /


    Something is eating up almost 98% of my ec2 instances storage space. What is it and how do I clear this space










    share|improve this question
























      1












      1








      1








      I have ec2 account setup with size of 80GB. I have uploaded ML code of 2gb on this ec2 instance. However for some reasons my instance is 99% occupied in terms of storage space



      ubuntu@ip-172-31-41-142:/dev$ df xvda1
      Filesystem 1K-blocks Used Available Use% Mounted on
      /dev/xvda1 76171508 75318652 836472 99% /


      Something is eating up almost 98% of my ec2 instances storage space. What is it and how do I clear this space










      share|improve this question














      I have ec2 account setup with size of 80GB. I have uploaded ML code of 2gb on this ec2 instance. However for some reasons my instance is 99% occupied in terms of storage space



      ubuntu@ip-172-31-41-142:/dev$ df xvda1
      Filesystem 1K-blocks Used Available Use% Mounted on
      /dev/xvda1 76171508 75318652 836472 99% /


      Something is eating up almost 98% of my ec2 instances storage space. What is it and how do I clear this space







      amazon-web-services amazon-ec2






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 16 at 6:16









      AjinkyaAjinkya

      1166




      1166




















          3 Answers
          3






          active

          oldest

          votes


















          3














          That something may be log files which have become too large and need to be removed.



          Try eliminating the ones above 4MB size:



          find / -type f -size +4M -exec ls -lh ;


          If you attempted file deletions, make sure there are not processes still accessing them and check into deleted ones:



          find /proc/*/fd -ls | grep '(deleted)'





          share|improve this answer























          • I do get a list of files, after executing your first command. But how do I distinguish between a log file and normal files. Do log files have any specific file extentions

            – Ajinkya
            May 16 at 7:07











          • For example I am no sure if "-rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_vml_mc.so -rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_gf_lp64.so " is a log file or not

            – Ajinkya
            May 16 at 7:16






          • 1





            They usually have .log extension. Examples: /var/log/eb-activity.log /var/log/eb-commandprocessor.log /var/log/eb-version-deployment.log . See here some info on where to find other logs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/…

            – Overmind
            May 16 at 8:30



















          1














          The version that I took of AWS shipped with pre-installed conda virtual environments. I needed to do



          conda env list


          and then delete the unnecessary virtual environments






          share|improve this answer
































            1














            Sometimes looking for the largest directories can be a good option. Here's a method I use frequently: du -hx / | sort -hr | head -n 30 - this gives the top 30 directories occupying the most space. Change 30 to whatever number you want - I usually try to make it a few lines less than the number of lines on my terminal.



            Once you have an idea of which directories are large, you can research what they're used for and how to clean them up best. e.g. If /var/cache/apt is large, you probably should consider running apt clean; if /var/log is the largest, you should work out which applications are logging the most and look into tuning their log output to be less verbose.



            Of course, sometimes it's all legitimate disk space usage, and the simplest and most expedient solution is just to add more disk.






            share|improve this answer























              Your Answer








              StackExchange.ready(function()
              var channelOptions =
              tags: "".split(" "),
              id: "2"
              ;
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function()
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled)
              StackExchange.using("snippets", function()
              createEditor();
              );

              else
              createEditor();

              );

              function createEditor()
              StackExchange.prepareEditor(
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader:
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              ,
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              );



              );













              draft saved

              draft discarded


















              StackExchange.ready(
              function ()
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f967507%2faws-is-eating-up-storage-space%23new-answer', 'question_page');

              );

              Post as a guest















              Required, but never shown

























              3 Answers
              3






              active

              oldest

              votes








              3 Answers
              3






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              3














              That something may be log files which have become too large and need to be removed.



              Try eliminating the ones above 4MB size:



              find / -type f -size +4M -exec ls -lh ;


              If you attempted file deletions, make sure there are not processes still accessing them and check into deleted ones:



              find /proc/*/fd -ls | grep '(deleted)'





              share|improve this answer























              • I do get a list of files, after executing your first command. But how do I distinguish between a log file and normal files. Do log files have any specific file extentions

                – Ajinkya
                May 16 at 7:07











              • For example I am no sure if "-rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_vml_mc.so -rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_gf_lp64.so " is a log file or not

                – Ajinkya
                May 16 at 7:16






              • 1





                They usually have .log extension. Examples: /var/log/eb-activity.log /var/log/eb-commandprocessor.log /var/log/eb-version-deployment.log . See here some info on where to find other logs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/…

                – Overmind
                May 16 at 8:30
















              3














              That something may be log files which have become too large and need to be removed.



              Try eliminating the ones above 4MB size:



              find / -type f -size +4M -exec ls -lh ;


              If you attempted file deletions, make sure there are not processes still accessing them and check into deleted ones:



              find /proc/*/fd -ls | grep '(deleted)'





              share|improve this answer























              • I do get a list of files, after executing your first command. But how do I distinguish between a log file and normal files. Do log files have any specific file extentions

                – Ajinkya
                May 16 at 7:07











              • For example I am no sure if "-rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_vml_mc.so -rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_gf_lp64.so " is a log file or not

                – Ajinkya
                May 16 at 7:16






              • 1





                They usually have .log extension. Examples: /var/log/eb-activity.log /var/log/eb-commandprocessor.log /var/log/eb-version-deployment.log . See here some info on where to find other logs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/…

                – Overmind
                May 16 at 8:30














              3












              3








              3







              That something may be log files which have become too large and need to be removed.



              Try eliminating the ones above 4MB size:



              find / -type f -size +4M -exec ls -lh ;


              If you attempted file deletions, make sure there are not processes still accessing them and check into deleted ones:



              find /proc/*/fd -ls | grep '(deleted)'





              share|improve this answer













              That something may be log files which have become too large and need to be removed.



              Try eliminating the ones above 4MB size:



              find / -type f -size +4M -exec ls -lh ;


              If you attempted file deletions, make sure there are not processes still accessing them and check into deleted ones:



              find /proc/*/fd -ls | grep '(deleted)'






              share|improve this answer












              share|improve this answer



              share|improve this answer










              answered May 16 at 6:47









              OvermindOvermind

              1,522515




              1,522515












              • I do get a list of files, after executing your first command. But how do I distinguish between a log file and normal files. Do log files have any specific file extentions

                – Ajinkya
                May 16 at 7:07











              • For example I am no sure if "-rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_vml_mc.so -rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_gf_lp64.so " is a log file or not

                – Ajinkya
                May 16 at 7:16






              • 1





                They usually have .log extension. Examples: /var/log/eb-activity.log /var/log/eb-commandprocessor.log /var/log/eb-version-deployment.log . See here some info on where to find other logs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/…

                – Overmind
                May 16 at 8:30


















              • I do get a list of files, after executing your first command. But how do I distinguish between a log file and normal files. Do log files have any specific file extentions

                – Ajinkya
                May 16 at 7:07











              • For example I am no sure if "-rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_vml_mc.so -rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_gf_lp64.so " is a log file or not

                – Ajinkya
                May 16 at 7:16






              • 1





                They usually have .log extension. Examples: /var/log/eb-activity.log /var/log/eb-commandprocessor.log /var/log/eb-version-deployment.log . See here some info on where to find other logs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/…

                – Overmind
                May 16 at 8:30

















              I do get a list of files, after executing your first command. But how do I distinguish between a log file and normal files. Do log files have any specific file extentions

              – Ajinkya
              May 16 at 7:07





              I do get a list of files, after executing your first command. But how do I distinguish between a log file and normal files. Do log files have any specific file extentions

              – Ajinkya
              May 16 at 7:07













              For example I am no sure if "-rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_vml_mc.so -rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_gf_lp64.so " is a log file or not

              – Ajinkya
              May 16 at 7:16





              For example I am no sure if "-rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_vml_mc.so -rwxrwxr-x 21 ubuntu ubuntu 11M Mar 22 2018 /home/ubuntu/anaconda3/envs/chainer_p36/lib/libmkl_gf_lp64.so " is a log file or not

              – Ajinkya
              May 16 at 7:16




              1




              1





              They usually have .log extension. Examples: /var/log/eb-activity.log /var/log/eb-commandprocessor.log /var/log/eb-version-deployment.log . See here some info on where to find other logs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/…

              – Overmind
              May 16 at 8:30






              They usually have .log extension. Examples: /var/log/eb-activity.log /var/log/eb-commandprocessor.log /var/log/eb-version-deployment.log . See here some info on where to find other logs: docs.aws.amazon.com/elasticbeanstalk/latest/dg/…

              – Overmind
              May 16 at 8:30














              1














              The version that I took of AWS shipped with pre-installed conda virtual environments. I needed to do



              conda env list


              and then delete the unnecessary virtual environments






              share|improve this answer





























                1














                The version that I took of AWS shipped with pre-installed conda virtual environments. I needed to do



                conda env list


                and then delete the unnecessary virtual environments






                share|improve this answer



























                  1












                  1








                  1







                  The version that I took of AWS shipped with pre-installed conda virtual environments. I needed to do



                  conda env list


                  and then delete the unnecessary virtual environments






                  share|improve this answer















                  The version that I took of AWS shipped with pre-installed conda virtual environments. I needed to do



                  conda env list


                  and then delete the unnecessary virtual environments







                  share|improve this answer














                  share|improve this answer



                  share|improve this answer








                  edited May 16 at 8:12









                  Tim

                  18.5k41951




                  18.5k41951










                  answered May 16 at 7:25









                  AjinkyaAjinkya

                  1166




                  1166





















                      1














                      Sometimes looking for the largest directories can be a good option. Here's a method I use frequently: du -hx / | sort -hr | head -n 30 - this gives the top 30 directories occupying the most space. Change 30 to whatever number you want - I usually try to make it a few lines less than the number of lines on my terminal.



                      Once you have an idea of which directories are large, you can research what they're used for and how to clean them up best. e.g. If /var/cache/apt is large, you probably should consider running apt clean; if /var/log is the largest, you should work out which applications are logging the most and look into tuning their log output to be less verbose.



                      Of course, sometimes it's all legitimate disk space usage, and the simplest and most expedient solution is just to add more disk.






                      share|improve this answer



























                        1














                        Sometimes looking for the largest directories can be a good option. Here's a method I use frequently: du -hx / | sort -hr | head -n 30 - this gives the top 30 directories occupying the most space. Change 30 to whatever number you want - I usually try to make it a few lines less than the number of lines on my terminal.



                        Once you have an idea of which directories are large, you can research what they're used for and how to clean them up best. e.g. If /var/cache/apt is large, you probably should consider running apt clean; if /var/log is the largest, you should work out which applications are logging the most and look into tuning their log output to be less verbose.



                        Of course, sometimes it's all legitimate disk space usage, and the simplest and most expedient solution is just to add more disk.






                        share|improve this answer

























                          1












                          1








                          1







                          Sometimes looking for the largest directories can be a good option. Here's a method I use frequently: du -hx / | sort -hr | head -n 30 - this gives the top 30 directories occupying the most space. Change 30 to whatever number you want - I usually try to make it a few lines less than the number of lines on my terminal.



                          Once you have an idea of which directories are large, you can research what they're used for and how to clean them up best. e.g. If /var/cache/apt is large, you probably should consider running apt clean; if /var/log is the largest, you should work out which applications are logging the most and look into tuning their log output to be less verbose.



                          Of course, sometimes it's all legitimate disk space usage, and the simplest and most expedient solution is just to add more disk.






                          share|improve this answer













                          Sometimes looking for the largest directories can be a good option. Here's a method I use frequently: du -hx / | sort -hr | head -n 30 - this gives the top 30 directories occupying the most space. Change 30 to whatever number you want - I usually try to make it a few lines less than the number of lines on my terminal.



                          Once you have an idea of which directories are large, you can research what they're used for and how to clean them up best. e.g. If /var/cache/apt is large, you probably should consider running apt clean; if /var/log is the largest, you should work out which applications are logging the most and look into tuning their log output to be less verbose.



                          Of course, sometimes it's all legitimate disk space usage, and the simplest and most expedient solution is just to add more disk.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered May 16 at 21:55









                          Paul GearPaul Gear

                          3,0441134




                          3,0441134



























                              draft saved

                              draft discarded
















































                              Thanks for contributing an answer to Server Fault!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid


                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.

                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fserverfault.com%2fquestions%2f967507%2faws-is-eating-up-storage-space%23new-answer', 'question_page');

                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              RemoteApp sporadic failureWindows 2008 RemoteAPP client disconnects within a matter of minutesWhat is the minimum version of RDP supported by Server 2012 RDS?How to configure a Remoteapp server to increase stabilityMicrosoft RemoteApp Active SessionRDWeb TS connection broken for some users post RemoteApp certificate changeRemote Desktop Licensing, RemoteAPPRDS 2012 R2 some users are not able to logon after changed date and time on Connection BrokersWhat happens during Remote Desktop logon, and is there any logging?After installing RDS on WinServer 2016 I still can only connect with two users?RD Connection via RDGW to Session host is not connecting

                              How to write a 12-bar blues melodyI-IV-V blues progressionHow to play the bridges in a standard blues progressionHow does Gdim7 fit in C# minor?question on a certain chord progressionMusicology of Melody12 bar blues, spread rhythm: alternative to 6th chord to avoid finger stretchChord progressions/ Root key/ MelodiesHow to put chords (POP-EDM) under a given lead vocal melody (starting from a good knowledge in music theory)Are there “rules” for improvising with the minor pentatonic scale over 12-bar shuffle?Confusion about blues scale and chords

                              Esgonzo ibérico Índice Descrición Distribución Hábitat Ameazas Notas Véxase tamén "Acerca dos nomes dos anfibios e réptiles galegos""Chalcides bedriagai"Chalcides bedriagai en Carrascal, L. M. Salvador, A. (Eds). Enciclopedia virtual de los vertebrados españoles. Museo Nacional de Ciencias Naturales, Madrid. España.Fotos