Director Agent 6.2.1 on AIX Might Fill Up / Filesystem

 Technote

Description

The /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh script writes a file "/dev/null 2>&1" which might fill up the / filesystem.

This happens with agents that have the following cas.agent fileset version:

cas.agent 1.4.2.32

Work-around and fix notes are detailed below.

Fix


An iFix for VIOS 2.2.1.0 - 2.2.1.3 is available from FixCentral: VIOS_ 2.2.1.0_IC85310.120719

See APAR IC85310

Fix Central link:
http://www-933.ibm.com/support/fixcentral/vios/selectFixes?parent=Virtualization+software&product=ibm/vios/5765G34&release=2.2.1.3&platform=All&function=all

The same iFix can be used for AIX, on systems with cas.agent 1.4.2.32 installed. Fix Central has for AIX only SPs and no iFixes; therefore, it is not available for AIX on FixCentral. There is a separate site for AIX iFixes, where this will be available in the future.

These iFixes need to be uninstalled manually before installing a newer agent version that includes the fix.

Hide details for 1.4.2.46 cas_src.sh script1.4.2.46 cas_src.sh script
1.4.2.46 cas_src.sh script
The attached script is shipped with cas.agent 1.4.2.46cas_src.sh

To utilize this script, you should do the following:

stopsrc -s cas_agent # Stop cas_agent subsystem
lssrc -s cas_agent # Wait until this command returns "inoperative"
cd /var/opt/tivoli/ep/runtime/nonstop/bin # cd to the directory where the cas_src.sh script is located
cp -p cas_src.sh cas_src.sh.org # Save original script
cp <new cas_src.sh script> # Copy the new script
startsrc -s cas_agent # Start cas_agent subsystem



Notes:

Hide details for 1. The Common Agent refresh for IBM Systems Director 6.3 does not see this issue. It is recommended to upgrade1. The Common Agent refresh for IBM Systems Director 6.3 does not see this issue. It is recommended to upgrade the server ...
1. The Common Agent refresh for IBM Systems Director 6.3 does not see this issue. It is recommended to upgrade the server and agents to 6.3.x where possible.

See the following note for the 6.3_c refresh:
https://www.ibm.com/developerworks/community/wikis/home?lang=en (search on "systems director refresh 6.3_c)

Or, use the IBM Systems Director Downloads site to get the 6.3.2 agent, if your server is 6.3.2 or higher.

http://www-03.ibm.com/systems/software/director/downloads/agents.html

Hide details for 2. If not using IBM Systems Director, the other option is to uninstall IBM Systems Director Common Agent:2. If not using IBM Systems Director, the other option is to uninstall IBM Systems Director Common Agent:
2. If not using IBM Systems Director, the other option is to uninstall IBM Systems Director Common Agent:

Uninstalling / cleaning up director:

a. Run the uninstall:

http://pic.dhe.ibm.com/infocenter/director/pubs/topic/com.ibm.director.editions.doc/editions_power_express_t_uninstalling_ibm_director_on_aix.html

b. Clean up anything remaining:

http://www.ibm.com/developerworks/wikis/display/WikiPtype/Uninstall+IBM+Systems+Director

For additional details on cleanup:

http://pic.dhe.ibm.com/infocenter/director/pubs/topic/com.ibm.director.tbs.helps.doc/fqm0_r_tbs_ibm_director_uninstallation_fails.html

Note: If problems with installp -C, refer to APAR IC88870 at http://www-01.ibm.com/support/docview.wss?uid=isg1IC88870


Work-around
1. Stop the cas_agent subsystem by issuing the stopsrc -s cas_agent command.
2. Wait until the subsystem is inoperative by issuing the lssrc -s cas_agent command.
3. Save /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh: cp /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh.org
4. Edit /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh by doing the following:

Replace the following code snippet:

do
/usr/bin/echo "cas_src pid:$$"  >> $CAS_SRC_LOG
    /usr/bin/echo "heartbeat: `/usr/bin/date` " >> $CAS_SRC_LOG
    /usr/bin/sleep 10
    /usr/bin/ps -ef | grep nonstop_aix >> $CAS_SRC_LOG

    # if nonstop_aix is not found then exit
    [ "$?" -ne 0 ] && break
done

with the following code:

do
/usr/bin/sleep 10

NONSTOP_PID1=`/usr/bin/ps -ef|/usr/bin/grep '\/var\/opt\/tivoli\/ep'|/usr/bin/grep nonstop_aix|/usr/bin/grep -v grep|/usr/bin/awk '{print $2}'`
NONSTOP_PID2=`/usr/bin/ps -ef|/usr/bin/grep '\/opt\/ibm\/director\/agent'|/usr/bin/grep nonstop_aix|/usr/bin/grep -v grep|/usr/bin/awk '{print $2}'`

# if nonstop_aix is not found then exit
if [[ "$NONSTOP_PID1" == "" && "$NONSTOP_PID2" == "" ]]; then
break
fi

done
5. Start the cas_agent subsystem by issuing the startsrc -s cas_agent command.

Details

The /var/opt/tivoli/ep/runtime/nonstop/bin/cas_src.sh script is started as part of the cas_agent SRC subsystem ( startsrc -s cas_agent ), and it is stopped with stopsrc -s cas_agent .

While the cas_src.sh is running, it writes to a file /dev/null 2>&1 . On a system with cas_src.sh, the ls command will return the following:

# ls -l /dev/null*
crw-rw-rw- 1 root system 2, 2 Oct 14 10:23 /dev/null
-rw------- 1 root system 353471 Oct 14 10:23 /dev/null 2>&1

If the file ulimit (check with ulimit -f command) is set to unlimited, this can fill up the / filesystem.

Related Developerworks document:


https://www.ibm.com/developerworks/wikis/display/WikiPtype/Inconsistent+agent+status+with+cas.agent+1.4.2.32+and+cas.agent+1.4.2.40

Common Agent Versions shipped with AIX and VIOS:
https://www.ibm.com/developerworks/community/wikis/home?lang=en#/wiki/W3e8d1c956c32_416f_a604_4633cd375569/page/Common%20Agent%20versions%20shipped%20with%20AIX%20and%20VIOS




Product:
IBM Systems Director
Release:
6.3; 6.2.1.2
Function Area:
Usage
Subfunctional Area:
AIX



IBM Systems Management Support Page

    IBM disclaims all warranties, whether express or implied, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose. By furnishing this document, IBM grants no licenses to any related patents or copyrights. Copyright © 1996,1997,1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010,2011, 2012, 2013 IBM Corporation. Any trademarks and product or brand names referenced in this document are the property of their respective owners. Consult the Terms of use link for trademark information.

Rate this page:

(0 users)Average rating

Add comments

Document information


More support for:

IBM Systems Director

Software version:

6.3, 6.2.1.2

Reference #:

612325185

Modified date:

2013-07-02

Translate my page

Machine Translation

Content navigation