Amanda-Users

Re: amanda restores the wrong partition

2003-04-24 14:09:13
Subject: Re: amanda restores the wrong partition
From: Jean-Louis Martineau <martinea AT IRO.UMontreal DOT CA>
To: Tom Brown <tom.brown AT goodtechnology DOT com>
Date: Thu, 24 Apr 2003 14:04:17 -0400
On Thu, Apr 24, 2003 at 05:52:23PM +0100, Tom Brown wrote:
> 
> 
> > On Thu, 24 Apr 2003 at 5:30pm, Tom Brown wrote
> >
> > > [operator@xxxx restore]$amrestore -p /dev/nst0 ron //wss1/web | tar
> xfp -
> > >
> > > and i get...
> > >
> > > amrestore:  20: skipping xxxx._dev_sda5.20030424.1
> > > amrestore:  21: skipping xxxx._dev_rd_c0d0p5.20030424.2
> > > amrestore:  22: skipping xxxx._dev_rd_c0d0p1.20030424.3
> > > amrestore:  23: skipping xxxx._dev_sda2.20030424.1
> > > amrestore:  24: restoring ron.__wss1_web__stage.20030424.1
> <------- I
> > > get this one
> >
> > From 'man amrestore':
> >
> >        Hostname  and  diskname  are special expression descibe in
> >        the "HOST & DISK EXPRESSION" section of amanda(8).  Dates-
> >        tamp  are  special  expression  describe in the "DATESTAMP
> >        EXPRESSION"  section  of  amanda(8).   For   example,   if
> >        diskname is "rz[23]a", it would match disks rz2a and rz3a.
> >
> > It should (I think) go on and get the right one *as well*, but I'm not
> > sure.  You could always 'mt fsf' past the wrong one, and or (if you're
> > using amanda 2.4.4) use the -f option to amrestore.
> 
> It does not go on to get the right one - it restores what it thinks it the
> right one and then stops. I'll look at changing the name for the share to
> see if that helps

As Joshua said, you could 'mt fsf' to the right place before you
start amrecover or amrestore.

try: mt -f /dev/nst0 fsf 25

Jean-Louis
> 
> Tom

-- 
Jean-Louis Martineau             email: martineau AT IRO.UMontreal DOT CA 
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE    Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7        Fax: (514) 343-5834

<Prev in Thread] Current Thread [Next in Thread>