IBM Support

PM15224: ccmdb backup truncates the cpk file

Subscribe

You can track all active APARs for this component.

 

APAR status

  • Closed as program error.

Error description

  • 0) Tested on windows 2003-R2 with Synergy 7.1.0.1-02
    
    1) Unpack a new empty database from base.cpk
    -Start a session as ccm_root.
    -Create a project with a default task.
    -Create a new type 'iso' for example, based on the .iso
    extension, with supertype binary.
    -Get a big iso file, at least 2.5Gb.
    The file used for the test is a Linux iso image of 2,716,860,416
    bytes.
    So it contains plenty of binaries, etc... (not simply some text
    files).
    
    -Add this file in the workarea of your project, and reconcile to
    put it under control.
    -Check in the task to integrate the file.
    -Run a 'ccm fs_check' to be sure there is no error and that the
    file is archived.
    -Stop the session
    
    
    2) Run a backup of the database with the 'ccmdb backup' command.
    The backup command returns no error.
    Unpack this new backup.
    The unpack returns the error:
    ##
    Extracting pack file c:\temp\test2.cpk.
    funzip error: out of space on stdout
    ERROR: Cannot extract pack file c:\temp\test2.cpk
    ##
    
    The size of the database directory in the Windows Explorer was:
    5,432,485,516
    The backup file created was 13Mb!!!
    
    Additional Tests:
    3) Locate the archive for the iso object in the directory
    <base>/st_root/archive/....
    In my test, it was:
    \\iedu-ggtest\ccmdb\iedu711\st_root\archive\ccm_delta\source\bin
    ary2\iso\#3439\0251672094.1.zip
    Its size is: 2,686,142,646 bytes
    
    a) Emulate the pack command creating the cpk file:
    Use the following command to create a backup file of the file
    \\iedu-ggtest\ccmdb\iedu711\st_root\archive\ccm_delta\source\bin
    ary2\iso\#3439\0251672094.1.zip
    
    ##
    cmd /c '%ccm_home%\bin\util\bsdtar.exe cfv - -C
    \\iedu-ggtest\ccmdb\iedu711\st_root\archive\ccm_delta\source\bin
    ary2\iso\#3439 0251672094.1.zip| %ccm_home%\bin\util\ccm_zip.exe
    -v -6 > c:\temp\test.cpk' > result1.txt 2>&1
    ##
    This command is using the Synergy bsdtar.exe and ccm_zip.exe
    tools.
    This is the same command used to create the Synergy backups
    under Windows except that I added the switch '-v' for the
    verbosity.
    (it would be great to have this option in the ccmdb
    backup/pack/unpack command).
    
    The log returned the following information:
    ##
    adding: -.....a 0251672094.1.zip
    .....................................................
    (in=2686146560) (out=2606934) (deflated 100%)
    total bytes=2686146560, compressed=2606934 -> 100% savings
    ##
    This result shows that the archive has been compressed by the
    backup from 2,686,146,560 bytes to 2,606,934 bytes.
    Meaning a compression of 1000.
    => There is obviously a problem with the compression here.
    
    b) Emulate the unpack command extracting to extract the files
    from the cpk (backup) file you've just created:
    -First, create the directory:  c:\temp\test2
    -The command used by the 'ccmdb unpack' is:
    ##
    cmd /c '%ccm_home%\bin\util\ccm_unzip.exe < c:\temp\test.cpk |
    %ccm_home%\bin\util\bsdtar.exe xfv - -C c:\temp\test2' >
    result2.txt 2>&1
    ##
    -Notice the switch '-v' for the verbosity.
    This command returns in the result2.txt log:
    ##
    x 0251672094.1.zipfunzip error: out of space on stdout
    ##
    => This is the same error as the one returned by the ccmdb
    unpack command!.
    
    There is np space problem on my test machine.
    There is only one partition with 60Gb free.
    

Local fix

Problem summary

  • ccmdb backup truncates the cpk file
    

Problem conclusion

  • This problem was solved in Synergy 7.1.0.1-03.
    Implement bsdtar to support single file bigger than 2G on
    Windows.
    

Temporary fix

Comments

APAR Information

  • APAR number

    PM15224

  • Reported component name

    TLOGIC SYNERGY

  • Reported component ID

    5724V66SN

  • Reported release

    710

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-05-25

  • Closed date

    2010-07-06

  • Last modified date

    2010-07-06

  • APAR is sysrouted FROM one or more of the following:

  • APAR is sysrouted TO one or more of the following:

Fix information

  • Fixed component name

    TLOGIC SYNERGY

  • Fixed component ID

    5724V66SN

Applicable component levels

  • R710 PSN

       UP

[{"Business Unit":{"code":"BU053","label":"Cloud & Data Platform"},"Product":{"code":"SSC6Q5","label":"Rational Synergy"},"Component":"","ARM Category":[],"Platform":[{"code":"PF025","label":"Platform Independent"}],"Version":"7.1","Edition":"","Line of Business":{"code":"LOB45","label":"Automation"}}]

Document Information

Modified date:
22 December 2020