Dear all,
  Thanks. You are right. After I have rewinded the tape by:
mt -f /dev/nst0 rewind
  It does not show the following error any longer.

>  For the amrestore,
>/usr/sbin/amrestore /dev/nst0 202.85.165.88 '/home$'
>amrestore: missing file header block
>amrestore: WARNING: not at start of tape, file numbers will be offset
>amrestore:   0: reached end of tape: date $?�?
>[?�鏽@�?1 /??
>觸藥�?

Then, I run
/usr/sbin/amrestore /dev/nst0 202.85.165.88 '/operator/usr$'
and it is okay and create a file named:
202.85.165.88._operator_usr.20001215.0
-rw-r-----    1 operator root     555550720 Dec 16 11:10
202.85.165.88._operator_usr.20001215.0

Than, I run:
/sbin/restore -ivf 202.85.165.88._operator_usr.20001215.0
Verify tape and initialize maps
Tape block size is 32
/sbin/restore: Tape is not a dump tape

  My setting is standard Red Hat 7.0 with the rpm package of amanda. And I
have also tried:
tar -zxvf 202.85.165.88._operator
tar (child): 202.85.165.88._operator: Cannot open: No such file or directory
tar (child): Error is not recoverable: exiting now
tar: Child returned status 2
tar: Error exit delayed from previous errors

  So, I am wondering what is wrong with my command?

Yours,
Richard Ao






----- Original Message -----
From: "John R. Jackson" <[EMAIL PROTECTED]>
To: "richard" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>; "amanda-users" <[EMAIL PROTECTED]>
Sent: Saturday, December 16, 2000 5:08 AM
Subject: Re: about setting up the disklist.conf


> >  I have followed the instruction and set the amanda.conf to
> >
> >dumpcycle 7 days
> >runspercycle 1 days
> >tapecycle 7 tapes
> >labelstr "^DailySet1[0-9][0-9]*$"
>
> If you're running amdump every day, do not set runspercycle.
>
> >  I have seven tapes to have a cycle in one week. Is it correct to label
> >them as DailySet100, DailySet101, DailySet102,...?
>
> What you label them is entirely up to you, within the limits you impose
> on yourself via labelstr.  The sequence you list is as good as any.
>
> >Should I run the command
> >amlabel DailySet1 DailySet100
> >amlable DailySet1 DailySet101 ....
> >as root or as operator?
>
> As the Amanda user (which appears to be operator for you), not root.
>
> >  For the amrestore,
> >/usr/sbin/amrestore /dev/nst0 202.85.165.88 '/home$'
> >amrestore: missing file header block
> >amrestore: WARNING: not at start of tape, file numbers will be offset
> >amrestore:   0: reached end of tape: date $?�?
> >[?�鏽@�?1 /??
> >觸藥�?
>
> Did you rewind the tape first?
>
> I know about the garbage on the "reached end of tape" line and have just
> not gotten around to fixing it yet.
>
> >Richard Ao
>
> John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to