Portal Home > Knowledgebase > Articles Database > How to resize /tmp in OpenVZ node? rsync failed to write
How to resize /tmp in OpenVZ node? rsync failed to write
Posted by slrslr, 08-15-2013, 08:22 AM |
Hello, how can i resize /tmp on OpenVZ node server? During Rsync, i believe it was unable to store some data on /tmp because of low space. So vzdump failed for some VM.
So i thought it may help to increase tmp size?
|
Posted by slrslr, 08-15-2013, 09:51 AM |
Moreover this is different VM failure:
|
Posted by serve-you, 08-15-2013, 01:09 PM |
It's /var/tmp, not /tmp according to those errors. If you do not use LVM, you could just create /var/tmp as a symlink to another partition where you have more space. If you have LVM, you'd just need to shrink/grow the partitions as necessary.
What's your current partition layout?
|
Posted by WebHostDog, 08-15-2013, 01:37 PM |
Just use different partition with more space when using vzdump OpenVZ for backing up.
|
Posted by slrslr, 08-20-2013, 04:05 AM |
Thank you, it is:
[root@*** ~]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/md2 9.7G 2.2G 7.0G 24% /
/dev/md3 1.8T 161G 1.6T 10% /home
tmpfs 16G 0 16G 0% /dev/shm
What do you think, it is wise to make symlink from /var/tmp to /home/tmp for example??
I dont think this will help? i think that temporary files during backup will still be stored in default /tmp directory?
|
Posted by serve-you, 08-20-2013, 08:01 AM |
As a quick fix, yes. Create a symlink for /var/tmp on /home. Long term, I'd look into repartitioning that drive into something more usable for you if you need space elsewhere. The fact that you only have a 10g partition for everything other than /home is pretty dangerous. One runaway log file can bring your entire system to a halt in minutes.
|
Posted by bune, 08-21-2013, 04:48 PM |
if you are using LVM it can be done via adding disk space quota for the /tmp partition
|
Add to Favourites Print this Article
Also Read