Hi John, Am currently running dos mode not graphical mode. Could you have any other method. Hi Ashish, You are correct. qmailtoaster backup file which was around 184 GB in backup.gz type and i have removed .bz2 type file with the same backup/mailbkup directory. After removed .bz2 file it's gone backup.gz also which was 184 GB file. I have run this command locate .gz but couldn't find out it. how do i see the open files. Could you help me to find out this file or any soln. On Thu, Apr 7, 2016 at 12:55 PM, Ashish Yadav <gwalashish at gmail.com> wrote:> Hi Chandran, > > > On Thu, Apr 7, 2016 at 9:14 AM, Chandran Manikandan <tech2mani at gmail.com> > wrote: > > > Hi All, > > > > I have running Centos 6.5 32 bit machine. > > This machine is running qmailtoaster packages and mailbox size is 385 GB. > > > > if i run the df -h command it show 385 GB out of 1TB > > > > I have run the same command today suddenly shows 576 GB out of 1 TB. > > > > I didn't update any bulk file and mail transaction is not very high. > > > > How do i check this issue and fix it. > > > > how do i find out and why suddenly showing this much of increasing the > size > > of hard disk. > > > > Could anyone help me > > > > Basically, df reads the superblock only and trusts it completely. du reads > each object and sums them up. > > Any running process can keep a deleted file open. This means the space will > still be reserved and seen by df, > but since du will no longer see a reference to that file in the directory > tree, it cannot see those reserved blocks. > > Try to see the number of open file which could be causing the problem. > > > --Regards > Ashishkumar S. Yadav > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- *Thanks,* *Manikandan.C* *System Administrator*
On 4/6/2016 10:08 PM, Chandran Manikandan wrote:> Am currently running dos mode not graphical mode. > Could you have any other method.for unix shell (its *not* 'dos mode', MSDOS is a legacy system of Microsoft), du is the command to use. du -hs /* will give you a summary of the space used by every top level directory. ignore /dev /proc and /sys as they aren't real directories, theya re pseudo file systems. if it turns out, for example, that /var is the biggest pig, then du -hs /var/* to see the totals of whats in each folder in /var rinse, repeat... -- john r pierce, recycling bits in santa cruz
Hi Chandran, On Thu, Apr 7, 2016 at 10:38 AM, Chandran Manikandan <tech2mani at gmail.com> wrote:> Hi John, > Am currently running dos mode not graphical mode. > Could you have any other method. > > Hi Ashish, > You are correct. > qmailtoaster backup file which was around 184 GB in backup.gz type and i > have removed .bz2 type file with the same backup/mailbkup directory. > > After removed .bz2 file it's gone backup.gz also which was 184 GB file. > I have run this command locate .gz but couldn't find out it. > > how do i see the open files. > > Could you help me to find out this file or any soln. >Follow this link for more information, <http://www.cyberciti.biz/faq/howto-linux-get-list-of-open-files/> --Regards Ashishkumar S. Yadav
Hi John, Ashish, Still no luck . I have tried your commands in root folder. It's showing max size 384 only in home directory. But if i try df -h shown 579. Is there any way to find out recycle bin folder On Thu, Apr 7, 2016 at 2:16 PM, Ashish Yadav <gwalashish at gmail.com> wrote:> Hi Chandran, > > > On Thu, Apr 7, 2016 at 10:38 AM, Chandran Manikandan <tech2mani at gmail.com> > wrote: > > > Hi John, > > Am currently running dos mode not graphical mode. > > Could you have any other method. > > > > Hi Ashish, > > You are correct. > > qmailtoaster backup file which was around 184 GB in backup.gz type and i > > have removed .bz2 type file with the same backup/mailbkup directory. > > > > After removed .bz2 file it's gone backup.gz also which was 184 GB file. > > I have run this command locate .gz but couldn't find out it. > > > > how do i see the open files. > > > > Could you help me to find out this file or any soln. > > > > Follow this link for more information, > <http://www.cyberciti.biz/faq/howto-linux-get-list-of-open-files/> > > --Regards > Ashishkumar S. Yadav > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- *Thanks,* *Manikandan.C* *System Administrator*
On 04/06/2016 10:08 PM, Chandran Manikandan wrote:> qmailtoaster backup file which was around 184 GB in backup.gz type and i > have removed .bz2 type file with the same backup/mailbkup directory. > > After removed .bz2 file it's gone backup.gz also which was 184 GB file. > I have run this command locate .gz but couldn't find out it. > > how do i see the open files.You're most of the way there. You've probably identified the culprit. The backup file consumed your space, and some process still has it open so that it's not being freed on the filesystem. As root, look for deleted files: # ls -l /proc/*/fd/* | grep '(deleted)' For instance, among the output on my system, I see this: l-wx------. 1 gmessmer gmessmer 64 Apr 7 09:41 /proc/28087/fd/1 -> /home/gmessmer/tmp.1 (deleted) The file /proc/28087/fd/1 appears as a symlink to a deleted file. In that case, the process with PID 28087 has the file open. I can use "ps" to determine what the process is, and terminate it appropriately.
Hi Tony and Gordon, Thanks for your help. I have tried above your commands I couldn't see that size of the file. Usually the qmailbackup created like below format in backup location. 201604151929-backup.tar.gz 201604151929-qmailadminpasswd.tar.bz2 201604151929-qmailcontrolusers.tar.bz2 201604151929-spamassassin-files.tar.bz2 201604151929-squirrelmail-plugins.tar.bz2 201604151929-squirrelmail-prefs.tar.bz2 201604151929-vpopmail.sql.gz 201604151929-vpopmail.tar.bz2 Then i have tried to delete rm -f *.bz2 files or *.gz files. The above same steps followed on 01 April files. After that it doesn't show the 201604011929-backup.tar.gz file in backup location. but the extra 194 GB size occupied in my server which is above mentioned backup file size. I had checked mailbox folder size 386 GB and there is no other big size folder and files in my server. But i am wonder why it shows 580GB occupied in my hard disk. how to find out and solve this issue. I have run fail2ban and firewall also in my server. i have doubt anybody hacked or accessed my system from outside. Could anyone help me. On Fri, Apr 8, 2016 at 12:45 AM, Gordon Messmer <gordon.messmer at gmail.com> wrote:> On 04/06/2016 10:08 PM, Chandran Manikandan wrote: > >> qmailtoaster backup file which was around 184 GB in backup.gz type and i >> have removed .bz2 type file with the same backup/mailbkup directory. >> >> After removed .bz2 file it's gone backup.gz also which was 184 GB file. >> I have run this command locate .gz but couldn't find out it. >> >> how do i see the open files. >> > > You're most of the way there. You've probably identified the culprit. > The backup file consumed your space, and some process still has it open so > that it's not being freed on the filesystem. > > As root, look for deleted files: > > # ls -l /proc/*/fd/* | grep '(deleted)' > > For instance, among the output on my system, I see this: > > l-wx------. 1 gmessmer gmessmer 64 Apr 7 09:41 /proc/28087/fd/1 -> > /home/gmessmer/tmp.1 (deleted) > > The file /proc/28087/fd/1 appears as a symlink to a deleted file. In that > case, the process with PID 28087 has the file open. I can use "ps" to > determine what the process is, and terminate it appropriately. > > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >-- *Thanks,* *Manikandan.C* *System Administrator*