* Dustin J. Mitchell <dus...@zmanda.com> [20100430 02:33]: > On Thu, Apr 29, 2010 at 1:37 PM, Jean-Francois Malouin > <ma...@bic.mni.mcgill.ca> wrote: > > Using amrecover to extract a multi virtual tape dump I see something > > confusing even though in the end the dump is successfully extracted: > > amrecover wants the second tape (vtape-2) loaded before the first one > > (vtape-1) but it seems that amanda does load the first tape correctly > > as while having typed yes at the prompt `Load tape vtape-2 now' I see > > that the `drive' is loaded with vtape-1: > > Is there a second drive (drive1) open here? The amrecover transcript > you pasted seems to only need vtape-2, so I'm not sure where vtape-1 > is involved. Perhaps in a previous recovery?
no, the dump used 2 vtapes, vtape-1 and vtape-2, and there is only one `drive'. I did 2 run with amrecover just to convince me that it really asked for vtape-2 *before* vtape-1. Since I have `amrecover_changer' set I just hit return to see what would happen and vtape-1 got loaded first. > > It's amidxtaped which is manipulating the tapes, so you'll want to > look in its debug log to see what's really going on. Somehow I overlooked this debug file. Here is it. Thu Apr 29 16:13:31 2010: amidxtaped: pid 25530 ruid 110 euid 110 version 3.1.0beta2: start at Thu Apr 29 16:13:31 2010 Thu Apr 29 16:13:31 2010: amidxtaped: CTL << FEATURES=ffffffff9efefbffffffffff00 Thu Apr 29 16:13:31 2010: amidxtaped: CTL << CONFIG=test Thu Apr 29 16:13:31 2010: amidxtaped: CTL << LABEL=vtape-2:3 Thu Apr 29 16:13:31 2010: amidxtaped: CTL << FSF=3 Thu Apr 29 16:13:31 2010: amidxtaped: CTL << HEADER Thu Apr 29 16:13:31 2010: amidxtaped: CTL << DEVICE=changer Thu Apr 29 16:13:31 2010: amidxtaped: CTL << HOST=^gustav$ Thu Apr 29 16:13:31 2010: amidxtaped: CTL << DISK=^/raid/hrrt/SCS_SCANS$ Thu Apr 29 16:13:31 2010: amidxtaped: CTL << DATESTAMP=20100428171243 Thu Apr 29 16:13:31 2010: amidxtaped: CTL << END Thu Apr 29 16:13:31 2010: amidxtaped: pid 25530 ruid 110 euid 110 version 3.1.0beta2: rename at Thu Apr 29 16:13:31 2010 Thu Apr 29 16:13:31 2010: amidxtaped: find_volume labeled 'vtape-1' Thu Apr 29 16:13:31 2010: amidxtaped: parse_inventory: load slot 1 with label 'vtape-1' Thu Apr 29 16:13:31 2010: amidxtaped: ignoring spurious Amanda::Recovery::Scan abort call Thu Apr 29 16:13:31 2010: amidxtaped: recovering from split dumpfile: date 20100428171243 host gustav disk /raid/hrrt/SCS_SCANS part 1/UNKNOWN lev 0 comp N program APPLICATION Thu Apr 29 16:13:31 2010: amidxtaped: Building type FILE header of 32768-32768 bytes with name='gustav' disk='/raid/hrrt/SCS_SCANS' dumplevel=0 and blocksize=0 Thu Apr 29 16:21:07 2010: amidxtaped: CTL << AVAIL-DATAPATH AMANDA Thu Apr 29 16:21:07 2010: amidxtaped: CTL >> USE-DATAPATH AMANDA Thu Apr 29 16:21:07 2010: amidxtaped: CTL << DATAPATH-OK Thu Apr 29 16:21:07 2010: amidxtaped: Starting <x...@0x11f1470 (<xfersourcerecov...@0x120b100> -> <xferdes...@0x120f430>)> Thu Apr 29 16:21:07 2010: amidxtaped: Final linkage: <xfersourcerecov...@0x120b100> -(PULL_BUFFER)-> <xferelementg...@0x1212060> -(WRITEFD)-> <xferdes...@0x120f430> Thu Apr 29 16:21:07 2010: amidxtaped: started xfer; datapath=amanda Thu Apr 29 16:21:45 2010: amidxtaped: Device file:/vtapes/drive0 error = 'EOF' Thu Apr 29 16:29:18 2010: amidxtaped: find_volume labeled 'vtape-2' Thu Apr 29 16:29:18 2010: amidxtaped: parse_inventory: load slot 2 with label 'vtape-2' Thu Apr 29 16:29:18 2010: amidxtaped: ignoring spurious Amanda::Recovery::Scan abort call Thu Apr 29 16:30:07 2010: amidxtaped: Device file:/vtapes/drive0 error = 'EOF' Thu Apr 29 16:31:06 2010: amidxtaped: recovery complete Thu Apr 29 16:31:06 2010: amidxtaped: exiting with 0 Thu Apr 29 16:31:06 2010: amidxtaped: pid 25530 finish time Thu Apr 29 16:31:06 2010 thanks, jf > > Dustin > > -- > Open Source Storage Engineer > http://www.zmanda.com -- <° >< Jean-François Malouin McConnell Brain Imaging Centre Systems/Network Administrator Montréal Neurological Institute 3801 Rue University, Suite WB219 Montréal, Québec, H3A 2B4 Phone: 514-398-8924 Fax: 514-398-8948