Knowledgebase

no space left..

Posted by whocky, 09-10-2011, 05:41 PM
Hi all Im installing some software on my new dedicated server and for some reason im now getting an error saying that theres no space left on device. Im running cento5 and when running this command df -h im getting: Filesystem Size Used Avail Use% Mounted on /dev/sda5 2.0G 2.0G 0 100% / /dev/sda8 871G 340M 826G 1% /home /dev/sda3 9.7G 2.2G 7.1G 24% /usr /dev/sda2 9.7G 321M 8.9G 4% /var /dev/sda1 99M 18M 76M 19% /boot /dev/sda6 996M 34M 911M 4% /tmp tmpfs 3.9G 0 3.9G 0% /dev/shm Now im persuming its because it must be using /dev/sda5 so how do i get around this? how do i delete stuff from sda5? or better still can i install it on any of the other partitions? Hope someone can help Thanks Steve

Posted by whocky, 09-10-2011, 05:43 PM
keep getting errors like: Cannot write to `mono-2.10.4.tar.bz2' (No space left on device).

Posted by whocky, 09-10-2011, 05:47 PM
Also the server is running kloxo if thats any help

Posted by relichost, 09-10-2011, 05:48 PM
Hi 2 gig for / is way too small. its most likely your programs and OS you have installed. unless you can resize your partitions its a re install job with less space in /home and more in / Thanks

Posted by whocky, 09-10-2011, 05:53 PM
Hi So how do i make / bigger? is there a command i can run to resize? Thanks Steve

Posted by relichost, 09-10-2011, 05:56 PM
Hi you'd have to reduce /home then resize / but as you cant do this when the system is running and the partitions mounted you'd need to boot with a liveCD and KVM into it and do it (assuming its colo'd) if you want to see whats using / you could do cd / du -h --max-depth=1 the drill down into the folders that have lots of usage. Thanks

Posted by whocky, 09-10-2011, 06:02 PM
Hi This is the output of du -h --max-depth=1 48K ./.gconf 156K ./kloxo-install 48K ./.subversion 16K ./.gconfd 1.1G . So whats using the 1.1G? how can i free it up? thanks for your help Steve

Posted by relichost, 09-10-2011, 06:04 PM
Hi Are you sure you did cd / ---- first ? also ls -al (will show you what else is in the dir you did that in) Thanks

Posted by whocky, 09-10-2011, 06:08 PM
Hi Sorry the output of cd / du -h --max-depth=1 is 172M ./var 39M ./sbin 8.0K ./selinux 16K ./tmp 2.3G ./usr 8.0K ./media 8.7M ./bin 140M ./home 103M ./etc 0 ./misc 4.0K ./.trash 4.0K ./command 29M ./lib64 0 ./sys 4.0K ./service 8.0K ./srv 8.0K ./mnt 16K ./lost+found 534M ./opt 272K ./script 152K ./dev 0 ./net 1.1G ./root 235M ./lib 13M ./boot 0 ./proc 4.5G . What can i free up? and how? Thanks Steve

Posted by Martin-D, 09-10-2011, 06:14 PM
Delete any crap in /root. Also, check for old kernels and remove them as they take up some space: rpm -qa ¦ grep kernel

Posted by whocky, 09-10-2011, 06:22 PM
Hi Martin when i go into cd / and run du -h --max-depth=1 how do i get into the root directory? also is there stuff i shouldnt delete from this directory? thanks Steve

Posted by Martin-D, 09-10-2011, 06:25 PM
cd /root will get you there. dont darted anything you're unsure of however its likely there's nothing important there.

Posted by whocky, 09-10-2011, 06:27 PM
Hi When im running the command cd /root its putting in the same place i was so im guessing i get put in the root directory as soon as i login to ssh? If thats the case then how do i whats there so i can pick and choose what to delete? Thanks Steve

Posted by Martin-D, 09-10-2011, 06:31 PM
cd /root ls -lah will show you what's there and the size of the files. ...I'd suggest reading up on Linux and how to use it. These are all very basic commands that even the least experienced 'admin' should know.

Posted by whocky, 09-10-2011, 06:35 PM
Hi martin Yeah im sort of self learning and reading on the way, its the way i learn best Thanks Steve

Posted by ssfred, 09-11-2011, 12:14 AM
Hello If you logged in to the server as "root" through ssh, you will be in /root. Execute the command "ls -alh " and then remove the files which are not necessary. I would suggest you to perform a reinstall with a bigger "/" if possible, to avoid such issues in future.



Was this answer helpful?

Add to Favourites Add to Favourites

Print this Article Print this Article

Also Read
Looking for PLESK guru (Views: 592)
JustEdge TEB2 Issues (Views: 650)
Managed Debian Hosting (Views: 636)


Language:

Client Login

Email

Password

Remember Me

Search