* Newbie questions on dump
@ 1993-08-18 19:56 Cameron H. Matthews
1993-08-18 21:23 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
0 siblings, 1 reply; 4+ messages in thread
From: Cameron H. Matthews @ 1993-08-18 19:56 UTC (permalink / raw)
Hi,
Newbie alert. Please don't flame if this is a FAQ.
One pointer is sufficient.
Am having problems doing dumps on a DEC ALPHA running
OSF/1. The Guide to Sys Admin simply says to use dump. I do
so but when listing out the tape via "restore -t", it tells me
at the beginning that the tape is not a dump tape. If I try to
do in interactive restore, it bombs with "not a dump tape".
So, what is a "dump tape"? Is there some header that
must be put on the tape? Or an ANSI label? Why is this not in
any of the Sys Admin guides that I have?
Also, what is the problem with putting multiple dumps
on a single tape? If you have a number of small file systems,
this can be a pain having to waste 4GB DAT tapes. Any advice,
hints, or tricks?
Thanks!
--
** Please respond to the below address rather than the one that
** you see on the From: line ( until I can fix sendmail ).
Cameron H. Matthews
matthews@apg16.saic.com
(619)535-7161
Advanced Projects Group
Science Applications International Corporation
#include "std_disclaimer.h"
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Newbie questions on dump
1993-08-18 19:56 Newbie questions on dump Cameron H. Matthews
@ 1993-08-18 21:23 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1993-08-19 17:25 ` Cameron H. Matthews
0 siblings, 1 reply; 4+ messages in thread
From: Alan Rollow - Alan's Home for Wayward Tumbleweeds. @ 1993-08-18 21:23 UTC (permalink / raw)
In article <14941557@MVB.SAIC.COM>, matthews@apg16.saic.com (Cameron H. Matthews) writes:
>Newsgroups: comp.unix.osf.osf1
>From: matthews@apg16.saic.com (Cameron H. Matthews)
>Reply-To: matthews@apg16.saic.com (Cameron H. Matthews)
>Subject: Newbie questions on dump
>
>Hi,
>
> Am having problems doing dumps on a DEC ALPHA running
>OSF/1. The Guide to Sys Admin simply says to use dump. I do
>so but when listing out the tape via "restore -t", it tells me
>at the beginning that the tape is not a dump tape. If I try to
>do in interactive restore, it bombs with "not a dump tape".
Left to itself I believe the interesting defaults for a dump
command by itself are:
Level: 0, though maybe 9.
Tape: /dev/rmt0h
Device: /dev/rrz0g
The default tape device of restore(8) should also be rmt0h. So,
if the dump(8) worked correctly and you haven't changed tapes,
whatever was in rmt0h should have a dump on it.
If you aren't strictly using the defaults, please post the
command you are using. A transcription of the output from
dump would also be useful to verify that it is running
correctly.
> So, what is a "dump tape"? Is there some header that
>must be put on the tape? Or an ANSI label? Why is this not in
>any of the Sys Admin guides that I have?
The first record of a dump tape, has a magic number in it. Restore
looks at this record and assumes it has the necessary structure.
If the magic number has the right value, then restore can treat
the tape as one written by dump(8).
> Also, what is the problem with putting multiple dumps
>on a single tape? If you have a number of small file systems,
>this can be a pain having to waste 4GB DAT tapes. Any advice,
>hints, or tricks?
One of the options on dump(8) is used to specify an alternate
device or file or the dump itself; 'f'. A feature of the tape
drive naming scheme is that one of the names of a tape drive
tell it not to rewind when the drive is closed: /dev/nrmt*.
So, using the 'f' option to specify an alternate device and
the "nrmt" name of a tape drive you can arrange for the tape
not to rewind between commands. Thus each new dump will be
written after the last.
# dump 0f /dev/nrmt0h file-system
# dump 0f /dev/nrmt0h next-file-system
# dump 0f /dev/nrmt0h and-so-on
Unloading the tape should cause it to rewind, or you can explicitly
tell it to use mt(1):
# mt -f /dev/rmt0h rewind
>
>Thanks!
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Newbie questions on dump
1993-08-18 21:23 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
@ 1993-08-19 17:25 ` Cameron H. Matthews
1993-08-19 22:01 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
0 siblings, 1 reply; 4+ messages in thread
From: Cameron H. Matthews @ 1993-08-19 17:25 UTC (permalink / raw)
Hi Allan,
Thanks for the reply.
[Some text removed]
>Left to itself I believe the interesting defaults for a dump
>command by itself are:
>
>Level: 0, though maybe 9.
>Tape: /dev/rmt0h
>Device: /dev/rrz0g
>
>The default tape device of restore(8) should also be rmt0h. So,
>if the dump(8) worked correctly and you haven't changed tapes,
>whatever was in rmt0h should have a dump on it.
>
>If you aren't strictly using the defaults, please post the
>command you are using. A transcription of the output from
>dump would also be useful to verify that it is running
>correctly.
Good info. I was using the defaults and was able to determine
what rmt0h was pointing to ( tz13 ) by checking out the MAKEDEV.log
in /dev.
[Text removed]
>The first record of a dump tape, has a magic number in it. Restore
>looks at this record and assumes it has the necessary structure.
>If the magic number has the right value, then restore can treat
>the tape as one written by dump(8).
Thanks, didn't know that. Interesting that even though dump complained
about the tape it still managed to read it. I wonder if it spaces
forward and then retries?
> Also, what is the problem with putting multiple dumps
>on a single tape? If you have a number of small file systems,
>this can be a pain having to waste 4GB DAT tapes. Any advice,
>hints, or tricks?
[Text removed]
>Unloading the tape should cause it to rewind, or you can explicitly
>tell it to use mt(1):
>
># mt -f /dev/rmt0h rewind
Happily, I got far enough along in the docs to notice that. I was
doing that ( multiple backups using the norewind special file ) but
noticed a blurb in the SysAdmin guide( pg. 9-5 ): "Be careful when
using the method given in the previous example. This method will save
tape, but can cause problems when a restore is required."
After posting my original message about dump complaining that the tape
was not a dump tape, I rewound the tape and redumped on it 2 file
systems. I could list the first out fine ( using nrmt0h ) but upon
trying to list the 2nd, received the onerous message "This tape is not
a dump tape". I finally resolved the problem by spacing forward
using "mt fsf 1" and then reexecuting the restore command.
So currently, I am doing a dump like so:
$ dump -0u -f /dev/nrmt0h /
$ dump -0u -f /dev/rmt0h /usr
To list the files:
$ restore -t -f /dev/nrmt0h
$ mt fsf 1
$ restore -t
Is there a better way?
Thanks for your responses, Allan.
Cameron
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Newbie questions on dump
1993-08-19 17:25 ` Cameron H. Matthews
@ 1993-08-19 22:01 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
0 siblings, 0 replies; 4+ messages in thread
From: Alan Rollow - Alan's Home for Wayward Tumbleweeds. @ 1993-08-19 22:01 UTC (permalink / raw)
In article <14966364@MVB.SAIC.COM>, matthews@apg5.saic.com (Cameron H. Matthews) writes:
> [ Having discovered how to put multiple dumps on a single tape the
> the customer now wishes to get listing of what is on each dump... ]
>
>
>To list the files:
>
>$ restore -t -f /dev/nrmt0h
>$ mt fsf 1
>$ restore -t
>
>Is there a better way?
Not really. The problem is that the archive is roughly in two parts; the
directory and the data. The -t options reads up to the end of the
directory part and stops. If there is any data, you have to skip
over it to get to the next dump. If the dump was empty, some versions
will leave you at start of the next dump and the mt trick won't work
consistently.
A solution might be to add an option that will have restore read the
directory and skip to the beginning of the next dump. Decent tape
drives with a fast file mark search and good software support can
make this a reasonably fast operation. An alternate solution might
be to add an option to restore to say "read all the directories until
EOT". Finally, you could just change the behaviour of -t to read the
rest of the archive.
I don't know what assumptions that may break, if any.
An alternate to the mt(1) is dd(1), but I suspect mt is easier.
>
>Thanks for your responses, Allan.
>
>Cameron
>
>
--
Alan Rollow alan@nabeth.cxo.dec.com
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~1993-08-19 22:01 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1993-08-18 19:56 Newbie questions on dump Cameron H. Matthews
1993-08-18 21:23 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
1993-08-19 17:25 ` Cameron H. Matthews
1993-08-19 22:01 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox