NetVault server operating system Linux RedHat
NetVault versions that see the problem: 10.0, 10.01
NetVault database backup fails and we see “Failed to backup logs db” in the following in the binary log extract:
Background 2014/10/17 12:19:10 256 Data Plugin nv Backup command: /usr/netvault/pgsql/bin/pg_dump -U postgres --format=tar --port 51486 netvault_logs
Error 2014/10/17 12:20:13 256 Data Plugin nv Failed to backup logs db
Error 2014/10/17 12:20:14 256 Jobs nv Fatal error: Backup failed
pg_dump uses tmp directory while backing up the NetVault database. This is normally located /tmp and this partition can often be small causing this problem as the tmp directory runs out of space.
1/ Create /tmp on a new partition enough free disk space.
2/ I edited /etc/fstab so that the system will use newly created/tmp partition after the next reboot
/dev/sdb1 /tmp ext3 defaults 0 0
3/ temporarily mounted the new partition and copied the current contents of /tmp to the new partition.
4/ set permissions on the tmp partition:
chmod -R 1777 /tmp
5/ rebooted the server and verify /tmp is mounted with sufficient space
df –m
6/ run the NetVault database backup