tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* SUMMARY : rdump problem
@ 1999-02-24 15:10 jean.schuller
  0 siblings, 0 replies; 3+ messages in thread
From: jean.schuller @ 1999-02-24 15:10 UTC (permalink / raw)
  To: tru64-unix-managers


=09
=09Hi Managers,

=09I got only one response from Jim Belonis who wrote :

This is typically an error message caused by attempting to dump from an
Digital Unix computer to some other brand which uses a different 'rmt'
program (which is used by rdump).

It can also be caused by a bad 'dot' file such as a .cshrc
which outputs some unexpected characters when it is run on the
tape-drive machine for the 'rmt' process.
You should do rsh <tape-machine> date and verify that ONLY the date is
displayed.

I suggest you avoid rdump because it is 2-4 times slower than a 'dump
pipe' something like

dump <arguments> - /partition  | rsh tape-machine dd bs=3Dblocksize
of=3D<tapedev>

It also avoids such incompatibilities (Digital Unix is the only REAL
offender that I know of.  Several of its rmt internal commands (see 'man
rmt') conflict with commonly used commands on other architectures' rmt
such as Sun and SGI. Digital Unix uses one of these conflicting commands
to rewind the tape or maybe detect Digital Unix at the other end (I don't
remember).


=09and my original message was :

<---------->
Since any days, I have a strange problem dumping files with rdump.
This problem happened for all my remote boxes.
=20
My script (which works well since a long time) is :
=20
 rsh sbgax9 /usr/sbin/rdump -0f sbgax4:/dev/nrmt0h -b 32 /usr
=20
 and I got the error message :
=20
 rdump: Dumping from host sbgax9.in2p3.fr
 rdump: Date of this level 0 dump: Mon Feb 22 09:03:27 1999 GMT+0100
 rdump: Date of last level  dump: the start of the epoch=3D20
 rdump: Dumping /dev/rrz0g (/usr) to /dev/nrmt0h on host sbgax4.in2p3.fr
 rdump: Mapping (Pass I) [regular files]
 rdump: Mapping (Pass II) [directories]
 rdump: rmt reply(): Protocol to remote tape server botched (code OSF1
 rdump: Communication error in connection to remote peer
 rdump: SIGTERM received=3D20
 rdump: The ENTIRE dump is aborted
 rdump: SIGTERM received=3D20
 rdump: The ENTIRE dump is aborted

<------->

=09So I didn't want to change all my scripts and move from
=09rdump to dump, I began to think about what I have modified
=09since the scripts stopped to work .....:(
=09The only modification I made was, under root, to change the
=09shell from sh to tcsh (using chsh tcsh). So, I went
=09back to sh (chsh sh) and now all works again well.
=09OK , now it works but I don't understand what could cause the
=09troubles .. ???

=09Thanks Jim

=09JEAN

---------------------------------------------------------------------------=
--
jean.schuller@ires.in2p3.fr      _/  _/_/_/    _/_/_/  _/_/_/_/
                                _/  _/    -/  _/  _/  _/    =20
                               _/  _/_/_/-/  _/_/_/  _/_/_/_/
                              _/  _/   -/   _/            _/
                             _/  _/    _/  _/_/_/  _/_/_/_/ =20
local   call:    0388106630    Institut de Recherches Subatomiques
foreign call: (33)388106630    Bo=EEte Postale 28=20
local   fax :    0388106234    23, Rue du Loess
foreign fax : (33)388106234    F-67037 STRASBOURG CEDEX  - France
---------------------------------------------------------------------------=
--

^ permalink raw reply	[flat|nested] 3+ messages in thread
* SUMMARY: rdump problem.
@ 1996-04-29 23:08 mortimer
  0 siblings, 0 replies; 3+ messages in thread
From: mortimer @ 1996-04-29 23:08 UTC (permalink / raw)
  To: tru64-unix-managers

Hi all

Thanks to Eric Bennett, Jon Buchanan, Jim Belonis, Lucien Hercaud,
and boris@gore.afep.cornell.edu for their responses to my query
about a problem with rdump.  The original message is included at
the end of the summary.

Although none of the suggestions provided a solution to my problem
I summarize them below because several good points were made and 
they may be helpful to others.

Two people suggested that the dump had worked and the problem
was with restore but the timings made me believe that the dump
was the problem.  I have backed up this file system many times
and the time is always around 25 minutes and rdump gives an 
update about every 5 minutes as it goes.  This dump took only 
8 minutes and jumped from 26 minutes estimated to 3 minutes.  
This is not the normal behaviour.  That is why I suspected the 
dump and not the restore.

I managed to confuse some people with my remark about backing 
up the system remotely.  I was trying to be brief.  What
I meant was that I access the system from a remote login not 
from the console.  That is why I can't use single user mode.
I know that you can use rdump to back up to a remote tape 
device while in single user mode.  I do this regularly on two
other machines where I do have access to the console.

One suggestion was to run fsck manually.  I did use 
"/sbin/ufs_fsck -p" from single user mode and it just reported 
that the file system unmounted cleanly as it normally does.
Maybe I should have used the "-o" option to force fsck to check 
the file system.

Another suggestion about checking the dump parameters and making
sure the restore parameters correspond is a very good point as I
once found out the hard way but it is not the problem this time.  
I use scripts to do the dump and the restore.  I have used the 
same scripts many times without problems and nothing has been 
changed.

Likewise suggestions about checking that the correct device is 
being written to and that the tape drive is behaving normally are
good ideas but not the cause of this problem.  At the same time I 
used the same script and the same tape drive to back up 3 file 
systems on 3 different machines for a total of 9 dump images and 
only one gave trouble.  I can restore from any of the other 8 
without problems.  I have used this procedure again since and it
is always only this one file system giving trouble.

Jim Belonis pointed out that removing the /etc/dumpdates file
wouldn't make any difference.  I guess this is obvious but at that 
stage I was willing to try anything.

===================================================================

> I have to back up a machine remotely so I am not able to do
> it from single user mode.  I use /etc/nologin to prevent 
> users logging in but recently a dump failed because of a user 
> writing to disk while the dump was still in progress.
> 
> This must have been either from a background job or via an 
> NFS mount.  Both these are possible with the system in 
> multi-user mode.
> 
> Now all attempts to back up that disk partition fail - even 
> from single user mode.  I have rebooted the machine and tried 
> again but the same problem occurs.
> 
> This is the relevant part of the output:
> 
> rdump: Mapping (Pass I) [regular files]
> rdump: Mapping (Pass II) [directories]
> rdump: Estimate: 269395 tape blocks on 0.00 volume(s)
> rdump: Dumping (Pass III) [directories]
> rdump: 0.19% done -- finished in 00:26
> rdump: Dumping (Pass IV) [regular files]
> rdump: 60.89% done -- finished in 00:03
> rdump: Actual: 269403 tape blocks on 1 volume(s)
> rdump: Level 0 dump on Wed Apr 24 08:07:33 1996 EST
> rdump: Dump completed at Wed Apr 24 08:15:55 1996 EST
> 
> As you can see rdump claims to have dumped the correct number 
> of tape blocks but the time is too short.  The estimate of 
> 00:26 is about right based on past experience but the actual 
> time taken is only about 00:08.  In any case rrestore can't 
> read the dump image produced so something has gone wrong.
> 
> I tried removing the /etc/dumpdates file to erase all record
> of previous dumps but this made no difference.
> 
> Does anyone know how to cure this problem?
> 
> Thanks in advance for any suggestions.
> 


Ian Mortimer
Department of Physics              Tel  : +61 7 3365 3416
University of Queensland           Email: mortimer@physics.uq.edu.au
St. Lucia, Brisbane                Fax  : +61 7 3365 1242
Queensland, Australia. 4072.

^ permalink raw reply	[flat|nested] 3+ messages in thread
* SUMMARY: rdump problem
@ 1995-02-21 11:04 Yuri Gindin
  0 siblings, 0 replies; 3+ messages in thread
From: Yuri Gindin @ 1995-02-21 11:04 UTC (permalink / raw)
  To: tru64-unix-managers


The original post was:

    > 
    > Trying to dump from FreeBSD 2.0R machine to OSF/1 V3.0 machine
    > with DEC DAT tape TLZ07 attached there where some strange problems:
    > 
    > Questions:
    > 1) Tape density of TLZ07 (for high density device /dev/rmt0h) ?
    >    is it really 61000 BPI as written in /sys/data/cam_data.c (OSF/1)
    >  when dumping I got:
    > irena /home/yuri 117 # rdump 0udsbf 61000 393 64 korney:/dev/nrmt0h /usr/local
    >   DUMP: Date of this level 0 dump: Wed Feb 15 10:56:02 1995
    >   DUMP: Date of last level 0 dump: the epoch
    >   DUMP: Dumping /dev/rwd0g (/usr/local) to /dev/nrmt0h on host korney
    >   DUMP: mapping (Pass I) [regular files]
    >   DUMP: mapping (Pass II) [directories]
    >   DUMP: estimated 73197 tape blocks on 0.43 tape(s).
    >   DUMP: dumping (Pass III) [directories]
    >   DUMP: dumping (Pass IV) [regular files]
    >   DUMP: DUMP: 73875 tape blocks on 1 volumes(s)
    >   DUMP: level 0 dump on Wed Feb 15 10:56:02 1995
    >   DUMP: Closing /dev/nrmt0h
    >   DUMP: DUMP IS DONE
    > 
    >   0.43 tape is not seem to be reasonable.
    > 
    > 2)
    > 
    >   after that trying to rrestore:
    > 
    > irena /home/yuri 125 # rrestore -if korney:/dev/nrmt0h
    > resync restore, skipped 10 blocks  \
    > resync restore, skipped 1 blocks   |
    > resync restore, skipped 2 blocks   |   What's this ??
    > resync restore, skipped 13 blocks  /


Thanks to all who responded !

Here is a right answer by Guy Helmer:
I need to specify the same block size when restoring, as it was during dump.
My error !
---------------------------------------------------------------------------
Guy Helmer <ghelmer@alpha.dsu.edu>


I'm not sure about the TLZ07, but with our TLZ06 4mm 90M DDS tapes 
(which I'm guessing is similar to the TLZ07) have a size (in feet) of 
2640 according to the dump(1) man page on OSF/1 (393 seems quite small).


Just another "wild" guess, but don't you need to specify the block size 
for the rrestore since you specified it in the rdump?  rrestore may not 
be determining the block size of the dump correctly.

I'm not running FreeBSD 2.0 yet (just 1.0, 1.1, and 1.1.5.1), so I'm not 
sure my guesses are correct...  I hope this helps, though.


Guy Helmer, Dakota State University Computing Services - ghelmer@alpha.dsu.edu

-------------------------------------------------------------------------------
another responces were:

magali@lune.lirmm.fr

My DecOSF version is 1.3, but I think it's the same thing.
I have an HP DAT
Dumps are from Decstations to DecAlpha :
rdump -0oudsf 61000 12000 decalpha:/dev/nrmt0h /fs


I had the same messages WITHOUT the "-o" option in rdump
From "man rdump" Ultrix :

     o      Provides compatibility with non-ULTRIX or pre-ULTRIX Version 2.0
             remote systems.

You should have an identical option in FreeBSD ?

Hope this helps

-------------------
Magali (magali@lirmm.fr)
Tel: (33) 67.41.85.70

--------------------------------------------------------------------------------

alan@nabeth.cxo.dec.com (Alan Rollow - Dr. File System's Home for Wayward Inodes.)

To answer the first question; maybe not.  Dump only knows how to
estimate tape usage for 9 track tapes.  For other tapes the density 
and length have to be chosen so that the 9 track model works closely 
enough.  The values chosen may have little to do with how the tape 
really work, though it probably helps to keep one of the parameters
correct and vary the other as necessary.  The density may be
accurate, but the length could be chosen to make the model
work.

--------------------------------------------------------------------------------

Peter Fogarty <syspjf@devetir.qld.gov.au>


Answer for 1) is that I don't know of the top of my head. Sorry.

Answer for 2) is that you are trying to read back at a different block size to 
the one that the tape was written with and so it keeps trying to re-sync the
block alignments and as such ends up missing some of the data. Because dump
write's its table of contents info at the start of the tape, it ends up missing
some of that data on the read. The directories are still on the tape, but you
have just not read the table of contents info for that entry.


I hope that makes sense.

-- 
Peter Fogarty - syspjf@devetir.qld.gov.au
DEVETIR -- Brisbane Qld AUSTRALIA 



-------------------------------------------------------------------------------
Yuri Gindin
Sysadm & Programmer
Datcos Ltd. Israel
phone: +972-4774959
fax:   +972-4774950
e-mail: aerygis@aluf.technion.ac.il
-------------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-02-24 15:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-02-24 15:10 SUMMARY : rdump problem jean.schuller
  -- strict thread matches above, loose matches on Subject: below --
1996-04-29 23:08 SUMMARY: " mortimer
1995-02-21 11:04 Yuri Gindin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox