DISKWARN / DISKCRITICAL Increase Disk Space

msalmanzaib

Member
Dec 20, 2013
15
0
1
cPanel Access Level
Website Owner
Dear Experts,

Please help me instantly, I am using OVH dedicated server the default partition was 20GB while I have 2TB Disk. I am not advance server expert to reallocate this space. Now 20GB is almost full. Please help me so that I can increase default partition space without losing data. Current Disk Usage screenshot attached.
 

Attachments

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Hello :)

I suggest consulting with your data center or a qualified system administrator if you prefer to repartition the drive. It's not generally recommended, and you may even want to consider setting up a new server with a new partition scheme, transferring the accounts over to it, and then shutting down the existing server. This would reduce the downtime for your websites.

Thank you.
 

msalmanzaib

Member
Dec 20, 2013
15
0
1
cPanel Access Level
Website Owner
Thanks for reply. Getting new server and moving sites will cost much more as ovh charge setup fees for earch server. I am looking for a solution within current server to increase disk space. Can Cpanel support team resolve this issue if I submit a ticket ? Some people said that a good server administrator can reallocate disk space without losing data and some minutes downtime which is acceptable.

Please guide me in detail. I am a graduate student and not good in server administration.

Thanks in advance.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
Repartitioning a drive is not supported, and is not something our support team will complete for you. You could consult with a qualified system administrator to see what options are available to you, but you may want to review what is taking up that disk space first. The following document should help you determine where most of the usage is coming from:

cPanel - Manage HD Space

Thank you.
 

msalmanzaib

Member
Dec 20, 2013
15
0
1
cPanel Access Level
Website Owner
He is output :

[email protected] [~]# du -sh /var/*
4.0K /var/account
51M /var/cache
172M /var/cpanel
4.0K /var/cvs
8.0K /var/db
8.0K /var/empty
4.0K /var/games
287M /var/lib
4.0K /var/local
12K /var/lock
5.8G /var/log
0 /var/mail
355M /var/named
4.0K /var/nis
4.0K /var/opt
4.0K /var/preserve
64K /var/profiles
252K /var/run
11M /var/spool
53M /var/tmp
4.0K /var/yp

[email protected] [/var/log/audit]# du -h /var/log/
4.0K /var/log/varnish
4.0K /var/log/bandwidth/2013/Apr
8.0K /var/log/bandwidth/2013
128K /var/log/bandwidth/2014/May
124K /var/log/bandwidth/2014/Sep
28K /var/log/bandwidth/2014/Nov
128K /var/log/bandwidth/2014/Aug
128K /var/log/bandwidth/2014/Jul
44K /var/log/bandwidth/2014/Apr
128K /var/log/bandwidth/2014/Oct
124K /var/log/bandwidth/2014/Jun
836K /var/log/bandwidth/2014
860K /var/log/bandwidth
5.2G /var/log/nginx
9.2M /var/log/sa
4.0K /var/log/audit
16K /var/log/dcpumon/boot.1413479401
8.0K /var/log/dcpumon/boot.1413480001
100K /var/log/dcpumon/2014/May
124K /var/log/dcpumon/2014/Sep
28K /var/log/dcpumon/2014/Nov
128K /var/log/dcpumon/2014/Aug
128K /var/log/dcpumon/2014/Jul
128K /var/log/dcpumon/2014/Oct
160K /var/log/dcpumon/2014/Jun
800K /var/log/dcpumon/2014
32K /var/log/dcpumon/boot.1413478502
20K /var/log/dcpumon/boot.1413481201
8.0K /var/log/dcpumon/boot.1413479701
1.2M /var/log/dcpumon
5.8G /var/log/


Logs taking much space. 5.8G /var/log 5.2G /var/log/nginx
How can I delete logs as its taking huge space and stop them further. I want to keep current server and no downtime for sites.

Please let me know if anything else is unnecessary.

Thanks alot.
 
Last edited:

jols

Well-Known Member
Mar 13, 2004
1,107
3
168
I take zero responsibility for the following:

Usually logs can be deleted without any problem, thus you may be able to simply do this without any problem. The following assumes that nginx is a file, and not a directory:

cd /var/log/
> nginx

Then afterward, to prevent this from recurring, if you have plenty of space in your home directory you might want to do this:

mv /home/nginx

ln -s /home/nginx /var/log/nginx

But then again, I don't have nginx installed on my server, so please take the above with a grain of salt.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,904
2,218
463
I suggest reviewing the Nginx documentation to determine how to better rotate the logs. In the meantime, you should likely empty the log files instead of removing them. EX:

Code:
echo "" > /var/log/nginx/example.log
Thank you.
 

msalmanzaib

Member
Dec 20, 2013
15
0
1
cPanel Access Level
Website Owner
I logged in via FTP port 22 as ROOT and deleted 5.2G /var/log/nginx now I have 5GB free space and getting no issue.

It resolved my issue.

Thank you.
 
Thread starter Similar threads Forum Replies Date
S Account Administration 3