From: matthews@apg5.saic.com (Cameron H. Matthews)
Subject: Re: Newbie questions on dump
Date: Thu, 19 Aug 1993 17:25:11 GMT [thread overview]
Message-ID: <14966364@MVB.SAIC.COM> (raw)
In-Reply-To: 1993Aug18.212324.4584@nntpd2.cxo.dec.com
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
next prev parent reply other threads:[~1993-08-19 17:25 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
1993-08-19 22:01 ` Alan Rollow - Alan's Home for Wayward Tumbleweeds.
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox