LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-21-2013, 09:13 AM   #1
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 691

Rep: Reputation: Disabled
Is my hard drive filled


My server is running very slow, and I've asked for advice at http://www.linuxquestions.org/questi...se-4175470309/ but am still waiting. I've since looked at remaining hard drive space, and am concerned I might be low. Please see the following. Does anything look wrong (particularly the 100% used for /dev/simfs)? Thanks


Code:
[root@vps NotionCommotion]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             20G   20G     0 100% /
none                  6.0G  4.0K  6.0G   1% /dev
none                  6.0G     0  6.0G   0% /dev/shm
[root@vps NotionCommotion]# du -sh
4.3G    .
[root@vps NotionCommotion]#
 
Old 07-21-2013, 10:16 AM   #2
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,485

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
Yes you are completely out of hard drive space.
 
Old 07-21-2013, 10:20 AM   #3
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 691

Original Poster
Rep: Reputation: Disabled
Thanks suicidaleggroll, Maybe this contributed to the slow server performance?
 
Old 07-21-2013, 10:23 AM   #4
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,485

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
Almost certainly. Once you pass about 90% usage things start to slow down, especially writing big files. When you hit 100% pretty much everything is going to stop dead in its tracks.
 
Old 07-21-2013, 10:37 AM   #5
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
In your previous post (see: http://www.linuxquestions.org/questi...se-4175470309/), you mentioned that when you login into server using ssh and run a cmd and that cmd takes long time to accomplish. So make it clear that which machine is responding slow - your local system or remote system which you're connecting thru ssh?
Also where are partitions like tmp and swap?
 
Old 07-21-2013, 10:37 AM   #6
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 691

Original Poster
Rep: Reputation: Disabled
Thanks again suicidaleggroll, I will post a link from my earlier post to this one should others experience the same.
 
Old 07-21-2013, 10:45 AM   #7
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 691

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by shivaa View Post
In your previous post (see: http://www.linuxquestions.org/questi...se-4175470309/), you mentioned that when you login into server using ssh and run a cmd and that cmd takes long time to accomplish. So make it clear that which machine is responding slow - your local system or remote system which you're connecting thru ssh?
Also where are partitions like tmp and swap?
Definitely the remote system.


In regards to your second question, does this answer it? What does it imply?
Code:
[root@vps NotionCommotion]# mount
/dev/simfs on / type simfs (rw)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
none on /dev type tmpfs (rw)
none on /dev/pts type devpts (rw)
none on /dev/shm type tmpfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
[root@vps NotionCommotion]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             20G   15G  5.1G  75% /
none                  6.0G  4.0K  6.0G   1% /dev
none                  6.0G     0  6.0G   0% /dev/shm
[root@vps NotionCommotion]#
Thanks
 
Old 07-21-2013, 11:32 AM   #8
shivaa
Senior Member
 
Registered: Jul 2012
Location: Grenoble, Fr.
Distribution: Sun Solaris, RHEL, Ubuntu, Debian 6.0
Posts: 1,800
Blog Entries: 4

Rep: Reputation: 286Reputation: 286Reputation: 286
So I hope you run the mount command on remote system, not on your local one. Since you're connected to a remote server, so network latency could also be a possible reason for slowness.
Also you've cleared the / partition, so is there any improvement now? What Linux distro it has installed?

From your previous post, there's no such load on the server, and physical memory is also ok. But swap is not configured, so problem could also be because of no swap. Once check the / partition if tmp and swap are inside the / partition, not separately configured.
 
Old 07-21-2013, 12:21 PM   #9
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 691

Original Poster
Rep: Reputation: Disabled
Thanks shivaa,

Yes, mount was on the remote system. The local one is Windows (boo hoo!). CentOS 6.4. Yes, I am looking into the lack of swap, but the primary problem was a filled hard drive. Since clearing out some, I am doing 100% better.
 
Old 07-21-2013, 04:02 PM   #10
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,180

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
The things highlighted in red below do not make sense to me. They appear contradictory. I wouldn't expect an exact match, but these numbers are pretty far apart.
Code:
[root@vps NotionCommotion]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             20G   20G     0 100% /
none                  6.0G  4.0K  6.0G   1% /dev
none                  6.0G     0  6.0G   0% /dev/shm
[root@vps NotionCommotion]# du -sh
4.3G    .
[root@vps NotionCommotion]#
But if indeed you are totally out of disk space as the 100% use of / indicates, I'm surprised you could get any response out of the system at all.

That "simfs" filesystem, isn't that some kind of virtual disk space out in "the cloud" somewhere? If so, your access to this "disk space" could be very much network bandwidth limited, possibly leading to great slowness. And I think it might also be possible that the provider may be advertising that they are giving you 20Gb of space, but in reality they are supplying you with much less. Possibly leading to the discrepancy I highlighter in red above. And if you ARE totally out of disk space, yes, your system will run tragically slow ... if at all.

Your other post indicates you have 12Gb of memory, and we see only a 20Gb hard disk here? That's an odd configuration. Maybe in this virtual world, if that's indeed what you're dealing with (and I'm only assuming that because I saw "simfs"), you really have neither 20Gb of hard disk space nor 12Gb of memory.
 
Old 07-21-2013, 04:22 PM   #11
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,485

Rep: Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090Reputation: 2090
Quote:
Originally Posted by haertig View Post
The things highlighted in red below do not make sense to me. They appear contradictory. I wouldn't expect an exact match, but these numbers are pretty far apart.
Code:
[root@vps NotionCommotion]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             20G   20G     0 100% /
none                  6.0G  4.0K  6.0G   1% /dev
none                  6.0G     0  6.0G   0% /dev/shm
[root@vps NotionCommotion]# du -sh
4.3G    .
[root@vps NotionCommotion]#
Looks to me like he ran the du in his home directory, not in /.
 
Old 07-21-2013, 04:48 PM   #12
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,180

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Quote:
Originally Posted by suicidaleggroll View Post
Looks to me like he ran the du in his home directory, not in /.
Good point. I assumed the implied way someone would have done this, running the du from /, but an assumption is the first step towards a screw-up! Running du -sh from any place other than / (for the purposes of this thread) would have been a pointless exercise. But a pointless exercise is better than no exercise I guess.
 
Old 07-22-2013, 08:51 AM   #13
NotionCommotion
Member
 
Registered: Aug 2012
Posts: 691

Original Poster
Rep: Reputation: Disabled
Quote:
But a pointless exercise is better than no exercise I guess.
Not totally pointless as I learned something and won't forget.


I am sure you were right and I was not running du from /. When trying to do so, I get the following.
Code:
[root@vps /]# du -sh
du: cannot access `./proc/27736/task/27736/fd/4': No such file or directory
du: cannot access `./proc/27736/fd/4': No such file or directory
15G     .
[root@vps /]#
Just curious, what is with the missing file or directory?

Note that I have since deleted some files, so things match.

Code:
[root@vps /]# df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/simfs             20G   15G  5.1G  75% /
none                  6.0G  4.0K  6.0G   1% /dev
none                  6.0G     0  6.0G   0% /dev/shm
[root@vps /]#
I am curious what this filesystem means. Why are the two filesystems called "none"? The last one (/dev/shm) appears to be shared memory. Is this different than swap memory? Note how /proc/meminfo shows zero SwapCached. Does this make sense? Why do I have something mounted to /dev? Is /dev/simfs some sort of virtual HD?

Code:
[root@vps shm]# cat /proc/meminfo
MemTotal:     12448864 kB
MemFree:      12041288 kB
Buffers:             0 kB
Cached:              0 kB
SwapCached:          0 kB
Active:              0 kB
Inactive:            0 kB
HighTotal:           0 kB
HighFree:            0 kB
LowTotal:     12448864 kB
LowFree:      12041288 kB
SwapTotal:           0 kB
SwapFree:            0 kB
Dirty:               0 kB
Writeback:           0 kB
AnonPages:           0 kB
Mapped:              0 kB
Slab:                0 kB
PageTables:          0 kB
NFS_Unstable:        0 kB
Bounce:              0 kB
CommitLimit:         0 kB
Committed_AS:        0 kB
VmallocTotal:        0 kB
VmallocUsed:         0 kB
VmallocChunk:        0 kB
HugePages_Total:     0
HugePages_Free:      0
HugePages_Rsvd:      0
Hugepagesize:     2048 kB
[root@vps shm]#
 
Old 07-22-2013, 10:42 AM   #14
haertig
Senior Member
 
Registered: Nov 2004
Distribution: Debian, Ubuntu, LinuxMint, Slackware, SysrescueCD, Raspbian
Posts: 2,180

Rep: Reputation: 335Reputation: 335Reputation: 335Reputation: 335
Those "none" filesystems are not filesystems on your harddisk. They are in memory. As is "/proc". And /dev/shm is different than swap. The missing proc entries you see are process ids. Each process running on your system has an entry under /proc. When the process exits, its entry under /proc disappears. So what you are seeing is that when du went to go look at things under /proc (which is unnecessary BTW, since it's not real harddisk space), initially it saw a process listed, but when it went to go get the data for that process, the process had already exited. A timing issue basically. Hence the missing "file" (but it's not really a file - just a few bytes of memory).

As far as "simfs" being virtual space, I was not sure of that initially. I recognized "simfs" from somewhere, I don't remember where, and *thought* it might be virtual space if I was remembering correctly. So I Googled "simfs" and the hits returned appeared to confirm my suspicions. You see stuff about OpenVZ and VPS (that is virtualization stuff).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Can't run script after hard disk was filled pljvaldez Linux - Server 4 12-15-2010 10:37 AM
[SOLVED] Hard Drive filled up? AKviking Linux - General 2 05-30-2010 05:24 PM
Filled hard disk with wrong CP command... buccaneere Linux - Software 37 02-21-2009 11:30 AM
NewLappy, 1/2 drive ms-win filled? other 1/2empty.. Stocky Linux - Software 18 11-01-2006 09:06 AM
Hard drive space filled, X fails, says connection reset by peer solar_64131 Linux - Software 5 08-28-2006 04:37 PM


All times are GMT -5. The time now is 02:07 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration