tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
From: Dougal Scott <dwagon () aaii ! oz ! au>
To: tru64-unix-managers
Subject: SUMMARY: AdvFS reporting wrong space used
Date: Mon, 29 Jan 1996 00:36:39 +0000	[thread overview]
Message-ID: <96076327921527.tru64-unix-managers.marc@archive.invalid> (raw)

------- =_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 <maillard@fgt.dec.com> 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 <stannenb@emerald.tufts.edu> 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 <tpb@zk3.dec.com> 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--

                 reply	other threads:[~1996-01-29  0:36 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox