Linux - Server This forum is for the discussion of Linux Software used in a server related context. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
08-15-2010, 06:24 AM
|
#16
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
Quote:
Originally Posted by joec@home
Simple answer, the system will not report virtual open files, but df will. The following command will show the open files. Trace them back to the service that has them open and then stop and start the service. Do nor restart the service, but actually stop and then start them.
lsof |grep deleted
|
your suggestion:
Quote:
> lsof |grep deleted
mysqld 2331 mysql 4u REG 9,0 0 15418658 /tmp/ibfVpzes (deleted)
mysqld 2331 mysql 5u REG 9,0 21 15418659 /tmp/ibPtgim3 (deleted)
mysqld 2331 mysql 6u REG 9,0 0 15418660 /tmp/ibh1l1tE (deleted)
mysqld 2331 mysql 7u REG 9,0 0 15418662 /tmp/ibexN2Df (deleted)
mysqld 2331 mysql 11u REG 9,0 0 15418663 /tmp/ib7sNvGR (deleted)
gdm-binar 3062 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
gdm-binar 3134 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
|
After a mysql stop-start nothing happens:
Quote:
> lsof |grep deleted
gdm-binar 3062 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
gdm-binar 3134 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
mysqld 11908 mysql 4u REG 9,0 0 15418659 /tmp/ibLa4I4x (deleted)
mysqld 11908 mysql 5u REG 9,0 0 15418660 /tmp/ibwUre3u (deleted)
mysqld 11908 mysql 6u REG 9,0 0 15418661 /tmp/ib4s6J1r (deleted)
mysqld 11908 mysql 7u REG 9,0 0 15418662 /tmp/ibzvVI0o (deleted)
mysqld 11908 mysql 11u REG 9,0 0 15418663 /tmp/ib38SWOm (deleted)
|
and then:
Quote:
> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.8G 132G 3% /var
|
So GB of deleted files have been really deleted before... what is happening? I've never seen this king of problem!
Please help! Thank you.
Last edited by darkmanta; 08-15-2010 at 06:27 AM.
|
|
|
08-17-2010, 04:20 PM
|
#17
|
LQ Newbie
Registered: Mar 2009
Posts: 5
Rep:
|
I'd do a full stop of mysqld, then run a lsof | grep deleted. That second column I believe are the process ID's, so while mysqld is stopped, do a ps and grep for those process ID's, to ensure they are no longer running, if the processes are still running you'll need to find out why, and either stop them or kill them.
|
|
|
08-19-2010, 08:31 AM
|
#18
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
Thank you jys17.
As told before, I don't think the problem is in deleted files in /tmp locked by a running program
before mysql stop
Quote:
> lsof |grep deleted
gdm-binar 3062 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
gdm-binar 3134 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
mysqld 11908 mysql 4u REG 9,0 0 15418659 /tmp/ibLa4I4x (deleted)
mysqld 11908 mysql 5u REG 9,0 0 15418660 /tmp/ibwUre3u (deleted)
mysqld 11908 mysql 6u REG 9,0 0 15418661 /tmp/ib4s6J1r (deleted)
mysqld 11908 mysql 7u REG 9,0 0 15418662 /tmp/ibzvVI0o (deleted)
mysqld 11908 mysql 11u REG 9,0 0 15418663 /tmp/ib38SWOm (deleted)
|
mysql stop
Quote:
> lsof |grep deleted
gdm-binar 3062 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
gdm-binar 3134 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
sh 13990 root 0r REG 9,1 2596 33816713 /var/spool/at/a02914014615e8 (deleted)
sh 13991 root 0r REG 9,0 72 15418698 /tmp/sh-thd-1282234010 (deleted)
clean_gra 13992 root 0r REG 9,0 72 15418698 /tmp/sh-thd-1282234010 (deleted)
|
mysql start
Quote:
> lsof |grep deleted
gdm-binar 3062 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
gdm-binar 3134 root 10u REG 9,0 15000 15418760 /tmp/.pk11ipc1/coolkeypk11sE-Gate 0 0-0 (deleted)
mysqld 14353 mysql 4u REG 9,0 0 15418661 /tmp/ibmXcNU3 (deleted)
mysqld 14353 mysql 5u REG 9,0 0 15418662 /tmp/ibWXu7eP (deleted)
mysqld 14353 mysql 6u REG 9,0 0 15418663 /tmp/ibHz5rzA (deleted)
mysqld 14353 mysql 7u REG 9,0 0 15418697 /tmp/ibgqRfUl (deleted)
mysqld 14353 mysql 11u REG 9,0 0 15418698 /tmp/ib9IRDI7 (deleted)
|
the full /tmp size is still 530Kb and the problem is still there, eve if I deleted 28Gb of backup files from /backup
Quote:
> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
tmpfs 940M 0 940M 0% /dev/shm
/dev/md2 51G 31G 18G 65% /home
/dev/md1 142G 2.8G 132G 3% /var
|
The problem is somewhere in the fs, I think
|
|
|
08-19-2010, 04:50 PM
|
#19
|
Member
Registered: Sep 2009
Location: Galveston Tx
Posts: 291
Rep:
|
With that much information you may be correct about an error in the file system. Have you tried running a manual fsck on the drives?
|
|
1 members found this post helpful.
|
08-31-2010, 04:51 PM
|
#20
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
Quote:
Originally Posted by joec@home
With that much information you may be correct about an error in the file system. Have you tried running a manual fsck on the drives?
|
Yes I did a
and reboot. The file-systems where checked with no error reported. But the problem is still there.
Quote:
> df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md0 95G 95G 0 100% /
|
and
Quote:
Device file /dev/md0
RAID level Mirrored (RAID1)
Filesystem status Mounted on /
Usable size 102398208 blocks (97.65 GB)
Persistent superblock? Si
Chunk size Predefinito
RAID status clean
Partitions in RAID SATA device A partition 1
SATA device B partition 1
|
So my server suffers from many disfunctions because /tmp is so more writeable.
This is the first time I can't resolve a problem, even with the precious help of the forum people!
|
|
|
09-02-2010, 12:55 AM
|
#21
|
LQ Newbie
Registered: Aug 2010
Posts: 2
Rep:
|
right click on your partition/properties/tools/check now
|
|
|
09-02-2010, 09:14 PM
|
#22
|
Member
Registered: Sep 2009
Location: Galveston Tx
Posts: 291
Rep:
|
The files sizes associated to the gdm-binar are also quite large. What happens when you shut down that process? You may have to back trace the command that started gdm-binar. So for example using "ps -elf" the 4th column is the process ID, and the 5th column is the parent process ID that called the process.
|
|
|
09-03-2010, 09:13 AM
|
#23
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
If I'm not mistaken, your problem might be that a mounted partition hides data from you.
e.g. If you have 40GB in the directory /mnt and you mount an external HD on it, you will never see that 40GB, but df will still report it.
This can e.g. happen when you forget to mount and next make a backup on /mnt; or if you copied your home directory to a partition and forgot to clear the home directory before mounting on the home partition on /home.
Last edited by Wim Sturkenboom; 09-03-2010 at 09:15 AM.
|
|
1 members found this post helpful.
|
09-09-2010, 11:13 AM
|
#24
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
Quote:
Originally Posted by joec@home
The files sizes associated to the gdm-binar are also quite large. What happens when you shut down that process? You may have to back trace the command that started gdm-binar. So for example using "ps -elf" the 4th column is the process ID, and the 5th column is the parent process ID that called the process.
|
thank you everybody.
I terminated gdm and nothing changed. Also renamed the gdm command so that it's impossible to startup again.
And I think that the file size of gdm is 15000.
Quote:
If I'm not mistaken, your problem might be that a mounted partition hides data from you.
|
Nope, I cleanly unmounted anything under /mnt and the result is still the same. I'm sure that I deleted many Gb of files without any change.
|
|
|
09-10-2010, 12:09 AM
|
#25
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
Can you post output of mount command?
|
|
|
12-21-2010, 04:10 PM
|
#26
|
LQ Newbie
Registered: Feb 2004
Location: Rome, Italy
Distribution: Ubuntu 10.4 AMD64
Posts: 16
Original Poster
Rep:
|
After many days of unresolved problems I reinstalled a new Debian system. This sysem seemed to work very well until I experienced the same problem than before: a growing filesystem occupation percent without evidence of new files or growing directories.
But...
Quote:
Originally Posted by Wim Sturkenboom
If I'm not mistaken, your problem might be that a mounted partition hides data from you.
e.g. If you have 40GB in the directory /mnt and you mount an external HD on it, you will never see that 40GB, but df will still report it.
This can e.g. happen when you forget to mount and next make a backup on /mnt; or if you copied your home directory to a partition and forgot to clear the home directory before mounting on the home partition on /home.
|
GREAT! That is! I got a failure in a mounted external directory under /mnt/condivision so for many days many backups went in the unmounted directory. And when I remounted the external directory all the files in the unmounted real directory where hidden.
So thank you very much for your suggestion!
|
|
|
01-24-2011, 02:40 AM
|
#27
|
Senior Member
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,797
|
Love it when a plan comes together
|
|
|
All times are GMT -5. The time now is 01:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|