stdin: is not a tty’ error

I got the following error while running rsync command from one vps to another vps

“stdin: is not a tty’ error”

Fix :

On the destination server, edit /root/.bashrc file and comment out the “mesg y” line.

If it is no there, please add the following line to .bashrc file .

if `tty -s`; then
 mesg n
fi

How to increase /tmp space on live server

Use the following steps to increase the size of /tmp

First you need to stop Mysql in server

/etc/init.d/mysql stop
kill the tailwatchd process

pstree -p | grep tailwatchd
kill -9  < process ID>

You may need to copy  the /tmp to backup

cp -prf /tmp /tmp.bak

Set the /tmp to 2GB. Use the dd command for creating a file of 2GB

dd if=/dev/zero of=/usr/tmpDSK bs=1024k count=2048

unmount /tmp partition

umount /tmp

Format the /tmp partition

mkfs -t ext3 /usr/tmpDSK

Remount in secure environment

/scripts/securetmp