Centos freeing up disk spaceDisk space disappearingdf says I have 20G more disk space used than du. Why?How...

Were the women of Travancore, India, taxed for covering their breasts by breast size?

What quests do you need to stop at before you make an enemy of a faction for each faction?

What is the meaning of でも 私 あなたのそういうところ すきよ?

Is there any reason to change the ISO manually?

If magnetic force can't do any work, then how can we define a potential?

What's the point of this macro?

Is the Levitate spell supposed to basically disable a melee-based enemy?

Bidirectional Dictionary

Never make public members virtual/abstract - really?

Is a paralyzed creature limp or rigid?

How were the names on the memorial stones in Avengers: Endgame chosen, out-of-universe?

A magician's sleight of hand

FORMAT returns large row size and data size

Why there are construction cranes on apparently completed buildings in New York?

Shoes for commuting

If I sell my PS4 game disc and buy a digital version, can I still access my saved game?

How do you calculate the range of an attack when attacking diagonally?

Ceiling fan electrical box missing female screw holes

What is the MKS Base AUX header connector type?

How does the UK House of Commons think they can prolong the deadline of Brexit?

Round away from zero

'This one' as a pronoun

What is the difference between 「名前【なまえ】」 and 「名称【めいしょう】」?

Global variables and information security



Centos freeing up disk space


Disk space disappearingdf says I have 20G more disk space used than du. Why?How to find free disk space and analyze disk usage?the difference in used hard drive space as shown by df and du is HUGE!Resize MDADM/Software RAID underlying partition and filesystemCause of hard disk root space utilizationCentOS 6.7 hangs after progress barLost space in LVMNo space on the boot disk to update kernelShrink disk (Thick Provisioned) size of CentOS VM and reclaim disk space on ESXi host






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}







2















I have a CentOS server running Plesk and it's run out of space on the plesk partition. I have narrowed down where a lot of the disk space is being used, but I'm not sure how to move forward. Can I redirect the folder elsewhere or is it reasonably safe to resize the partition?



Output of df -l



Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda5 4956284 4803960 0 100% /
/dev/sda3 4956316 2861496 1838988 61% /var
/dev/sda2 461065932 97508992 339758252 23% /home
/dev/sda1 77749 17882 55853 25% /boot
tmpfs 978504 0 978504 0% /dev/shm
tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-local
tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-queue
tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-remote
tmpfs 978504 1900 976604 1% /usr/local/psa/handlers/info
tmpfs 978504 0 978504 0% /usr/local/psa/handlers/spool


Output of du -sh * on the root



12K     aquota.user
7.8M bin
12M boot
168K dev
49M etc
93G home
222M lib
27M lib64
16K lost+found
8.0K media
0 misc
8.0K mnt
0 net
99M opt
0 proc
96M root
35M sbin
8.0K selinux
8.0K srv
0 sys
44K tmp
4.6G usr
2.7G var









share|improve this question

































    2















    I have a CentOS server running Plesk and it's run out of space on the plesk partition. I have narrowed down where a lot of the disk space is being used, but I'm not sure how to move forward. Can I redirect the folder elsewhere or is it reasonably safe to resize the partition?



    Output of df -l



    Filesystem           1K-blocks      Used Available Use% Mounted on
    /dev/sda5 4956284 4803960 0 100% /
    /dev/sda3 4956316 2861496 1838988 61% /var
    /dev/sda2 461065932 97508992 339758252 23% /home
    /dev/sda1 77749 17882 55853 25% /boot
    tmpfs 978504 0 978504 0% /dev/shm
    tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-local
    tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-queue
    tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-remote
    tmpfs 978504 1900 976604 1% /usr/local/psa/handlers/info
    tmpfs 978504 0 978504 0% /usr/local/psa/handlers/spool


    Output of du -sh * on the root



    12K     aquota.user
    7.8M bin
    12M boot
    168K dev
    49M etc
    93G home
    222M lib
    27M lib64
    16K lost+found
    8.0K media
    0 misc
    8.0K mnt
    0 net
    99M opt
    0 proc
    96M root
    35M sbin
    8.0K selinux
    8.0K srv
    0 sys
    44K tmp
    4.6G usr
    2.7G var









    share|improve this question





























      2












      2








      2








      I have a CentOS server running Plesk and it's run out of space on the plesk partition. I have narrowed down where a lot of the disk space is being used, but I'm not sure how to move forward. Can I redirect the folder elsewhere or is it reasonably safe to resize the partition?



      Output of df -l



      Filesystem           1K-blocks      Used Available Use% Mounted on
      /dev/sda5 4956284 4803960 0 100% /
      /dev/sda3 4956316 2861496 1838988 61% /var
      /dev/sda2 461065932 97508992 339758252 23% /home
      /dev/sda1 77749 17882 55853 25% /boot
      tmpfs 978504 0 978504 0% /dev/shm
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-local
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-queue
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-remote
      tmpfs 978504 1900 976604 1% /usr/local/psa/handlers/info
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/spool


      Output of du -sh * on the root



      12K     aquota.user
      7.8M bin
      12M boot
      168K dev
      49M etc
      93G home
      222M lib
      27M lib64
      16K lost+found
      8.0K media
      0 misc
      8.0K mnt
      0 net
      99M opt
      0 proc
      96M root
      35M sbin
      8.0K selinux
      8.0K srv
      0 sys
      44K tmp
      4.6G usr
      2.7G var









      share|improve this question
















      I have a CentOS server running Plesk and it's run out of space on the plesk partition. I have narrowed down where a lot of the disk space is being used, but I'm not sure how to move forward. Can I redirect the folder elsewhere or is it reasonably safe to resize the partition?



      Output of df -l



      Filesystem           1K-blocks      Used Available Use% Mounted on
      /dev/sda5 4956284 4803960 0 100% /
      /dev/sda3 4956316 2861496 1838988 61% /var
      /dev/sda2 461065932 97508992 339758252 23% /home
      /dev/sda1 77749 17882 55853 25% /boot
      tmpfs 978504 0 978504 0% /dev/shm
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-local
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-queue
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/before-remote
      tmpfs 978504 1900 976604 1% /usr/local/psa/handlers/info
      tmpfs 978504 0 978504 0% /usr/local/psa/handlers/spool


      Output of du -sh * on the root



      12K     aquota.user
      7.8M bin
      12M boot
      168K dev
      49M etc
      93G home
      222M lib
      27M lib64
      16K lost+found
      8.0K media
      0 misc
      8.0K mnt
      0 net
      99M opt
      0 proc
      96M root
      35M sbin
      8.0K selinux
      8.0K srv
      0 sys
      44K tmp
      4.6G usr
      2.7G var






      centos terminal disk-usage






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 28 '13 at 1:31









      Michael Mrozek

      64.8k29 gold badges198 silver badges216 bronze badges




      64.8k29 gold badges198 silver badges216 bronze badges










      asked Mar 25 '13 at 11:42









      chris chaneychris chaney

      111 gold badge1 silver badge4 bronze badges




      111 gold badge1 silver badge4 bronze badges

























          2 Answers
          2






          active

          oldest

          votes


















          2
















          Run du -sh on /usr and /root to see if your /root is not filled with some useless files or if on /usr you can de-install some program you not use.



          You can use gParted to expand your partition, it's safe normaly.






          share|improve this answer




























          • /root contains 96MB, and /usr 4.6GB (which is not exactly lightweight, but hardly excessive either depending on what software is installed).

            – a CVn
            Mar 25 '13 at 11:55













          • Thank you for the quick response. I followed it down the rabbit hole and /usr/local/psa is using 3.2GB is it safe to remove anything within this?

            – chris chaney
            Mar 25 '13 at 11:57













          • Apparently /usr/local/psa is the Plesk directory. Dig into it again. See if you can clear cache or something like with Plesk (don't know it really). Else you can move /usr/local/psa into /home but I think you need to do it from a live CD (without launching Plesk).

            – GHugo
            Mar 25 '13 at 12:07











          • Hello again Hugo, its split between mainly two folders, cgitory and apspkgarc though I am not familiar with the back end of Plesk to know what they are used for. Alternatively can you recommend a good walkthrough as to how to increase the partition size (and I am assuming shrinking SDA2 to cover the space requirements)? thanks again

            – chris chaney
            Mar 25 '13 at 12:12











          • Frem GUI, use gParted as I said. You just have to drag bound to expand partition. But you need to do this without mounting the partition. So do it from a live cd. Or you can do it from command line like explained for ext3 here.

            – GHugo
            Mar 25 '13 at 12:19



















          0
















          Please run this command on your terminal



          find / -type f -size +500000k -exec ls -lh {} ;


          This will list all files greater than 500 MB from root



          Check if any .log files or core dump files are there that you don't need and delete it.






          share|improve this answer




























          • While this is useful information it doesn't really address the question asked by OP about moving the mount or resizing.

            – bu5hman
            Jan 10 '18 at 7:47














          Your Answer








          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "106"
          };
          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: false,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: null,
          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%2funix.stackexchange.com%2fquestions%2f69069%2fcentos-freeing-up-disk-space%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2
















          Run du -sh on /usr and /root to see if your /root is not filled with some useless files or if on /usr you can de-install some program you not use.



          You can use gParted to expand your partition, it's safe normaly.






          share|improve this answer




























          • /root contains 96MB, and /usr 4.6GB (which is not exactly lightweight, but hardly excessive either depending on what software is installed).

            – a CVn
            Mar 25 '13 at 11:55













          • Thank you for the quick response. I followed it down the rabbit hole and /usr/local/psa is using 3.2GB is it safe to remove anything within this?

            – chris chaney
            Mar 25 '13 at 11:57













          • Apparently /usr/local/psa is the Plesk directory. Dig into it again. See if you can clear cache or something like with Plesk (don't know it really). Else you can move /usr/local/psa into /home but I think you need to do it from a live CD (without launching Plesk).

            – GHugo
            Mar 25 '13 at 12:07











          • Hello again Hugo, its split between mainly two folders, cgitory and apspkgarc though I am not familiar with the back end of Plesk to know what they are used for. Alternatively can you recommend a good walkthrough as to how to increase the partition size (and I am assuming shrinking SDA2 to cover the space requirements)? thanks again

            – chris chaney
            Mar 25 '13 at 12:12











          • Frem GUI, use gParted as I said. You just have to drag bound to expand partition. But you need to do this without mounting the partition. So do it from a live cd. Or you can do it from command line like explained for ext3 here.

            – GHugo
            Mar 25 '13 at 12:19
















          2
















          Run du -sh on /usr and /root to see if your /root is not filled with some useless files or if on /usr you can de-install some program you not use.



          You can use gParted to expand your partition, it's safe normaly.






          share|improve this answer




























          • /root contains 96MB, and /usr 4.6GB (which is not exactly lightweight, but hardly excessive either depending on what software is installed).

            – a CVn
            Mar 25 '13 at 11:55













          • Thank you for the quick response. I followed it down the rabbit hole and /usr/local/psa is using 3.2GB is it safe to remove anything within this?

            – chris chaney
            Mar 25 '13 at 11:57













          • Apparently /usr/local/psa is the Plesk directory. Dig into it again. See if you can clear cache or something like with Plesk (don't know it really). Else you can move /usr/local/psa into /home but I think you need to do it from a live CD (without launching Plesk).

            – GHugo
            Mar 25 '13 at 12:07











          • Hello again Hugo, its split between mainly two folders, cgitory and apspkgarc though I am not familiar with the back end of Plesk to know what they are used for. Alternatively can you recommend a good walkthrough as to how to increase the partition size (and I am assuming shrinking SDA2 to cover the space requirements)? thanks again

            – chris chaney
            Mar 25 '13 at 12:12











          • Frem GUI, use gParted as I said. You just have to drag bound to expand partition. But you need to do this without mounting the partition. So do it from a live cd. Or you can do it from command line like explained for ext3 here.

            – GHugo
            Mar 25 '13 at 12:19














          2














          2










          2









          Run du -sh on /usr and /root to see if your /root is not filled with some useless files or if on /usr you can de-install some program you not use.



          You can use gParted to expand your partition, it's safe normaly.






          share|improve this answer















          Run du -sh on /usr and /root to see if your /root is not filled with some useless files or if on /usr you can de-install some program you not use.



          You can use gParted to expand your partition, it's safe normaly.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited Oct 6 '17 at 3:55









          KERR

          1033 bronze badges




          1033 bronze badges










          answered Mar 25 '13 at 11:48









          GHugoGHugo

          7423 silver badges9 bronze badges




          7423 silver badges9 bronze badges
















          • /root contains 96MB, and /usr 4.6GB (which is not exactly lightweight, but hardly excessive either depending on what software is installed).

            – a CVn
            Mar 25 '13 at 11:55













          • Thank you for the quick response. I followed it down the rabbit hole and /usr/local/psa is using 3.2GB is it safe to remove anything within this?

            – chris chaney
            Mar 25 '13 at 11:57













          • Apparently /usr/local/psa is the Plesk directory. Dig into it again. See if you can clear cache or something like with Plesk (don't know it really). Else you can move /usr/local/psa into /home but I think you need to do it from a live CD (without launching Plesk).

            – GHugo
            Mar 25 '13 at 12:07











          • Hello again Hugo, its split between mainly two folders, cgitory and apspkgarc though I am not familiar with the back end of Plesk to know what they are used for. Alternatively can you recommend a good walkthrough as to how to increase the partition size (and I am assuming shrinking SDA2 to cover the space requirements)? thanks again

            – chris chaney
            Mar 25 '13 at 12:12











          • Frem GUI, use gParted as I said. You just have to drag bound to expand partition. But you need to do this without mounting the partition. So do it from a live cd. Or you can do it from command line like explained for ext3 here.

            – GHugo
            Mar 25 '13 at 12:19



















          • /root contains 96MB, and /usr 4.6GB (which is not exactly lightweight, but hardly excessive either depending on what software is installed).

            – a CVn
            Mar 25 '13 at 11:55













          • Thank you for the quick response. I followed it down the rabbit hole and /usr/local/psa is using 3.2GB is it safe to remove anything within this?

            – chris chaney
            Mar 25 '13 at 11:57













          • Apparently /usr/local/psa is the Plesk directory. Dig into it again. See if you can clear cache or something like with Plesk (don't know it really). Else you can move /usr/local/psa into /home but I think you need to do it from a live CD (without launching Plesk).

            – GHugo
            Mar 25 '13 at 12:07











          • Hello again Hugo, its split between mainly two folders, cgitory and apspkgarc though I am not familiar with the back end of Plesk to know what they are used for. Alternatively can you recommend a good walkthrough as to how to increase the partition size (and I am assuming shrinking SDA2 to cover the space requirements)? thanks again

            – chris chaney
            Mar 25 '13 at 12:12











          • Frem GUI, use gParted as I said. You just have to drag bound to expand partition. But you need to do this without mounting the partition. So do it from a live cd. Or you can do it from command line like explained for ext3 here.

            – GHugo
            Mar 25 '13 at 12:19

















          /root contains 96MB, and /usr 4.6GB (which is not exactly lightweight, but hardly excessive either depending on what software is installed).

          – a CVn
          Mar 25 '13 at 11:55







          /root contains 96MB, and /usr 4.6GB (which is not exactly lightweight, but hardly excessive either depending on what software is installed).

          – a CVn
          Mar 25 '13 at 11:55















          Thank you for the quick response. I followed it down the rabbit hole and /usr/local/psa is using 3.2GB is it safe to remove anything within this?

          – chris chaney
          Mar 25 '13 at 11:57







          Thank you for the quick response. I followed it down the rabbit hole and /usr/local/psa is using 3.2GB is it safe to remove anything within this?

          – chris chaney
          Mar 25 '13 at 11:57















          Apparently /usr/local/psa is the Plesk directory. Dig into it again. See if you can clear cache or something like with Plesk (don't know it really). Else you can move /usr/local/psa into /home but I think you need to do it from a live CD (without launching Plesk).

          – GHugo
          Mar 25 '13 at 12:07





          Apparently /usr/local/psa is the Plesk directory. Dig into it again. See if you can clear cache or something like with Plesk (don't know it really). Else you can move /usr/local/psa into /home but I think you need to do it from a live CD (without launching Plesk).

          – GHugo
          Mar 25 '13 at 12:07













          Hello again Hugo, its split between mainly two folders, cgitory and apspkgarc though I am not familiar with the back end of Plesk to know what they are used for. Alternatively can you recommend a good walkthrough as to how to increase the partition size (and I am assuming shrinking SDA2 to cover the space requirements)? thanks again

          – chris chaney
          Mar 25 '13 at 12:12





          Hello again Hugo, its split between mainly two folders, cgitory and apspkgarc though I am not familiar with the back end of Plesk to know what they are used for. Alternatively can you recommend a good walkthrough as to how to increase the partition size (and I am assuming shrinking SDA2 to cover the space requirements)? thanks again

          – chris chaney
          Mar 25 '13 at 12:12













          Frem GUI, use gParted as I said. You just have to drag bound to expand partition. But you need to do this without mounting the partition. So do it from a live cd. Or you can do it from command line like explained for ext3 here.

          – GHugo
          Mar 25 '13 at 12:19





          Frem GUI, use gParted as I said. You just have to drag bound to expand partition. But you need to do this without mounting the partition. So do it from a live cd. Or you can do it from command line like explained for ext3 here.

          – GHugo
          Mar 25 '13 at 12:19













          0
















          Please run this command on your terminal



          find / -type f -size +500000k -exec ls -lh {} ;


          This will list all files greater than 500 MB from root



          Check if any .log files or core dump files are there that you don't need and delete it.






          share|improve this answer




























          • While this is useful information it doesn't really address the question asked by OP about moving the mount or resizing.

            – bu5hman
            Jan 10 '18 at 7:47
















          0
















          Please run this command on your terminal



          find / -type f -size +500000k -exec ls -lh {} ;


          This will list all files greater than 500 MB from root



          Check if any .log files or core dump files are there that you don't need and delete it.






          share|improve this answer




























          • While this is useful information it doesn't really address the question asked by OP about moving the mount or resizing.

            – bu5hman
            Jan 10 '18 at 7:47














          0














          0










          0









          Please run this command on your terminal



          find / -type f -size +500000k -exec ls -lh {} ;


          This will list all files greater than 500 MB from root



          Check if any .log files or core dump files are there that you don't need and delete it.






          share|improve this answer















          Please run this command on your terminal



          find / -type f -size +500000k -exec ls -lh {} ;


          This will list all files greater than 500 MB from root



          Check if any .log files or core dump files are there that you don't need and delete it.







          share|improve this answer














          share|improve this answer



          share|improve this answer








          edited 15 mins ago









          venkatesh

          31 bronze badge




          31 bronze badge










          answered Jan 10 '18 at 7:23









          Nitish ShanbhagNitish Shanbhag

          11 bronze badge




          11 bronze badge
















          • While this is useful information it doesn't really address the question asked by OP about moving the mount or resizing.

            – bu5hman
            Jan 10 '18 at 7:47



















          • While this is useful information it doesn't really address the question asked by OP about moving the mount or resizing.

            – bu5hman
            Jan 10 '18 at 7:47

















          While this is useful information it doesn't really address the question asked by OP about moving the mount or resizing.

          – bu5hman
          Jan 10 '18 at 7:47





          While this is useful information it doesn't really address the question asked by OP about moving the mount or resizing.

          – bu5hman
          Jan 10 '18 at 7:47


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Unix & Linux Stack Exchange!


          • 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%2funix.stackexchange.com%2fquestions%2f69069%2fcentos-freeing-up-disk-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

          Taj Mahal Inhaltsverzeichnis Aufbau | Geschichte | 350-Jahr-Feier | Heutige Bedeutung | Siehe auch |...

          Baia Sprie Cuprins Etimologie | Istorie | Demografie | Politică și administrație | Arii naturale...

          Ciclooctatetraenă Vezi și | Bibliografie | Meniu de navigare637866text4148569-500570979m