How to make free space in Cpanel server.
Hello,
I have shared cpanel and now my server"s disk goes to 99% and have cleared the logs from /var/log/*.
Please let me know, how to clear the user log so I can make free space or let me know other way?
Thanks,
Imran Khan.
-
Hello Imran, Please check Apache error/access/suphp and domlogs. Also check mysql logs under /var/lib/mysql/ur.hostname.com.err. Using WHM >> List account >> Disk space usage, there you can sort the users as per their disk usage and then you can take necessary action on particular user. You can delete unwanted backup or tar files from home or users home. 0 -
Hello :) Please review the following document: Managing Hard Drive Space Check to see which directories are using up the most space so you can get idea of what can be removed. Thank you. 0 -
Hello, Thanks Rajguru. How can I delete particular user mail log? Thanks, Imran Khan. 0 -
Hello Imran, There is no any such mail log file for particular user. All users mail log files is /var/log/exim_mainlog 0 -
Hello, Can I delete .maillog.swp log file under /var/log folder? Thanks, Imran Khan. 0 -
Yes you can delete it. 0 -
Hello, Can I run /scripts/runlogsnow this command on my cpanel server? Will it affect to anything? Thanks, Imran Khan. 0 -
Hello, /scripts/runlogsnow will update the all user webalizer stats on your server. Also I will suggest you find out which user is using lot of disk space and check that user files may be user error_log is using the that space in that account. 0 -
Hello, Thanks, Actually, I know who is using more space. This is a shared hosting virtual machine on Hyper V with etx3 root partition. Also disk type is fixed. Technically I can not increase the size of ext3 partition but I can increase it using gparted. If will go to increase disk space using gparted then fixed disk take more time to increase on Hyper V and current disk size is 300 GB. So is there anyway to add additional disk on the same virtual machine and map the /home/ partition on it. Means after adding second disk, users account directly create on disk two not disk one. Thanks, Imran Khan. 0 -
Hello, I have find out the solution.I will add the second drive on my virtual machine, create the partition and mount the /home2 directory on it. Thanks, Imran Khan. 0 -
Hello, I have searched and found that, It possible to move existing cpanel account from /home to /home2 using "WHM Home " Account Functions " Rearrange an Account" option but just I want to know, how much time it take to transfer from /home to /home2 for 5GB size account? Also let me know, is there any thing need to be done in WHM or Cpanel after mounting second hard disk partition on /home2? Thanks, Imran Khan. 0 -
[quote="imran_khan, post: 1472662">I have searched and found that, It possible to move existing cpanel account from /home to /home2 using "WHM Home " Account Functions " Rearrange an Account" option but just I want to know, how much time it take to transfer from /home to /home2 for 5GB size account?
It depends on your server's specific hardware. It should take no more than 5 minutes. [quote="imran_khan, post: 1472662"> Also let me know, is there any thing need to be done in WHM or Cpanel after mounting second hard disk partition on /home2?
If you have already mounted the new drive as /home2, cPanel/WHM will automatically detect it as a new home directory that's available for accounts. Thank you.0 -
Hello Michael, Thanks for the quick reply. Really appreciate.... Thanks, Imran Khan. 0 -
Hello Michael, For testing purpose, I have followed the below steps but getting error. I am doing this on single hard disk with single /home partition, /home2 directory and 1). Create /home2 directory. 2). Create cpanel account from the whm. 3). Click on "WHM Home " Account Functions " Rearrange an Account". Error:- boot does not match "home" Sorry, there is only one usable partition detected on this machine matching "home" Is /home2 required on second hard disk? or I can do it on same hard disk with two partitions i.e. /home and /home2? Thanks, Imran Khan. 0 -
The "/home2" directory does not have to be on a separate drive, but it must at least be a separate partition to be considered a separate home directory. Thank you. 0 -
Hello Michael, Thanks. I have below queries on moving cpanel accounts from /home to /home2 partition. 1). If during moving process my internet disconnect or server"s internet disconnect when will data destroy/lost? 2). During moving process can I access cpanel, webmail, mail, database and website of that particular account? Thanks, Imran Khan. 0 -
[quote="imran_khan, post: 1473652">1). If during moving process my internet disconnect or server"s internet disconnect when will data destroy/lost?
If the server loses connection during this time then the rearrange process may need to be completed again when the connection is restored. Data is only being moved so there should be no lost data. Is it common for your server to lose connection? If so, you should get that issue resolved before proceeding to use this option. [quote="imran_khan, post: 1473652">2). During moving process can I access cpanel, webmail, mail, database and website of that particular account?
It's possible there will be "File Does Not Exist" errors during this time frame. It should only last a few minutes for large accounts so you should refrain from those actions until it completes. Thank you.0 -
Hello Michael, You mean to say during moving process down time will happen? Thanks, Imran Khan. 0 -
There may be a small time frame when a file is not accessible. It's typically not noticeable due to the short amount of time it takes for the process to move the files and setup the symbolic link. Thank you. 0 -
Hello Michael, I am planning to move two accounts from /home to /home2. One is 71 GB and second is 29 GB. So how much time these take to move and how long time these accounts are inaccessible. Thanks, Imran Khan. 0 -
It depends on your server's specific hardware. I would not expect it to take very long (likely only a few minutes). I recommend backing up the account beforehand if that is an option. Thank you. 0 -
Hello Michael, Thank you very much.... Thanks, Imran Khan. 0 -
Hello, I have added the second partition and mount it on /home2 but getting below error while moving account. Please help me.... I am able create new account on /home2. Error:- Sorry, there is only one drive in this machine root@web01 [~]# df -h Filesystem Size Used Avail Use% Mounted on /dev/hda3 287G 280G 7.3G 98% / /dev/hda1 99M 20M 75M 21% /boot tmpfs 4.0G 0 4.0G 0% /dev/shm /dev/mapper/vg01-logvol01 197G 188M 187G 1% /home2 /usr/tmpDSK 485M 11M 449M 3% /tmp root@web01 [~]# mount /dev/hda3 on / type ext3 (rw,usrquota) proc on /proc type proc (rw) sysfs on /sys type sysfs (rw) devpts on /dev/pts type devpts (rw,gid=5,mode=620) /dev/hda1 on /boot type ext3 (rw) tmpfs on /dev/shm type tmpfs (rw) /dev/mapper/vg01-logvol01 on /home2 type ext3 (rw) none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw) /usr/tmpDSK on /tmp type ext3 (rw,noexec,nosuid,loop=/dev/loop0) /tmp on /var/tmp type none (rw,noexec,nosuid,bind) sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw) Thanks, Imran Khan. 0 -
Hello, If accidentally my browser closed or my internet connectivity down when rearrange process. So how can I recover the same process or same whm screen? Thanks, Imran Khan. 0 -
Hello, We have followed the below article method and starting moving process and after 6 hours suddenly get below message. Please suggest me on this. Is this account is successfully moved on /home2? Or anything need to be change in the server for this account? Message/error:- Results of move: New homedir already exists, all actions canceled (was this account already moved?) Article :- 0 -
Hello Triston, I have getting below message/error while moving cpanel account xyz from /home to /home2 using Rearrange Account option from WHM. --------------------------------- Results of move: New homedir already exists, all actions canceled (was this account already moved?) ----------------------- Now I have below queries. 1). Is this account transferred successfully from /home to /home2? 2). Rearrange Account option creating symlink in /home to /home2 but it is not created. 3). There is no xyz directory in /home. 4). In WHM, xyz account disk usage space is showing 4 MB but directory path is showing /home2/xyz. Please as suggest/guide on the same. 0 -
Hello, Can I create symlink manually using below command. ln -s /home2/xyz /home/xyz Where /home2/xyz is new path and /home/xyz is old path. Please suggest/guide me on point 1 and 4. 0 -
Hello, I have already raised this issue in cpanel support but they are not providing support/assistance to me because my cpanel version is old. I am planning to upgrade it but for the time being, I want to resolve the above mentioned queries/issues. Please help me out on the same. Thanks, Imran Khan. 0 -
Could you please provide the ID for the ticket you had open? You really should not have any live accounts on an out of date server. I've just read thru this entire thread, it sounds to me like you're doing some experimenting to learn things. Have you read any of the docs on these actions your testing with? Rearrange an Account - cPanel Documentation How to: Manage your hard drive space - cPanel Documentation [QUOTE] Please suggest/guide me on point 1 and 4.
Those links should provide you with the knowledge needed to answer points 1 & 4 I believe. Please stop bumping this thread, or any others you're taking part in.0
Please sign in to leave a comment.
Comments
35 comments