Amanda-Users

Re: Getting list of DLE's w/o Lev 0s

2006-07-28 14:48:27
Subject: Re: Getting list of DLE's w/o Lev 0s
From: Jon LaBadie <jon AT jgcomp DOT com>
To: amanda-users AT amanda DOT org
Date: Fri, 28 Jul 2006 14:31:33 -0400
On Fri, Jul 28, 2006 at 01:05:47PM -0500, C. Chan wrote:
> Also Sprach jeffrey d anderson:
> 
> >On Friday 28 July 2006 10:17, C. Chan wrote:
> >>Related to Mr. Pearson's previous question:
> >>
> >>Is there a quick way to determine which DLEs do not have any
> >>Lev 0s on any tapes?
> >
> >'amoverview' ought to provide that information.
> 
> Yes, that's what I use now, I search for lines that don't
> have any 0's in them.  But my disklists have 100's of
> entries and usually there are only a handful which are
> missing level 0s for one reason or another.  I end up
> egrep'ing for lines without 0's in them, taking care to
> exclude the hostname and device or directory path since
> those may have 0's as part of the name.  It just seems
> a bit kludgy.

As you already use a home-brewed approach, you might base
your search on the "info" files uncer the curinfo directory.
Here are 3 relevant lines from one DLE info file on my system.

   stats: 0 2096660 1514400 230 1153640525 55 vtape10
   stats: 1 459730 447328 53 1153729521 80 vtape11
   stats: 2 830 96 2 1154077017 76 vtape15

It shows the most recent level 0 is on vtape10.  I believe
that is the information planner uses in its warnings about
impending overwrite of last full dump.

I don't know what it would look like if there were no
full dumps still on my tapes.  I don't happen to have
that situation.  But if you have some you might look
at their info files and see if there is something easy
to look for.  Perhaps the stats: 0 line is missing
and you can "grep -c 'stats: 0' <all info files> and
look for a count of 0, or maybe the data is "-1" and
you can "grep -l" for that.

-- 
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>