3 Replies Latest reply: Aug 23, 2013 11:08 AM by Raul RSS

    VM Template tar extract failed

    Honza
      Hello,

      I have an issue with a PeopleSoft ELM template, however the problem is related to extracting the tarball. Is there anything specific I need to do when extracting these archives? Here is what I've tried:
      [root@vochomurka seed_pool]# gunzip -c OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz.1of2 | tar -xvf -
      ELMDB.img
      oracle11g_x86_64_asm.img
      
      gunzip: OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz.1of2: unexpected end of file
      tar: Read 3635 bytes from -
      tar: Unexpected EOF in archive
      tar: Unexpected EOF in archive
      tar: Error is not recoverable: exiting now
      
      
      2.
      honza@honzambp$~/Downloads: tar -xvf OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz.1of2
      x oracle11g_x86_64_asm.img
      gzip: OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz.1of2: unexpected end of file
      : Truncated tar archive
      tar: Error exit delayed from previous errors.
      I've checked md5 checksums on the original .zip files and they match what Oracle provides in their digest. So, what am I doing wrong here? Am I supposed to join the parts together first?

      Thanks,
      Honza

      Edited by: Honza on Feb 3, 2012 4:27 AM
        • 1. Re: VM Template tar extract failed
          Honza
          Thank you forums, seems many times I start a post after struggling for a bit I find the answer myself :-)
          Anyway, I found a solution in my own notes and it's quite simple. While extracting the tar, it fails as unexpected end of file, so there is some data missing. In this case, it's the next part. The soltion is to concatenate the two files before attempting a tar extract. Example follows.
          [root@vochomurka seed_pool]# cat OVM_EL5U2_X86_64_TOOLS_8_50_09_ELM_9_1_2_PVM.tgz.1of2 OVM_EL5U2_X86_64_TOOLS_8_50_09_ELM_9_1_2_PVM.tgz.2of2 >> OVM_TOOLS.tgz
          [root@vochomurka seed_pool]# tar -xvf OVM_TOOLS.tgz
          Maybe someone like me might stumble across this post in the future.
          • 2. Re: VM Template tar extract failed
            Nicolas.Gasparotto
            Honza,

            I think you should first start reading the readme document provided within the templates, this is very well explained :
            ...
            # cd /OVS/seed_pool
            # cat \
            OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz.1of2 \
            OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz.2of2 \
            > OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz

            # mkdir OVS/seed_pool/OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM
            # cd OVS/seed_pool/OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM
            # tar -xvf OVM_EL5U2_X86_64_ELMDB_9_1_2_PVM.tgz
            ...

            Nicolas.

            trying to fix this bloddy forum tags
            Edited by: N Gasparotto on Feb 3, 2012 3:00 PM

            Edited by: N Gasparotto on Feb 3, 2012 3:03 PM
            • 3. Re: VM Template tar extract failed
              Raul

              Hi Honza,

               

              This was a great Solution.

              I've spent a long time trying to understand what happened while extracting the files as the README.txt explained and got failed.

               

              Thank You Very Much!