Amanda-Users

Re: file system sizes

2002-08-16 18:11:58
Subject: Re: file system sizes
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 16 Aug 2002 17:46:29 -0400
On Fri, Aug 16, 2002 at 02:16:45PM -0500, Wayne Byarlay wrote:
> Can anybody recommend the best way to estimate whether all my filesystems
> will fit onto one tape? Right now I'm running a 15-day incremental cycle,
> but I want to remove friday from that cycle, and do a full backup. The
> problem is, it'll take me a LONG time to login to each server, df -k, etc.
> to estimate the sizes.
> 
> I'm guessing that maybe Amanda might have this info stored away in some
> secret file somewhere, or I can use some deft command-line switches to
> "audit" all my file systems.
> 
> Any ideas?

amadmin has all sorts of neat reports.  Check out the man pages.
For example:

        amanda$ amadmin ds1 balance

         due-date  #fs   orig KB    out KB  balance
        -------------------------------------------
         8/16 Fri    1   5407150   3967936    +0.9%
         8/17 Sat    0         0         0     ---
         8/18 Sun    1   7942010   6118976   +55.6%
         8/19 Mon    1    660340    630240   -84.0%
         8/20 Tue    1   7421420   5370048   +36.6%
         8/21 Wed    6   4950160   3875904    -1.4%
         8/22 Thu    9   8486540   3624704    -7.8%
        -------------------------------------------
        TOTAL       19  34867620  23587808  3931301  (estimated 6 runs per 
dumpcycle)

I think the totals are the before and after compression sizes of
the planned level 0's for the next dumpcycle.

For individual file systems, see your "curinfo" dir.  Under "host/filesys"
there should be a file named "info".  The line beginning "stats: 0", eg.

        stats: 0 635750 321824 208 1029397183 12 DS1-10

has the last uncompressed (635750KB) and compressed (321824) sizes.
You should be able to get them all with "grep '^stats: 0 ' curinfo/*/*/info"

-- 
Jon H. LaBadie                  jon AT jgcomp DOT com
 JG Computing
 4455 Province Line Road        (609) 252-0159
 Princeton, NJ  08540-4322      (609) 683-7220 (fax)

<Prev in Thread] Current Thread [Next in Thread>