LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Major Problem - Sos (https://www.linuxquestions.org/questions/linux-general-1/major-problem-sos-283568/)

mac_casey 01-28-2005 10:09 PM

Major Problem - Sos
 
HELP...SOS..SOS.

I have created a server with an 80 gig drive and used the defaults for an install. Now things are slow....i mean really slow...I was able to do a DF and it indicated that hdc1 was at 100% Below are what i got from fstab:

dev/hdc1 / ext3 defaults 1 1
/dev/hdc6 /home ext3 defaults 1 2
/dev/hda /mnt/cdrom auto umask=0,user,iocharset=iso8859-1,codepage=850,noauto,ro,exec,users 0 0
none /mnt/floppy supermount dev=/dev/fd0,fs=ext2:vfat,--,umask=0,iocharset=iso8859-1,sync,codepage=850$
none /proc proc defaults 0 0
/dev/hdc5 swap swap defaults 0 0

Now i get the message below about df.

df: cannot read table of mounted filesystems: No such file or directory


My Question is how to adjust the partion sizes. I used partition magic and it showed that my partitions were not even close to being full. Now im obviously hooped!

Please Help

musicman_ace 01-29-2005 12:38 AM

1. post the output of
df -hT
as that will give a better idea on what is full.
2. Read the "How to ask/post a question. Your thread title is piss poor my friend. We all have urgent problems that need to be resolved. If they are truely as urgent "SOS" call a tech support line.

mac_casey 01-29-2005 05:26 AM

My apologies on the titile. my bad.

[root@localhost root]# df -hT
df: cannot read table of mounted filesystems: No such file or directory

On the 25 this is what i have

Jan 25 11:00:56 localhost fsck: /dev/hdc1: clean, 123251/768544 files, 502409/1534199 blocks (check after next mount)
Jan 25 11:00:56 localhost rc.sysinit: Remounting root filesystem in read-write mode: succeeded
Jan 25 11:00:56 localhost rc.sysinit: Activating swap partitions: succeeded
Jan 25 11:00:56 localhost fsck: /dev/hdc6: clean, 394/8863744 files, 286961/17715670 blocks (check after next mount)

Today now

Jan 29 10:48:48 localhost mount: mount: /dev/hdc6 already mounted or /home busy
Jan 29 10:48:48 localhost mount: mount: permission denied
Jan 29 10:48:48 localhost netfs: Mounting other filesystems: failed
Jan 29 10:48:43 localhost partmon: Warning, free space for </> is only <0> (which is inferior to <20000>
Jan 29 10:48:32 localhost fsck: /dev/hdc1: clean, 122753/768544 files, 1534199/1534199 blocks (check after next mount

Is there an easy way to fix this?

musicman_ace 01-29-2005 06:26 AM

Its odd that its telling root "permission denied". If you had a run-away log, that could fill up the drive. If you an get your hands on a live-linux CD, you could mount the harddrive under the live CD and then ge the output of df

mac_casey 01-29-2005 07:29 AM

Ouch! Something so small is going to kill me. I think i pooched my system by trying now to use Partian Magic. When i used PM it said there was a problem with the table and that it would fix it for me. I think that is when i could no longer use the DF command.

The only other think that i did this week was in installed more memory. Went from 256 to 1 Gig.

Also do you think this could have been an attack of some kind? I was using this server for both web and email.

thoughts?

musicman_ace 01-29-2005 09:15 AM

as far as an attack, check the log files in /var/log/
I don't know what partition magic actually does to a filesystem to comment on it. If the worst has to happen, backup your configs and re-install.

mac_casey 01-29-2005 09:27 AM

Thanks for your help. I am reinstalling and now have the following partitions. Do you think my "/" is too small? I used the server install to automatically do it for me. I have a gig of ram and i was told that i shoud double the swap for how much memory i have but i couldnt increase the size using diskdrake. I could only make is smaller. Then i had free space but still couldnt add to "/"

I look forward to your reply as your advise well tell me if i should reinstall again with different settings. Please advise music_man


Filesystem Size Used Avail Use% Mounted on
/dev/hdc1 780M 99M 642M 14% /
/dev/hdc8 20G 33M 20G 1% /home
/dev/hdc9 981M 17M 915M 2% /tmp
/dev/hdc6 3.9G 782M 2.9G 21% /usr
/dev/hdc7 34G 99M 32G 1% /var
/dev/hdc10 14G 337M 13G 3% /var/www

musicman_ace 01-29-2005 09:38 AM

I doubt you need more than 400MB of swap. The rules you spoke of is a windows rule. I generally put less swap space than the installed ram.

If you looking for my suggestion on how to partition, just reply back with how many GB the hard drive is and what the server is going to be used for. I'll make a suggestion then.

mac_casey 01-29-2005 09:52 AM

Thanks for your help.

Its an 80 gig harddrive. It will primarly be used for web services with a MySQL data base as well. There will also be a small amount of email (just one account).

Also would you suggest that i put the web folders (virutual host) each in there own home directory or place them all in the \var\www\html folder.

Thanks again..

musicman_ace 01-29-2005 06:11 PM

200MB /boot
400-512 swap
10GB /
9GB /usr
2GB /var
the rest to /home

On distro's that are for web serving, I typically move the www directory to /home. Make backups a little easier since I only have to back /home


All times are GMT -5. The time now is 12:00 PM.