out of space

General support questions
Post Reply
pallanwilson
Posts: 1
Joined: 2020/04/05 00:16:28

out of space

Post by pallanwilson » 2020/04/05 01:13:52

To save money I recently downgraded my backup server and switched to the free Vestacp panel. I would consider myself just slightly above a novice as i am able to work with ssh and did install the control panel since all i needed to do was copy and paste the commands.

My new server has centos6, 2t hdd and a 120g solid state. The other day I tried to login via the panel and couldnt so i searched around and found that the cause was likely the main partition being full, which it was. Later after running the commands below i was able to get in

From reading other posts i think this is what is needed from me as far as info :

BTW... if someone does help and needs to the results of a command please post it in the form of copy and paste. I couldnt tell you what any linux command is or does other then cd

df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/vg-root 101G 95G 268M 100% /
tmpfs 7.8G 0 7.8G 0% /dev/shm
/dev/sda1 985M 82M 853M 9% /boot
/dev/mapper/vg-tmp 976M 1.4M 924M 1% /tmp

--------------------------
i also ran:

# find / -type f -exec ls -s {} \; | sort -n -r | head -20
ls: cannot access /proc/29046/task/29046/fdinfo/5: No such file or directory
ls: cannot access /proc/29046/fdinfo/5: No such file or directory
32160516 /home/backup/admin.2020-04-03_05-32-24.tar
21825648 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.camalot.tar.gz
21825648 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.camalot.tar.gz
8799056 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.causenta.tar.gz
782564 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.bkllcnet.tar.gz
782540 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.bkllcnet.tar.gz
678964 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.cabofishin.tar.gz
678960 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.cabofishin.tar.gz
665936 /home/backup/admin.2020-04-02_05-10-39.tar
665924 /home/backup/admin.2020-04-01_05-10-36.tar
585968 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.alaskasal.tar.gz
585968 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.alaskasal.tar.gz
389740 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.aplusauto.tar.gz
389736 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.aplusauto.tar.gz
343832 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.baysidebui.tar.gz
343832 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.baysidebui.tar.gz
335288 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.arizonacar.tar.gz
335288 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.arizonacar.tar.gz
326932 /home/admin/web/paulandnancyswedding.com/backups/lhi/5/user.admin.bhalllaw.tar.gz
326928 /home/admin/web/paulandnancyswedding.com/backups/lhi/1/user.admin.bhalllaw.tar.gz
[root@paulandnancyswedding /]#

User avatar
TrevorH
Forum Moderator
Posts: 28594
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: out of space

Post by TrevorH » 2020/04/05 04:11:23

Sorry but if this is a new server then you made a mistake by installing CentOS 6 on it. It's 9 and a half years old and has about 6 months of life left before all updates stop. It's not a good choice for a new install. You'd be better off with CentOS 7 (5.5 years old, 4.5 years of life left) or CentOS 8 (0.75 years old, 9 years left).

Your method of finding out what space is used isn't very useful. Start by (as root) running

du -m -x --max-depth=1 / | sort -n

and then pick the directory listed at the bottom of that output (the one containing the most used space) and repeat the same command for that directory - so if the dir with the most used space from the first command was /var then run du -m -x --max-depth=1 //var | sort -n and keep doing that until you reach the directory at the bottom where all your space is. That's where you need to concentrate your clean up effort.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Whoever
Posts: 1115
Joined: 2013/09/06 03:12:10

Re: out of space

Post by Whoever » 2020/04/05 05:49:49

TrevorH wrote:
2020/04/05 04:11:23
Sorry but if this is a new server then you made a mistake by installing CentOS 6 on it. It's 9 and a half years old and has about 6 months of life left before all updates stop. It's not a good choice for a new install. You'd be better off with CentOS 7 (5.5 years old, 4.5 years of life left) or CentOS 8 (0.75 years old, 9 years left).

Your method of finding out what space is used isn't very useful. Start by (as root) running

du -m -x --max-depth=1 / | sort -n

and then pick the directory listed at the bottom of that output (the one containing the most used space) and repeat the same command for that directory - so if the dir with the most used space from the first command was /var then run du -m -x --max-depth=1 //var | sort -n and keep doing that until you reach the directory at the bottom where all your space is. That's where you need to concentrate your clean up effort.

Based in the original post, I guess that a similar command on /home will be necessary:

Code: Select all

du -m -x --max-depth=1 /home | sort -n

User avatar
TrevorH
Forum Moderator
Posts: 28594
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: out of space

Post by TrevorH » 2020/04/05 13:20:29

It will be but since /home is part of / (doesn't appear in the df output separately), if it is the problem (which it likely is), then it will appear at the bottom of the first list and will be the first thing to be processed in the next pass.
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 6 - General Support”