Fli
09-21-2013, 02:19 PM
Hello, how can i resize /tmp on OpenVZ node server? During vz***** Rsync, i believe it was unable to store some data on /tmp because of low space. So vzdump failed for some VM.
INFO: starting first sync /home/vps/180 to /var/tmp/vzdumptmp878731
INFO: rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
INFO: rsync: write failed on "/var/tmp/vzdumptmp878731/180/var/www/html/pub/FreeBSD/releases/ISO-IMAGES/8.3/FreeBSD-8.3-RELEASE-i386-livefs.iso": No space left on device (28)
INFO: rsync error: error in file IO (code 11) at receiver.c(301) [receiver=3.0.6]
INFO: rsync: connection unexpectedly closed (519645 bytes received so far) [sender]
INFO: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
ERROR: Backup of VM 180 failed - command '/usr/bin/rsync --stats --numeric-ids --bwlimit=10240 -aH --delete --no-whole-file --inplace /home/vps/180 /var/tmp/vzdumptmp878731' failed with exit code 12
So i thought it may help to increase tmp size?
-----------
Partition layout:
[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??
// Update: i think it failed because / partition on which is /tmp had not enough disk space and i fixed it by moving /vz to /home partition (http://internetlifeforum.com/virtualisation/250-how-free-up-vz-space-if-its-full-how-move/) which has plenty space. Or i fixed it by setting vzdump --tmpdir to something on /home partition where is enough space.
INFO: starting first sync /home/vps/180 to /var/tmp/vzdumptmp878731
INFO: rsync: writefd_unbuffered failed to write 4 bytes to socket [sender]: Broken pipe (32)
INFO: rsync: write failed on "/var/tmp/vzdumptmp878731/180/var/www/html/pub/FreeBSD/releases/ISO-IMAGES/8.3/FreeBSD-8.3-RELEASE-i386-livefs.iso": No space left on device (28)
INFO: rsync error: error in file IO (code 11) at receiver.c(301) [receiver=3.0.6]
INFO: rsync: connection unexpectedly closed (519645 bytes received so far) [sender]
INFO: rsync error: error in rsync protocol data stream (code 12) at io.c(600) [sender=3.0.6]
ERROR: Backup of VM 180 failed - command '/usr/bin/rsync --stats --numeric-ids --bwlimit=10240 -aH --delete --no-whole-file --inplace /home/vps/180 /var/tmp/vzdumptmp878731' failed with exit code 12
So i thought it may help to increase tmp size?
-----------
Partition layout:
[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??
// Update: i think it failed because / partition on which is /tmp had not enough disk space and i fixed it by moving /vz to /home partition (http://internetlifeforum.com/virtualisation/250-how-free-up-vz-space-if-its-full-how-move/) which has plenty space. Or i fixed it by setting vzdump --tmpdir to something on /home partition where is enough space.