IC65952: THE HSM POSTINSTALL SCRIPT DOES NOT HANDLE THE COPY/REPLACEMENT OF THE GPFSREADY SCRIPT CORRECTLY.

Subscribe

You can track all active APARs for this component.

APAR status

  • Closed as program error.

Error description

  • The HSM postinstall script does not handle the copy/replacement
    of the gpfsready script correctly.
    In both cases (script does not exist/script exists) we use grep
    -v "return 0" to copy
    the lines into the script. This leads to the issue that
    everything is
    copied except the "return 0".
    
    This part of the original script:
    
            ping -c1 -w1 $1 | /usr/bin/grep -q "1 received"
            if [ $? -eq 0 ]; then
                    return 0
            else
                    return 1
            fi
    
    was changed to:
    
            ping -c1 -w1 $1 | /usr/bin/grep -q "1 received"
            if [ $? -eq 0 ]; then
            else
                    return 1
            fi
    
    This leads to syntax error, here the mmfs.log of GPFS:
    
    Fri Jan 15 09:37:30.221 2010: GPFS: 6027-310 mmfsd initializing.
    {Version: 3.2.1.15   Built: Sep 28 2009 11:46:18} ...
    Fri Jan 15 09:37:31.979 2010: GPFS: 6027-1710 Connecting to
    192.168.101.210 vlp0
    Fri Jan 15 09:37:31.980 2010: GPFS: 6027-1711 Connected to
    192.168.101.210 vlp0
    /var/mmfs/etc/gpfsready: line 52: syntax error at line 82:
    `else'
    unexpected
    ...
    
    This problem is related to following lines in the postinstall
    script of
    the HSM RPM(see rpm -q --scripts <installed RPM name>:
    if ! [[ -f /var/mmfs/etc/gpfsready ]]
    then
       echo "The file /var/mmfs/etc/gpfsready does not exist"
       echo "Copying /usr/lpp/mmfs/samples/gpfsready.sample to
    /var/mmfs/etc/gpfsready"
       grep -v "return 0" /usr/lpp/mmfs/samples/gpfsready.sample >
    /var/mmfs/etc/gpfsready
       echo "/bin/true" >> /var/mmfs/etc/gpfsready
    else
       if grep "return 0" /var/mmfs/etc/gpfsready > /dev/null
       then
          grep -v "return 0" /var/mmfs/etc/gpfsready >
    /var/mmfs/etc/gpfsready.old
          echo "/bin/true" >> /var/mmfs/etc/gpfsready.old
          mv /var/mmfs/etc/gpfsready.old /var/mmfs/etc/gpfsready
       fi
    fi
    
    
    Initial Impact: Medium
    
    
    Platform /Version affected:
    Tivoli Storage Manager for Space Management on AIX and Linux
    platforms, Versions 5.5 and 6.1.
    

Local fix

  • Check the /var/mmfs/etc/gpfsready manually after the
    HSM installation or to manually replace the 'return 0' string by
    '/bin/true' in
    /var/mmfs/etc/gpfsready before installation if the script
    doesn't have default content.
    

Problem summary

  • ****************************************************************
    * USERS AFFECTED: HSM version 5.4, 5.5, and 6.1 clients        *
    *                 running on AIX and Linux platforms           *
    ****************************************************************
    * PROBLEM DESCRIPTION: See ERROR DESCRIPTION.                  *
    ****************************************************************
    * RECOMMENDATION: Apply fixing level when available. This      *
    *                 problem is currently projected to be fixed   *
    *                 in levels 5.4.3, 5.5.3 and 6.1.4. Note that  *
    *                 this is subject to change at the discretion  *
    *                 of IBM.                                      *
    ****************************************************************
    The HSM postinstall script did not handle correctly the
    gpfsready script if the latter had been updated by a user.
    

Problem conclusion

  • The problem has been fixed so that it no longer occurs.
    

Temporary fix

Comments

APAR Information

  • APAR number

    IC65952

  • Reported component name

    TSM CLIENT

  • Reported component ID

    5698ISMCL

  • Reported release

    61L

  • Status

    CLOSED PER

  • PE

    NoPE

  • HIPER

    NoHIPER

  • Special Attention

    NoSpecatt

  • Submitted date

    2010-01-29

  • Closed date

    2010-02-25

  • Last modified date

    2010-02-25

  • 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

    TSM CLIENT

  • Fixed component ID

    5698ISMCL

Applicable component levels

  • R54A PSY

       UP

  • R54L PSY

       UP

  • R55A PSY

       UP

  • R55L PSY

       UP

  • R61A PSY

       UP

  • R61L PSY

       UP



Rate this page:

(0 users)Average rating

Document information


More support for:

Tivoli Storage Manager

Software version:

61L

Reference #:

IC65952

Modified date:

2010-02-25

Translate my page

Machine Translation

Content navigation