PDA

View Full Version : can yourecover from tape after removing label ..



mick
November 2nd, 2012, 09:08 AM
Hi

Is there any way to recover data from a tape if you "accidently" ran "amlabel" against a tape ?

I have tried amrestore and amrecover with no success


Thanks

Mick

xHan
November 2nd, 2012, 09:28 AM
What was the command that you run?
Can you still find that tape by "amadmin find"?

mick
November 2nd, 2012, 12:38 PM
What was the command that you run?
Can you still find that tape by "amadmin find"?

AMRESTORE:

-sh-3.2$ amrestore "tape:/dev/st0" njapp1bkp /rsmapp
Restoring from tape NJMonthly-021-000059L5 starting with file 1.

.. Comes back within seconds, with no files recovered

AMRECOVER:

$ amrecover NJMonthly -s njmsg2bkp -t njmsg2bkp -d changer
AMRECOVER Version 3.1.5. Contacting server on njmsg2bkp ...
220 njmsg2 AMANDA index server (3.1.3) ready.
Setting restore date to today (2012-11-02)
200 Working date set to 2012-11-02.
200 Config set to NJMonthly.
amrecover> setdate 2012-09-03
200 Working date set to 2012-09-03.
amrecover> sethost njapp1bkp
200 Dump host set to njapp1bkp.
amrecover> setdisk /rsmapp
200 Disk set to /rsmapp.
amrecover>
amrecover> cd nj001
/rsmapp/nj001
amrecover> ls
2012-09-03-03-00-01 setupProfile.sh


....

amrecover> add setupProfile.sh
Added file /nj001/setupProfile.sh
amrecover> extract

Extracting files using tape drive changer on host njmsg2bkp.
The following tapes are needed: NJMonthly-021

Extracting files using tape drive changer on host njmsg2bkp.
Load tape NJMonthly-021 now
Continue [?/Y/n/s/d]? y
label 'NJMonthly-021' not found
Got no header and data from server, check in amidxtaped.*.debug and amandad.*.debug files on server

martineau
November 2nd, 2012, 01:36 PM
Amanda write an EOT (end of tape) mark after the label, amanda can't read after an EOT.

I don't know if it is possible to read after an EOT, it might depend of the driver and drive.
You should search the web to find how to read after the EOT mark