Anyone has any insights as to what I am doing wrong?I am trying to restore a single file from a 5 tape dump.
The tape inserted in the beginning is the correct tape (tape 5).Should I get any message from restore saying that it liked my tape 5 and would now need the next tape ? Because I inserted tape 4 after 5 and got Wrong volume 2.Can anyone explain why it does not say wrong volume 5 but says wrong volume 1. Moreover why does it crap out on me with the 'Tape Block size should be 10240, not 64512' message ? Any help is greatly appreciated.The dump command I used is : dump 0uf urst0a,urst0a,urst0a,urst0a,rst0a /vol/vol0
bean> restore xvfD rst0a /vol/vol0/test/restore /users/john/lib/hit.c RESTORE: Dump date: Mon Jul 28 15:46:35 PDT 1999 RESTORE: Dumped from: the epoch RESTORE: Level 0 dump of /vol/vol0/ on bean:/vol/vol0/../snapshot_for_backup.5 RESTORE: Label: none RESTORE: Initialize symbol table. RESTORE: Extract directories from tape RESTORE: Warning: cannot create directory /vol/vol0/test/restore: File exists RESTORE: Make node /vol/vol0/test/restore RESTORE: Extract requested files RESTORE: You have not read any tapes yet. Please start with the last tape volume and work towards towards the first. RESTORE: Specify next tape volume #:5 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: rst0a) urst0a RESTORE: Wrong volume 1 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Wrong volume 2 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Wrong volume 3 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Wrong volume 4 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Tape Block size should be 10240, not 64512. RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Tape Block size should be 10240, not 64512. RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) none RESTORE: No more tapes, recovery operation aborted bean>
Anyone has any insights as to what I am doing wrong?I am trying to restore a single file from a 5 tape dump.
The tape inserted in the beginning is the correct tape (tape 5).Should I get any message from restore saying that it liked my tape 5 and would now need the next tape ? Because I inserted tape 4 after 5 and got Wrong volume 2.Can anyone explain why it does not say wrong volume 5 but says wrong volume 1. Moreover why does it crap out on me with the 'Tape Block size should be 10240, not 64512' message ? Any help is greatly appreciated.The dump command I used is : dump 0uf urst0a,urst0a,urst0a,urst0a,rst0a /vol/vol0
For the most part, everything is all right.
The first tape you had loaded was tape 1. If it weren't the restore wouldn't have started running at all.
When you told restore you were going to put in tape 5, it kept telling you "This is not tape 5." when you put tapes in that weren't tape 5.
Finally, you put in a tape that was not written with 63KB (default dump) tape records. Instead the tape record was 10KB - hence the message about 10240.
Most likely, that last tape you tried was not part of the dump. Dump writes ALL of the tapes with ONE tape record size, so if the tape record size is 10KB, it is unlikely to be part of the group.
To be sure, you could pop in the final tape, and type: restore tvfb rst0a 10
and see what happens. It will probably tell you something to the effect of "This is not a dump tape."
Random thoughts alert <<
So, maybe you only had a four tape dump? or the fifth tape is elsewhere? or the fifth tape wasn't rewound when you started?
These are all just theories... You could also just say "Start at tape 4, and pop that tape in." Probability says that your file is on one of the other tapes.
For further diagnosis, I would call NetApp tech support.
Stephen Manley File System Recovery CousCous and Tuna eater
bean> restore xvfD rst0a /vol/vol0/test/restore /users/john/lib/hit.c RESTORE: Dump date: Mon Jul 28 15:46:35 PDT 1999 RESTORE: Dumped from: the epoch RESTORE: Level 0 dump of /vol/vol0/ on bean:/vol/vol0/../snapshot_for_backup.5 RESTORE: Label: none RESTORE: Initialize symbol table. RESTORE: Extract directories from tape RESTORE: Warning: cannot create directory /vol/vol0/test/restore: File exists RESTORE: Make node /vol/vol0/test/restore RESTORE: Extract requested files RESTORE: You have not read any tapes yet. Please start with the last tape volume and work towards towards the first. RESTORE: Specify next tape volume #:5 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: rst0a) urst0a RESTORE: Wrong volume 1 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Wrong volume 2 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Wrong volume 3 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Wrong volume 4 RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Tape Block size should be 10240, not 64512. RESTORE: Mount tape volume on bean RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) RESTORE: Tape Block size should be 10240, not 64512. RESTORE: Enter ``none'' if there are no more tapes RESTORE: otherwise enter tape name (default: urst0a) none RESTORE: No more tapes, recovery operation aborted bean>