View Full Version : "/" folder full :'( Need help
vpsfusion 12-11-2004, 01:04 AM Hello,
I have a problem, I dont know why my "/" folder is full, I dont know what to delete and what not to delete.
Here is the info:
Filesystem Size Used Avail Use% Mounted on
/dev/hdc7 1012M 1012M 0 100% /
/dev/hdc1 76M 15M 58M 21% /boot
/dev/hdc9 56G 41G 12G 79% /home
none 251M 0 251M 0% /dev/shm
/dev/hdc6 1012M 40M 921M 5% /tmp
/dev/hdc2 8.9G 2.3G 6.3G 27% /usr
/dev/hdc3 5.0G 1.6G 3.2G 34% /var
/dev/hdc8 487M 13M 449M 3% /x
root@s01 [/]# ls
./ .bash_history etc/ lost+found/ proc/ scripts/ var/
../ bin/ home/ misc/ quota.user* tftpboot/ x/
aquota.user* boot/ initrd/ mnt/ root/ tmp/
.autofsck dev/ lib/ opt/ sbin/ usr/
Can you please tell me what to get rid of and in what folder
InfinitySupport 12-11-2004, 01:44 AM In your "/" directory run:
du -h |grep M
This will give you a good idea of what is taking the most space on the drive.
andreyka 12-11-2004, 02:04 AM Please run:
du -hs /*
And show which eat free space.
madguy24 12-11-2004, 12:18 PM Try mounting /dev/hdc7 in a nelwy created directory and do a " du -sh /newdir/* " It will give you results of largest directory and do another du -sh /newdir/largestdir/* will hopefully get you largest file/files,.
Regards
Maddy
Also check your backup directory, that is a common cause for lost disk space
vpsfusion 12-11-2004, 03:51 PM :S I cannot get into the server now. Last night when I posted this thread I could get in and now I wokeup and tried getting into the server, It is not accepting my password :'(
What could have happened?
vpsfusion 12-11-2004, 03:52 PM Hello,
And one more thing. None of my customers are able to login to cpanel because it is not accepting the passwords. I cant login to whm or ssh either with my root password.
This is weird.
Get hold of the DC and ask them to have a look for you on the console and maybe single user mode
Rus
vpsfusion 12-11-2004, 03:57 PM I have the server colocated with Velcom. It is about 4 blocks away from my house. The server was running perfectly and it didnt need a reboot for 15 days. I donno why all of a sudden this happened. Should I go and take a look and what should I do to the server when Im there.
madguy24 12-11-2004, 04:55 PM Reasons..are...
1. Either the roor's reserved space is also filled..i.e 10% of the space is reserved for root to store system files..that only root can fill..(Strongly believe this is the reason)...
I see that /dev/hdc7 1012M 1012M 0 100% /. But still it may had around 100M for root's usage. Now it's full for root even
2. Caps lock is on :-P
tenshades 12-11-2004, 05:39 PM Run "du -h --max-depth=1" when pwd=/ . This will go through each directory in / and show you which directory is using the most space. You can then cd into that directory and run the command again. This will help narrow down where your space is being used.
Josh
vpsfusion 12-11-2004, 11:38 PM Hello,
I brought the server home from the datacentre.
When I went to the datacentre and plugged in the monitor and saw that it was asking for the username and password.
When I entered the password it wouldnt accept it. Then I restarted the server and while it restarted it gave many errors. Then it says Please enter the root password for maintanence or press Control D to continue. When I enter the password and enter, it still doesnt accept it. I dont know what is going on. I just bought another hard drive and I am going to install Redhat Fedora core 2 on it and Mount the other harddrive and backup the hard drive on to the new one. I dont know what else to do because I am not an expert on cpanel and It will cost alot of money to get it fixed from another person.
What do you think I can do , I try to boot into in in single user mode and it gives the same thing.
Criminal#58369 12-12-2004, 01:35 AM Hmmm maybe uve been hacked?
tenshades 12-12-2004, 01:38 AM Hello,
When it comes up with "Please enter the root password for maintanence or press Control D to continue" This is single user mode. Most of the time you will need to run a fsck on the drives "/dev/hda1" or whatever drives that you have. Once the fsck is complete on all partitions, reboot the server and see what happens
Josh
vpsfusion 12-12-2004, 03:39 AM How do you do the fsck? and what does it do
vpsfusion 12-12-2004, 04:14 AM How can it be on single user mode? It was working fine about when I last checked it (before I had the problem) How do you get out of single user mode? Can you please tell me :)
tenshades 12-12-2004, 10:13 AM Enter the root password it asks. When you get to a command prompt run a "fsck /dev/hda1" this will scan your hda1 partition for filesystem errors. Scan all partitions with this and then reboot.
HenryJ 12-12-2004, 10:31 AM THIS HAS HAPPENED:
1) Your / partition is full.
2) Your shadow file (/etc/shadow) has been damaged (emptied).
SOLUTION:
1) Run a recovery using the CD for the OS, and reset the ROOT password
2) make a backup of shadow,v file before opening or editing it. It is located in /etc/
3) Copy the following contents from shadow,v file to shadow file:
root:_____________________.:12717:0:99999:7:::
A:_______________________________:12732:0:99999:7:::
B:_______________________________:12717:0:99999:7:::
C:_______________________________:12725:0:99999:7:::
D:_______________________________:12717:0:99999:7:::
E:_______________________________:12730:0:99999:7:::
F:_______________________________:12717:0:99999:7:::
here A, B, C, D, E, F are the USERNAMES of your clients/domains, and _______________________ is their unique encrypted password key.
Once you are done, just go to WHM, and sync the FTP passwd from there and you are all set.
Oh yea, not to mention, do find out wuts eating up the diskspace and clean tht, in most cases it is the NAS/remote backup mounted on /backup dir which gets UNMOUNT and instead of saving backups on remote location it starts to save backups on /backup dir and fills up the / partition. so clean that up, if that is the case.
Let me know if you need any further help !!
madguy24 12-12-2004, 10:50 AM Did you see whether / is not 100% full ?? I mean real 100%..No reserved space for root..I beleive it is the cause as the situation arises for all the cpanel users not only root..
Otherwise your /etc/shadow or /etc/passwd is missing ..I mean hacked :-(
Maddy
|