[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference turris::digital_unix

Title:DIGITAL UNIX(FORMERLY KNOWN AS DEC OSF/1)
Notice:Welcome to the Digital UNIX Conference
Moderator:SMURF::DENHAM
Created:Thu Mar 16 1995
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:10068
Total number of notes:35879

9969.0. "vdump | dd : corrupt format !!!!!" by TRN02::FRASSINO () Wed May 28 1997 12:28

    Hi all,
    I apologize for the trivial question, but now seems to be a problem for
    me ...
    Suppose to have system A to dump on a tape owned by system B.
    I use, from system A ( Advfs dilesystems )
    
    /sbin/vdump -0f - / | rsh <remote node B> dd of=/dev/rmt0h
    
    To restore, from system A
    
    rsh <remote node B> dd if=/dev/rmt0h | /sbin/vrestore -xf - 
    
    I receive the following error:
    
    vrestore: unable to use save-set; invalid or corrupt format
    
    The system A is a v4.0A Dunix, system B is a 4.0B Dunix.
    The same error appears if I use a v3.2 Dunix as system A.
    
    Where is the trick ???
    
    Thanks !!
    				*8-) Pierpa
    
T.RTitleUserPersonal
Name
DateLines
9969.1finder.uvo.dec.com::COFFEYJLa Feline Flooz - a unix catWed May 28 1997 13:015
I think the answer is you can have a vdump or an rdump 
but you can't remotely do a vdump. I can't remember/
never knew the reason why but here we always recommend
NSR as the answer to remote backup of an Advfs file 
system. 
9969.2NABETH::alanDr. File System&#039;s Home for Wayward Inodes.Wed May 28 1997 14:3314
	The way you do remote dumps with vdump is to write to stdout
	and pipe that an rsh which runs dd(1) on the remote system
	just as the example command shows.  The problem is likely
	one of data block sizes.  vdump (as I recollect) likes to
	write with a 60 KB block size.  I expect that vrestore also
	expects a 60 KB block size.  Going across the pipe will
	change the block size and without an explicit size, who
	knows that dd(1) will use.  I think all you need to do is
	specify an obs= on the dd(1) size and probably an ibs=
	on the restore side.

	I'd aim at getting the vdump to be readable on a local
	tape drive and then figure out what block size arguments
	to pass on the rsh dd | vrestore for a remote vrestore.
9969.3more infoDECWET::DADDAMIODesign Twice, Code OnceMon Jun 02 1997 17:4910
    > To restore, from system A
        
    > rsh <remote node B> dd if=/dev/rmt0h | /sbin/vrestore -xf - 
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    This need to be "rsh <remote node B> dd if=/dev/rmt0h obs=60k". The
    last reply was correct about the block size changing when doing the
    pipe.
    
    Also as of Steel we will have rvdump and rvrestore which will recognize
    remote devices (they will work like rdump and rrestore).