Re: trouble with test restore

2013-11-25 Thread Debra S Baddorf
> 
> 
> xtracting files using tape drive cback://amandatest/vtape/DailySet1 on host 
> localhost.
> Load tape DailySet1-3 now
> Continue [?/Y/n/s/d]? y
> 
> [this is where it just hangs up]
> 
> --
> Other info:
> 
> /var/log/amanda/log.error/  is empty
> 
> (As an aside, there are a large multitude of various log files - is there an 
> amanda command that parses them all to look for errors and reports them?)
> 

Have you tried
 $  grep  -ir  "DailySet1-3"  /tmp/amanda/

(substitute if your logs aren't being sent to that directory)

There should also be a file  *amrecover*mmdd*   though the hangup might be 
in a *taper*  file or something else like that.

Those are some first steps, in case better info doesn't come soon!
Deb Baddorf
Fermilab


Fwd: trouble with test restore

2013-11-25 Thread Michael Stauffer
Hi, does anyone have thoughts on the issue below?

What's the proper way to clean my amanda setup so I can try the test
dump/restore from scratch?

Thanks

-- Forwarded message --
From: Michael Stauffer 
Date: Thu, Nov 14, 2013 at 11:29 AM
Subject: trouble with test restore
To: amanda-users@amanda.org


Hi,

I'm still working through the 15-minute Amanda tutorial. Maybe '15-hour'
would be a better title? ;-)

My first backup/dump failed b/c my test backup set was 6GB, > than the
default 5GB tape/slot size for the test setup. I changed the tape/slot size
to 6.5GB and changed the config to allow 2 tapes per dump. Then I ran it
again, and the amreport was happy.

But then when I ran the recover, it hung during the 'Load tape' step (see
below, from 2nd attempt). So I tried amclean and there were no reported
issues with the log, and used amrmtape to remove the two tapes.

I reran the dump and again it reported no problems. But the recover is
hanging again. Here's the output. Does anyone have suggestions? Thanks!

[root@cback amanda]# amrecover DailySet1
AMRECOVER Version 3.3.4. Contacting server on localhost ...
220 cback AMANDA index server (3.3.4) ready.
Setting restore date to today (2013-11-13)
200 Working date set to 2013-11-13.
200 Config set to DailySet1.
501 Host cback.uphs.upenn.edu is not in your disklist.
Trying host cback.uphs.upenn.edu ...
501 Host cback.uphs.upenn.edu is not in your disklist.
Trying host cback.uphs.upenn.edu ...
501 Host cback.uphs.upenn.edu is not in your disklist.
Use the sethost command to choose a host to recover
amrecover> sethost cslim.uphs.upenn.edu
200 Dump host set to cslim.uphs.upenn.edu.
amrecover> listdisk
200- List of disk for host cslim.uphs.upenn.edu
201- /amandatestdata/
200 List of disk for host cslim.uphs.upenn.edu
amrecover> setdisk /amandatestdata/
200 Disk set to /amandatestdata/.
amrecover> ls
2013-11-13-15-15-01 otherfile
2013-11-13-15-15-01 helloworld.txt
2013-11-13-15-15-01 .
amrecover> add *
Added file /otherfile
Added file /helloworld.txt
amrecover> extract

Extracting files using tape drive cback://amandatest/vtape/DailySet1 on
host localhost.
The following tapes are needed: DailySet1-3

Extracting files using tape drive cback://amandatest/vtape/DailySet1 on
host localhost.
Load tape DailySet1-3 now
Continue [?/Y/n/s/d]? y

[this is where it just hangs up]

--
Other info:

/var/log/amanda/log.error/  is empty

(As an aside, there are a large multitude of various log files - is there
an amanda command that parses them all to look for errors and reports them?)

[amandabackup@cback ~]$ ls -l /amandatest/vtape/DailySet1/slot3/
total 300
-rw---. 1 amandabackup disk  32768 Nov 13 15:15 0.DailySet1-3
-rw---. 1 amandabackup disk  33062 Nov 13 15:15
1.cslim.uphs.upenn.edu._amandatestdata_.0
-rw---. 1 amandabackup disk 234609 Nov 13 15:15
2.cfile.uphs.upenn.edu._jet_admin_temp_.0

[amandabackup@cback ~]$ amreport DailySet1
Hostname: cback.uphs.upenn.edu
Org : DailySet1
Config  : DailySet1
Date: November 13, 2013

These dumps were to tape DailySet1-3.
The next 2 tapes Amanda expects to use are: 2 new tapes.
The next 2 new tapes already labelled are: DailySet1-4, DailySet1-5


STATISTICS:
  Total   Full  Incr.   Level:#
        
Estimate Time (hrs:min) 0:00
Run Time (hrs:min)  0:00
Dump Time (hrs:min) 0:00   0:00   0:00
Output Size (meg)0.20.20.0
Original Size (meg)  1.31.30.0
Avg Compressed Size (%) 14.5   14.5--
DLEs Dumped2  2  0
Avg Dump Rate (k/s)   1010.3 1010.3--

Tape Time (hrs:min) 0:00   0:00   0:00
Tape Size (meg)  0.20.20.0
Tape Used (%)0.00.00.0
DLEs Taped 2  2  0
Parts Taped2  2  0
Avg Tp Write Rate (k/s)985.0  985.0--

USAGE BY TAPE:
  Label   Time Size  %  DLEs Parts
  DailySet1-3 0:00   0G0.0 2 2

NOTES:
  planner: Adding new disk cslim.uphs.upenn.edu:/amandatestdata/.
  taper: Slot 2 is empty, autolabel not set
  taper: Slot 3 with label DailySet1-3 is usable
  taper: tape DailySet1-3 kb 197 fm 2 [OK]


DUMP SUMMARY:
DUMPER
STATS   TAPER STATS
HOSTNAME DISK L ORIG-GB  OUT-GB  COMP%  MMM:SS
KB/s MMM:SS   KB/s
--- --
-- -
cfile.uphs.upenn.edu /jet/admin/temp/ 0   0   0   14.60:00
1304.1   0:00 1970.0
cslim.uphs.upenn.edu /amandatestdata/ 0   0   0   10.00:00
22.5   0:000.0

(brought to you by Amanda version 3.3.4)


How does Amanda reassemble partials of a full backup?

2013-11-25 Thread Jean-Louis Martineau

I don't know what you the mean by portion or partials:

  - portion of the specified level0 backup for every runcycle
  - series of partial level0 backups created at different dates
  - partials from different dates

I think you clearly understand that amanda do full of the dles on 
different days.
I think what you call 'partial level0' is that only a few dle get the 
full on the same day. eg some dle have a full and some have a level 1.


Each dle are independant, you don't restore all dle at the same time, 
you restore a single dle at at time.
Each dle have the date for the full and level 1,2,3, ..., amrecover 
restore from them.


You must do the restore for each dle independently.

Jean-Louis


   Hello, I am evaluating zmanda for deployment and have the following
   question regarding recovery and behavior:

   It would appear that Amanda does a portion of the specified level0
   backup for every runcycle. Ie, for every run it does size of
   disklist/runcycle to complete a full backup for the dumpcycle.

   Let's presume that the incremental backups for a dump cycle do not
   exist or are destroyed (perhaps by running every run with noinc?)

   It would appear that for a dumpcycle you have a series of partial
   level0 backups created at different dates.

   How does amrecover explain what the state of the data if it is made
   up of partials from different dates?

   http://www.backupcentral.com/wiki/index.php/AMANDA

   In this example it happens that the total size of the disklist is
   split for each run by directory. However, it would appear that in
   reality Amanda generates the partial level0 based on the entire size
   of the disklist, so presumably a partial level0 is in fact a partial
   set of files comprising total size/runcycle.