CTX208778
2016-03-30
1970-01-01
NetScaler's in HA pair reporting 100% Management CPU usage. Fix Official Fix will be available in 10.1.134.x build. This ...

Symptoms or Error

NetScaler’s in HA ?? pair reporting 100% Management CPU usage.
??

??


Solution

Fix
Official Fix?? will be?? available in 10.1.134.x build.
This issue is already fixed in code 11.0.64.34.

Workaround
As a workaround we will need to disable zipping and tarring of file by modifying the nslog.sh and nsbackup script located under the /netscaler directory.
??
Changes to nslog.sh script:
??
Hash out the Lines which has the function name nszip_logfile
??
nslog_init()
{
?? ?? ?? ?? ?? ?? ?? check_ns nslog
??
?? ?? ?? ?? ?? ?? ?? if [ ! -d $NSLOG_DIR ]
?? ?? ?? ?? ?? ?? ?? then
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? echo "$NSLOG_DIR directory does not exist."
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? echo "Possible reason: /var partition is not mounted."
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? $MOUNT
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? echo "Check paritions and try again."
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? exit 1
?? ?? ?? ?? ?? ?? ?? fi
?? ?? ?? ?? ?? ?? ?? # save the current log file into next file and compress it
?? ?? #?? ?? ?? ?? [ -f $NSLOG_CURFILE ] && nszip_logfile
}
??
newnslog_run()
{
?? ?? ?? ?? ?? ?? ?? local whatever
?? ?? ?? ?? ?? ?? ?? local sz
??
?? ?? ?? ?? ?? ?? ?? check_ns nslog
?? ?? ?? ?? ?? ?? ?? sz=""
?? ?? ?? ?? ?? ?? ?? $NETSCALER/nsconmsg -s logsize=$NSLOG_SIZE -h >/dev/null 2>&1
?? ?? ?? ?? ?? ?? ?? [ $? -eq 140 ] && sz="-s logsize=$NSLOG_SIZE"
?? ?? ?? ?? ?? ?? ?? whatever="past" # for first time save all from the past
?? ?? ?? ?? ?? ?? ?? while :
?? ?? ?? ?? ?? ?? ?? do
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? check_ns nslog
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ns_checkspace
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? $NETSCALER/nsconmsg -O -k $NSLOG_CURFILE -T $NSLOG_TIME ${sz} -S ${whatever}?? >/dev/null 2>&1
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? # time expired OR nsconmsg has been killed!
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? set `$LS -sk $NSLOG_CURFILE`
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? SIZE_TO_DELETE=$1
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? if [ -s $NSLOG_CURFILE ]
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? then
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? # save the current log file into next file and compress it
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? #nszip_logfile
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? else
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? sleep 2
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? fi
?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? ?? whatever="current"
?? ?? ?? ?? ?? ?? ?? done
}
??
Changes to nsbackup Script:
??
sub archive()
{
?? my ($src_dirs_t, $destfile) = @_;
?? my @src_dirs_temp = @$src_dirs_t;
??
?? my @src_dirs = ();
??
?? foreach (0 .. $#src_dirs_temp)
?? {
?? ?? ?? my @g_d_list = glob $src_dirs_temp[$_];
?? ?? ?? push(@src_dirs, @g_d_list);
?? }
??
?? for (0 .. $#src_dirs) # remove trailing slashes
?? {
?? ?? ?? $src_dirs[$_] =~ s/^\///;
?? }
??
?? # gets a single string of all directory names in the list
?? my $src_dirs_list = "@src_dirs";
??
?? &log("Creating archive of $src_dirs_list to $destfile");
??
?? #my $ret = system("tar -czf $destfile -C / $src_dirs_list 1>/dev/null");
??
?? if ($ret != 0)
?? {
?? ?? ?? &err("Archive failed");
?? }
?? return $ret;
}
??
Note:
??
To persist reboot please follow the below steps
  1. Copy the modified nslog.sh and nsbackup script to /var directory.
  2. Add the below lines to the rc.netscaler file located under the /nsconfig directory
  1. Cp /var/nslog.sh /netscaler/nslog.sh
  2. Cp /var/nsbackup /netscaler/nsbackup

Problem Cause

The High CPU is due to zipping and tarring ?? of newnslog and backup files respectively. The issue looks similar to Issue ID 598709 which is duplicated to internal reported issue#454467

Applicable Products


 

Join the conversation

Citrix Discussions

Open a case

Citrix Support

特别说明


本文来源为Citrix.com所有,翻译后版权归翻译者所有.如需转载请注明出处.

文档版本


.

广告招租


最新留言


.

广告招租


.