Copying data to new tapes

2007-11-12 Thread Marc Muehlfeld

Hi,

we used a Tandberg Superloader DLT Autoloader for offsite backups. Now I 
ordered a Tandberg Storageloader LTO3. Does anybody of you see a way to get 
the data of the old DTL to the new LTO3 tapes? Doing a 1-to-1 copy is wasting 
many space and money.


My only idea is restore everything on the old tapes to a huge place and backup 
it to LTO agin, isn't it? But this would be to much work.


Marc


--
Marc Muehlfeld (Leitung Systemadministration)
Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost
Lochhamer Str. 29 - D-82152 Martinsried
Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78
http://www.medizinische-genetik.de


Re: Copying data to new tapes

2007-11-12 Thread Gerrit A. Smit -TI-
Op ma 12nov07 om 15:29 schreef Marc Muehlfeld:


 we used a Tandberg Superloader DLT Autoloader for offsite backups. Now I 
 ordered a Tandberg Storageloader LTO3. Does anybody of you see a way to get 
 the data of the old DTL to the new LTO3 tapes? Doing a 1-to-1 copy is wasting 
 many space and money.
 
 My only idea is restore everything on the old tapes to a huge place and backup
 it to LTO agin, isn't it? But this would be to much work.

You could write serveral DLT's to one LT03, using the non-rewind device
(which might be neede anyhow).

Gerrit


Re: Copying data to new tapes

2007-11-12 Thread Marc Muehlfeld

Gerrit A. Smit -TI- schrieb:

You could write serveral DLT's to one LT03, using the non-rewind device
(which might be neede anyhow).


But how ll Amanda handle this later?


Btw: You don't get engough mail, because you request a return receipt for your 
mailinglist posting? :-)



--
Marc Muehlfeld (Leitung Systemadministration)
Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost
Lochhamer Str. 29 - D-82152 Martinsried
Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78
http://www.medizinische-genetik.de


Re: Copying data to new tapes

2007-11-12 Thread Sven Rudolph
Marc Muehlfeld [EMAIL PROTECTED] writes:

 we used a Tandberg Superloader DLT Autoloader for offsite backups. Now
 I ordered a Tandberg Storageloader LTO3. Does anybody of you see a way
 to get the data of the old DTL to the new LTO3 tapes? Doing a 1-to-1
 copy is wasting many space and money.

 My only idea is restore everything on the old tapes to a huge place
 and backup it to LTO agin, isn't it? But this would be to much work.

When copying Amanda tapes to a larger media, I read all parts with dd
as long as the capacity of the new tape is reached and then I write
these parts to the new tape with dd.

In order to recover you should position the tape manually (with mt),
and you must disable amrecover_check_label in amanda.conf (otherwise
amrecovr would rewind and see the wrong tape label at the beginning of
the tape.

Sven




Re: Copying data to new tapes

2007-11-12 Thread Marc Muehlfeld

Sven Rudolph schrieb:

In order to recover you should position the tape manually (with mt),
and you must disable amrecover_check_label in amanda.conf (otherwise
amrecovr would rewind and see the wrong tape label at the beginning of
the tape.


Sounds good. I'll try that. How do I know the filemarks later where one tape 
ends and the new one beginns? Do I have to track this by myself on which 
position which tape is stored?



--
Marc Muehlfeld (Leitung Systemadministration)
Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost
Lochhamer Str. 29 - D-82152 Martinsried
Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78
http://www.medizinische-genetik.de


Re: Copying data to new tapes

2007-11-12 Thread Sven Rudolph
Marc Muehlfeld [EMAIL PROTECTED] writes:

 Sven Rudolph schrieb:
 In order to recover you should position the tape manually (with mt),
 and you must disable amrecover_check_label in amanda.conf (otherwise
 amrecovr would rewind and see the wrong tape label at the beginning of
 the tape.

 Sounds good. I'll try that. How do I know the filemarks later where
 one tape ends and the new one beginns? Do I have to track this by
 myself on which position which tape is stored?

I create a listing, print it on paper and store it together with the
tape.

Sven
-
#!/bin/sh

# list_amanda_tape

usage()
{
echo $0 [--blocksize xxk] ntapedev
}

case $1 in
--blocksize)
blocksize=$2
shift; shift
;;
--*)usage 2
exit 1
;;
esac

TAPE=$1
[ -c $TAPE ] ||
{
usage 2
exit 1
}

mt -f $TAPE rewind
n=0

while line=$(dd if=$TAPE bs=32k count=1 2/dev/null | head -1 )
do
[ -n $line ] || break
printf '%03d ' $n
echo $line
mt -f $TAPE fsf
n=$((n+1))
done

mt -f $TAPE rewind



Re: Copying data to new tapes

2007-11-12 Thread Marc Muehlfeld

Sven Rudolph schrieb:

I create a listing, print it on paper and store it together with the
tape.


I'll get the new autoloader end of the week. I'll try your script then. Thanks.



--
Marc Muehlfeld (Leitung Systemadministration)
Zentrum fuer Humangenetik und Laboratoriumsmedizin Dr. Klein und Dr. Rost
Lochhamer Str. 29 - D-82152 Martinsried
Telefon: +49(0)89/895578-0 - Fax: +49(0)89/895578-78
http://www.medizinische-genetik.de


Re: Copying data to new tapes

2007-11-12 Thread Jean-Louis Martineau

amanda can't do it automaticaly, but it is planned.

You could restore everything on the holding disk and use amflush to 
flush them to the new tape.

amrecover will correctly works with the new tape.

if your blocksize on tape is 32k, it is a simple as:
 cd /holding/disk/path.
 mkdir 20070101010101
 cd 20070101010101
 for all old tapes
amrestore -r /device/name
 rm all dump that are complete.
 amflush

You should verify the result.

Jean-Louis


Marc Muehlfeld wrote:

Hi,

we used a Tandberg Superloader DLT Autoloader for offsite backups. Now 
I ordered a Tandberg Storageloader LTO3. Does anybody of you see a way 
to get the data of the old DTL to the new LTO3 tapes? Doing a 1-to-1 
copy is wasting many space and money.


My only idea is restore everything on the old tapes to a huge place 
and backup it to LTO agin, isn't it? But this would be to much work.


Marc