1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice
  2. Dear Pleskians, please read this carefully! New attachments and other rules Thank you!
    Dismiss Notice
  3. Dear Pleskians, I really hope that you will share your opinion in this Special topic for chatter about Plesk in the Clouds. Thank you!
    Dismiss Notice

Maildir reporting wrong disk usage

Discussion in 'Plesk for Linux - 8.x and Older' started by lpittman, Oct 28, 2005.

  1. lpittman

    lpittman Guest

    0
     
    Hey everyone.

    I am working on maintaining the size of the mailnames to see that the partition does not fill up (has once already) and I am finding that a lot of information is being reported incorrectly, for example:

    [root@server traditional.com]# du -sh *
    4.0k @mbox.quota
    104k bahai
    4.8M duncan
    2.2M galen
    44k info
    2.5M leland
    8.3M vivian

    You'll see 'vivian' for example shows 8.3M being used.

    [root@server traditional.com]# cd vivian
    [root@server vivian]# du -sh *
    4.0k @attachments
    7.8M Maildir
    4.0k user_prefs

    Now Maildir shows 7.8M used.

    [root@server vivian]# cd Maildir
    [root@server Maildir]# du -sh *
    4.0k courierimapkeywords
    4.0k courierimapuiddb
    4.0k courierpop3dsizelist
    8.0k cur
    4.0k new
    4.0k tmp

    But in Maildir it is not showing anything close to 8M. I have gone into each directory and confirmed there is nothing in them. I have also logged into Webmail and confirmed there is no mail in there.

    What may be causing this? Is there a way to have the proper disk usage reported?

    Any advice/help would be appreciated.

    Luke
     
  2. ShadowMan@

    ShadowMan@ Guest

    0
     
    What OS distro and version are you using? On all my RH type servers running Plesk 7.5.3 and 7.5.4 all the numbers are showing correctly. I even just double checked a couple of servers and numerous mail accounts to make sure.
     
  3. lpittman

    lpittman Guest

    0
     
    Thanks for the reply.

    I am running RH 7.3 and Plesk 7.5.4

    Luke
     
  4. ShadowMan@

    ShadowMan@ Guest

    0
     
    Hmm, wondering if it's RH 7.3, I phased out all of my 7.3 boxes years ago. And only have a few RH9 left to change out for newer.
     
  5. lpittman

    lpittman Guest

    0
     
    Follow up:

    It looks like the proper amounts are being reported, however I was not looking for the right stuff.

    I was doing du -sh * when I should have been doing du -sh * .*!

    Now I am seeing some other info (like a .trash folder with a bunch of old emails in it).

    Any idea how to clear thoughs out for my clients automatically? Perhaps thats a bad idea.

    Hmm...

    Luke
     
  6. ShadowMan@

    ShadowMan@ Guest

    0
     
    Ah, when I use that command and want *everything*, I don't specify anything after the -sh In other words, I do just: "du -sh" or "du -ah" and it lists everything even hidden directories...
     
  7. lpittman

    lpittman Guest

    0
     
    Ahhhh, cool ... I didn't know that. Still learning Linux ...

    Thanks :)
     
Loading...