* restore without rewind
@ 2006-02-14 14:37 Chris
2006-02-14 18:17 ` Kjell Andresen
0 siblings, 1 reply; 3+ messages in thread
From: Chris @ 2006-02-14 14:37 UTC (permalink / raw)
HI. Unix newbie here. I have a small Tru64 system. Client gave me a
tape with several dump files on it. I know one can use a no-rewind
version of the tape device for general operations. And it seems to work
fine with TAR.
But for some reason when I try to restore dump- files consecutively,
(-f /dev/ntape/tape0 ),
it doesn't work. It seems not to be in position to start the next file.
Sorry but I don't have the error message handy just now.
I have to use the -s switch to go find each one after a rewind.
Does this sound familiar to anyone? Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: restore without rewind
2006-02-14 14:37 restore without rewind Chris
@ 2006-02-14 18:17 ` Kjell Andresen
2006-02-14 22:07 ` Chris
0 siblings, 1 reply; 3+ messages in thread
From: Kjell Andresen @ 2006-02-14 18:17 UTC (permalink / raw)
"Chris" <archive.raider@gmail.com> writes:
> HI. Unix newbie here. I have a small Tru64 system. Client gave me a
> tape with several dump files on it. I know one can use a no-rewind
> version of the tape device for general operations. And it seems to work
> fine with TAR.
>
> But for some reason when I try to restore dump- files consecutively,
> (-f /dev/ntape/tape0 ),
> it doesn't work. It seems not to be in position to start the next file.
> Sorry but I don't have the error message handy just now.
> I have to use the -s switch to go find each one after a rewind.
>
> Does this sound familiar to anyone? Thanks.
I have written a script a long time ago, looks like
..
echo 0 : making initial status etc.
mt -f /dev/nrmt0h online
mt -f /dev/nrmt0h status
mt -f /dev/rmt0h rewind
#
# First disk
#
date
echo 1 : Tar fulldump av /admin/cirocco/ora_bck
/sbin/vdump -0 -q -u -b 60 -f /dev/nrmt0h /admin/cirocco/ora_bck
sleep 15
date
echo 2 : Takes fulldump of /admin/cirocco/ora_arc
/sbin/vdump -0 -q -u -b 60 -f /dev/nrmt0h /admin/cirocco/ora_arc
sleep 15
Regards,
Kjell Andresen Systems administrator, University of Oslo, Norway
Center for Information Technology Services and
Department of Geosciences
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: restore without rewind
2006-02-14 18:17 ` Kjell Andresen
@ 2006-02-14 22:07 ` Chris
0 siblings, 0 replies; 3+ messages in thread
From: Chris @ 2006-02-14 22:07 UTC (permalink / raw)
Thanks for your reply.
I was hoping to *restore* without rewinding, the dump tape already
exists. I'm restoring to arbitrary dirs since I'm not set up like the
original system. See below
This sort of thing works, but slow:
mkdir group1
cd group1
restore -r -v -s 1 <restores from default tape--which is ok in my
case>
cd ..
mkdir group2
cd group2
restore -r -v -s 2 <skips to file 2 and restores--works but slow>
cd ..
<there are 20+ of these, so I'd really like
to do without rewind>
===============================================
I tried this instead to speed things up:
mkdir group1
cd group1
restore -r -v -f /dev/ntape/tape0 <this works>
cd ..
mkdir group2
cd group2
restore -r -v -f /dev/ntape/tape0 <gives me a tape read error>
<I thought I'd be positioned at the start of the second dump file, but
doesn't seem to be...>
Any suggestions? Thanks.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2006-02-14 22:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-02-14 14:37 restore without rewind Chris
2006-02-14 18:17 ` Kjell Andresen
2006-02-14 22:07 ` Chris
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox