Search Text         
Search Tips?
Search By   And   Or   Boolean   Exact Match   TA #
Search In   Whole Doc   Keywords Sort By  
Product   Sub Product  

View Technical Articles (sorted by Product) New/Updated in the last:    7 days      14 days      30 days             
TA # Date Created Date Updated Resolved Issue?   Printer Friendly Version of This TA   Print Article
  E-mail This TA   E-mail Article
106159 04/19/1990 04:20 PM 02/28/1995 08:54 AM
Yes No
Cpio is not writing to a tape drive correctly.
Keywords
cpio backup second volume out of phase get help restore read write archive tape xnx155 unix xenix sync bad magic number
Release
SCO XENIX System V Operating System Generic
SCO UNIX System V/386 Operating System Generic
Open Desktop Generic

Problem
         I cannot read the second volume of a cpio(C) backup.  The backup was 
          created without error, but when I try to read it, I get one of the 
          following errors:  "out of phase--get help", "out of phase bad magic 
          number", or "out of sync bad magic number".

CAUSE:
        (1) The SCO operating system tape drivers use internal buffering
         in order to increase tape performance.  This buffering makes it 
         impossible for cpio(C) to detect the end of the tape.  This results 
         in data being lost, and cpio(C) is unable to recover.

         (2) cpio(C) expects every tape to begin with a valid cpio header.  
         The second tape of the cpio(C) backup does not begin with a header, 
         and cpio(C) is unable to recover.



Solution
          SCO has enhanced the cpio(C) command to be able to deal with
           these situations.  The enhanced version of cpio(C) is available in:

               SCO UNIX System V/386 Release 3.2 Version 2.0
               Open Desktop

           In addition, this version of cpio(C) is available as part of a 
           Support Level Supplement (SLS).  If you have SCO XENIX 386 
          Operating System Release 2.3, you should install SLS xnx155.  
          The enchanced cpio(C) is not available for other releases of SCO 
          XENIX.

         **** 
NOTE:
       Support Level Supplement xnx155 is now Obsolete. ****
         ****    This supplement is no longer available through SCO   ****

           If you have the enhanced version of cpio(C), you can use it to 
           partially recover the data on corrupted tapes, and to prevent tape 
           errors from occuring.  The two new options that allow you to do 
           this are the "-k" option and the "-K" option.

           You can use the "-K" option of the enhanced cpio(C) to successfully 
           create backups which span multiple tape volumes.  This option is used 
           to specify, in 1K blocks, the size of the media on which you are 
           backing up.  Always give a size slightly smaller than the actual size 
           of the media which you are using.  For example, to back up your root 
           file system using cpio(C) and a 60 megabyte cartridge tape, enter 
           the command:

             # find / -mount -print | cpio -omcv -C 10240 -K 59000 -O /dev/rct0

           If you use the "-K" option, cpio(C) will prompt you for the next 
           tape volume after you have written the specified amount to the
           tape device.

           You can use the "-k" option of the enhanced cpio(C) to recover some 
           of the data on the second tape of a garbled multi-tape backup.  This 
           flag tells cpio(C) to scan the tape looking for the next cpio 
           header.  Once it finds a file header, cpio(C) will begin extracting 
           files starting with the current file.  The data on the tape before 
           the first recognized cpio header is still unaccessble, but the 
           remaining data can be extracted.  If you are trying to extract a 
           multi-volume cpio archive created with the old version of cpio(C), 
           you will not be able to completely extract the file which spans the 
           two tapes:  the portion of this file on the second tape will not be 
           extracted.
           
           
NOTE:
       If the tape you are extracting contains files which are 
           themselves cpio-format files, the results of using the "-k" option 
           are unpredictable.

Back to Search ResultsBack to Search Results