I tried to take tar backup in my server, but it ended with an error.
It said that:
/home/back/pallava_backup/fbackup_backup/stape_config
/home/back/romam_new.tar.gz
tar: /home/backup/back.tar.gz: Cannot write: No space left on device
tar: Error is not recoverable: exiting now
[root@OWP-15 back]#
But i checked the system, it has enough space to hold
Try it without the compression option. I'm not sure how GNU tar on your system handles compression under the hood, but I think some older versions just create a temp tar file and then compresses that. Perhaps the uncompressed temp file filled up the disk then was deleted upon failure.
What version of tar are you using and what options are you passing to tar when your script invokes it? Are you using a 32-bit version of tar or a 64-bit version? Output of file utility will tell you that information.
So this is confirmed, your file system is ext3 with block size 1 KB, and this limits file size to 16 GB.
You have to do your backup to another file system with a bigger block size. Or stream it to a tape.
--
Or recreate the /home file system with a bigger block size.
This would delete all your existing data, so you need a full backup before you do it!
Nowerdays mkfs should default to a 4 KB block size, and file size limit is 64 GB.
Or define explicit options as shown by