* David Simpson <[email protected]> [20151130 11:53]:
> Sorry I'm back so soon with more Qs - I guess getting stuck into the
> restores is giving me a lot to think about!
>
> How can one find out the number of filemarks on the tape? (assuming
> worst case no amanda info and best case)
> -Do I need to know this? (see below)
A simple shell script will do it. Replace the blocksize in dd below
with the value you use. Position the tape head at BOT and just let it
run until you hit EOT.
#!/bin/sh
TAPEDEV="$1"
if [ "$TAPEDEV" = "" ]; then
echo "you must provide a tape device!"
exit 1
else
while mt -f $TAPEDEV fsf 1 ; do
dd if=$TAPEDEV bs=2048k count=1 | head -1
sleep 1
done
fi
>
> -----
>
> Layout:
>
> How is Amanda writing to the tape?
> -I have part_size 200G
> -Blocksize 1024k
> -TAR
>
> Does this mean I have this layout(?):
>
> | 1024k | Start of DLE or DLE up to 200GB in 1024k blocks |
> 1024k | DLE or continuation of DLE, 200GB in 1024k blocks |
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------->
> | HEADER | AMANDA DUMP (UNDERSTOOD BY TAR) | HEADER
> | AMANDA DUMP (UNDERSTOOD BY TAR ) |
>
>
>
> Now for a real world test - the DLE is bigger than 500GB .. let's say its
> 555GB. So that'd mean 3 parts which can be understood by tar.
>
> To restore this I need to join those 3 first? Then use tar? I've not found
> an example of this yet.
>
> thanks
> David
>
> --------------------
> David Simpson - Computing Support Officer
> IBME - Institute of Biomedical Engineering
> Old Road Campus Research Building
> Oxford, OX3 7DQ
> Tel: 01865 617697 ext: 17697
>
--
Jean-François Malouin | IT Operations and Infrastructure
McConnell Brain Imaging Centre | MNI | McGill University