Hello I own a server Centos 64bit (Cpanel) with 10 accounts inside and i was add a coronjob to clean my tmp daily but it is 100% in less than 24 hours. Is it possible to make my /tmp bigger without changing anything in my server and all accounts working without any problems? Thanks
Yes it's possible to make tmp bigger if you have fee space somewhere, you simply create a new partition and mount the new partition as tmp. If you're out of space then it can be done by shrinking existing partitions and so on but you'd want a server admin doing that for you and a very good set of backups. The question I have is what's filling tmp and does it really need to be doing that or could you send these files somewhere else?
Yes, you can either create an additional partition on your server from the free space (space that is not added in the existing partition) OR by creating a Virtual Partition. Mostly, Data Center do not leave any free space while setting up a server, so creating a virtual partition and mounting it as /tmp should do the needful for you. The Virtual Partition is created from the free space of the existing partition. Follow the below steps and you should be good to go. Create a 2GB partition: Create a File System on it: Since it's a virtual partition, mount it as a loop device: Verify the /tmp space by: To mount the new partition on /tmp permanently (i.e. even on a server reboot), add the following in the /etc/fstab file That's it. You have a bigger /tmp partition now.
Ok thanks What do you think about this solution also? I need a pemanent solution and after restarting or updating (cpanel) the server to not have to do anything else with my new tmp.
I think that i don't have any free space in the disk as when i got the server they format the disk and mount all space .... Or do you mean that it will auto get from the free space that is already mounted....
It will auto get the free space from the exiting space that is already mounted... It creates virtual partition and not a physical one.