I'm using (for the first time) Amanda to backup an LVM snapshot of /var/opt/scalix and noticing a worrying discrepency between the size of the filesystem as reported by the usual *nix commands and the size as reported by Amanda.
root@bogus# du -s -BM /mnt/sxsnaptmp/
10467M /mnt/sxsnaptmp/
But Amanda reports ORIG-Kb as 5608240
These are the dump defs:
define dumptype global {
index yes
}
define dumptype scalix {
global
comment "mounted snapshot vol"
compress server fast
priority medium
}
And from disklist:
bogus.local /mnt/sxsnaptmp scalix
Could this be a simple permissions problem? I would've thought that amcheck would've
flagged up any errors in this regard and amdump wouldn't just silently
ignore. As far as any other dumps are concerned, the size corresponds.
One ray of hope is the Amanda amdump logs which do contain:
planner: time 101.996: got partial result for host bogus.local disk /mnt/sxsnaptmp: 0 -> 9870236K, 1 -> 309002K, -1 -> -2K
Which at least seems in the ballpark!
Is there anything about the Scalix message store that would cause this apparent discrepancy? Someone has suggested hard-linking of data where multiple copies of an item exist but even if that were the case du should only count these entries once unless the -l is passed.
Thanks,

