From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <96076327921527.tru64-unix-managers.marc@archive.invalid> From: Dougal Scott Date: Mon, 29 Jan 1996 00:36:39 +0000 To: tru64-unix-managers Subject: SUMMARY: AdvFS reporting wrong space used X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=96076327921527 ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Original problem: > We have a problem with AdvFS behavior. It reports different amounts of > disk usage between df and vdump. > % df -k /var > Filesystem 1024-blocks Used Avail Capacity Mounted on > alpha#var 456080 24449 272680 8% /var > > yet: > > % vdump 9f - /var >\! /dev/null > ... > vdump: Dumping 47108952 bytes, 50 directories, 308 files I received three answers: * Benoit Maillard though there might have been sparse files hanging around especially in /var/adm/crash. This was not the case, it reports different amounts for any filesystem, not just var. * Saul Tannenbaum said that all the AdvFS tools report usage inconsistently, and that he had been unable to get a useful response from Digital. * Dr. Tom Blinn came through with the best answer, which I'll quote large chunks of: On an AdvFS file system, the "cluster size" (that is, the minimum amount of disk space allocated to a file) is 8K -- 8192 bytes. This differs from the UFS allocation of 1K (1024 bytes) as the smallest "chunk". Thus, if your file system contains a lot of small files, the amount of data that vdump needs to write to the backup medium may be substantially less than the total space allocated on the disk (as reported by df -k). If most of the files are less than 1K in size, for example, you will overallocate the space on the disk by about a factor of 8 -- there will be about 8 times as much disk space allocated as there actually is data in the files. Thank you to all that responded. ------- =_aaaaaaaaaa0 Content-Type: text/plain; charset="us-ascii" Content-Description: signature Dougal Scott Australian Artificial Intelligence Institute dwagon@aaii.oz.au 6/171 La Trobe St. Melbourne 3000 Programmer and Tech Support Australia Phone: +61 3 9663 7922 Fax: +61 3 9663 7937 ------- =_aaaaaaaaaa0--