Symptoms or Error
??
??
Solution
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
- Copy the modified nslog.sh and nsbackup script to /var directory.
- Add the below lines to the rc.netscaler file located under the /nsconfig directory
- Cp /var/nslog.sh /netscaler/nslog.sh
- Cp /var/nsbackup /netscaler/nsbackup
Problem Cause
Supporto Citrix
Traduzione automatica
Questo articolo ?? ¨ stato tradotto da un sistema di traduzione automatica e non ?? ¨ stata valutata da persone. Citrix fornisce traduzione automatica per aumentare l'accesso per supportare contenuti; tuttavia, articoli automaticamente tradotte possono possono contenere degli errori. Citrix non ?? ¨ responsabile di incongruenze, errori o danni derivanti dell'uso di articoli automaticamente tradotte.
Citrix技術支持
自動翻譯
這篇文章被翻譯由一個自動翻譯系統,並沒有受到人們的審查。 Citrix提供自動翻譯,增加獲得支持的內容;但是,自動翻譯的文章可能可以包含錯誤。思傑不負責不一致,錯誤或損壞因使用自動翻譯的文章的結果。
Поддержка Citrix
Tradução automática
Эта статья была переведена автоматической системой перевода и не был рассмотрен людьми. Citrix обеспечивает автоматический перевод с целью расширения доступа для поддержки контента; Однако, автоматически переведенные статьи могут может содержать ошибки. Citrix не несет ответственности за несоответствия, ошибки, или повреждения, возникшие в результате использования автоматически переведенных статей.
시트릭스 지원
자동 번역
이 문서 자동 번역 시스템에 의해 번역 된 사람들에 의해 검토되지 않았다. 시트릭스는 컨텐츠를 지원하기 위해 접근을 높이기 위해 자동 번역을 제공합니다; 그러나, 자동으로 번역 기사 오류를 포함 할 수있다. 시트릭스는 자동으로 번역 된 기사의 사용의 결과로 발생하는 불일치, 오류 또는 손해에 대해 책임을지지 않습니다.