Symptoms
Avamar garbage collection fails with the following error:
Last GC: finished Fri May 22 12:25:36 2015 after 52m 16s >> recovered 0.00 KB (MSG_ERR_DUPLICATE)
Cause
Garbage collection was started more than once within a short time.
This can be verified by sending the output of theGC maintenance logs to a file and reviewing the contents:
dumpmaintlogs --types=gc --days=5 > gc-maint.log.`date +%y%m%d`
The following maintenance log extract shows a second garbage collection job issued within 15 minutes of an existing job:
2015/05/22-08:38:20.80007 {0.3} starting garbage collection
2015/05/22-08:38:20.80361 {0.3}
2015/05/22-08:38:20.80362 {0.3}
2015/05/22-08:53:41.40871 {0.1} starting scheduled garbage collection
2015/05/22-08:53:41.41290 {0.1}
2015/05/22-08:53:41.41290 {0.1}
2015/05/22-09:25:36.41769 {0.0} failed garbage collection with error MSG_ERR_DUPLICATE
2015/05/22-09:25:36.41826 {0.3} failed garbage collection with error MSG_ERR_DUPLICATE
2015/05/22-09:25:36.92242 {0.6} failed garbage collection with error MSG_ERR_DUPLICATE
2015/05/22-09:25:37.00909 {0.1} failed garbage collection with error MSG_ERR_DUPLICATE
Resolution
Do not attempt to run garbage collection manually.
Allow garbage collection to run as scheduled by the maintenance scheduler.
For more information, see Avamar: About the use of manual Garbage Collection.