Skip to content
Menu
Know Citrix
  • About me
  • Miscellaneous
    • Git Basics
    • SSL certificates
Know Citrix

NetScaler High Availability File Synchronization – IMP

Posted on June 14, 2021June 18, 2021
0
(0)

During a high availability file synchronization operation, a set of files are copied from the primary appliance to the secondary appliance. The high availability setup is synchronized automatically at an interval of one minute or when you manually run the sync ha files command. The secondary appliance initiates the high availability synchronization.

The rsync process completes the high availability file synchronization and the nsfsyncd process controls the synchronization. The rsync process uses an SSH tunnel for file synchronization, but the default SSH port 22 can be updated when running the rsync process. You can specify a particular port instead of port 22 and disallow Access Control Lists (ACLs) from blocking that port. To run the rsync process at an interval of one minute, the cron utility is used.

You can use the NetScaler command line interface or the Configuration Utility at either the primary or secondary appliance to manually synchronize the appliances. The sync ha files command only synchronizes certain files between the appliances and not the ns.conf file. Files located on the secondary appliance, that are specific to the secondary appliance and not present on the primary appliance, are not deleted during the synchronization.

The following is the syntax for high availability synchronization:
sync ha files <mode>

This table provides a description to the list of modes used for the sync ha files command
Mode Descriptions
all In this mode, everything except licenses and rc.conf files are synchronized. Files related to system configuration, NetScaler Gateway bookmarks, SSL certificates, SSL CRL lists, HTML injection scripts, and Application Firewall XML objects are synchronized.
The following are the synchronization paths in this mode:

/var/download
/var/archive
/nsconfig/ssl
/var/netscaler/ssl
/nsconfig/dns
/var/vpn/bookmark
/nsconfig/htmlinjection
/netscaler/htmlinjection/ens – (a symlink target)
/var/wi/tomcat/webapps/
/var/wi/tomcat/conf/Catalina/localhost/
/var/wi/java_home/lib/security/cacerts
/var/wi/java_home/jre/lib/security/cacerts
/var/wi/Clients/
/nsconfig/rc.netscaler
/nsconfig/inetd.conf
/nsconfig/sshd_config
/nsconfig/hosts
/nsconfig/snmpd.conf
/nsconfig/monitors
/nsconfig/ntp.conf
/nsconfig/resolv.conf
/nsconfig/syslog.conf
/nsconfig/nstemplates
/nsconfig/enckey
/var/nstemplates – (a symlink target)
/nsconfig/httpd.conf
/var/nslog/asl/
/var/nslw.bin/etc/krb5.conf
/var/nslw.bin/etc/krb5.keytab
/var/lib/likewise/db/
/nsconfig/ssh/
/nsconfig/krb/
dns In this mode, DNS related files are synchronized; /nsconfig/dns is the synchronization path.
bookmarks In this mode, all NetScaler Gateway bookmarks are synchronized; /var/vpn/bookmark/ is the synchronization path.
ssl In this mode, all certificates, keys, and CRLs for the SSL feature are synchronized.
The following are the synchronization paths in this mode:

/nsconfig/ssl/
/var/netscaler/ssl/
htmlinjection In this mode, all EdgeSight Monitoring scripts configured for the HTML injection feature are synchronized.
The following are the synchronization paths in this mode:

/nsconfig/htmlinjection/
/netscaler/htmlinjection/ens
imports In this mode, all XML objects such as WSDLs, schemas, and error pages configured for the Application Firewall are synchronized.
The following are the synchronization paths in this mode:

/var/download
/var/archive
misc In this mode, all license files and the rc.conf file are synchronized.
The following are the synchronization paths in this mode:

/nsconfig/license/
/nsconfig/rc.conf
all_plus_misc In this mode, all files related to system configuration, NetScaler Gateway bookmarks, SSL certificates, SSL CRL lists, HTML injection scripts, Application Firewall XML objects, licenses, and the rc.conf file are synchronized.
The following are the synchronization paths in this mode:

/var/download
/var/archive
/nsconfig/ssl
/var/netscaler/ssl
/nsconfig/dns
/var/vpn/bookmark
/nsconfig/htmlinjection
/netscaler/htmlinjection/ens – (a symlink target)
/var/wi/tomcat/webapps/
/var/wi/tomcat/conf/Catalina/localhost/
/var/wi/java_home/lib/security/cacerts
/var/wi/java_home/jre/lib/security/cacerts
/var/wi/Clients/
/nsconfig/rc.netscaler
/nsconfig/inetd.conf
/nsconfig/sshd_config
/nsconfig/hosts
/nsconfig/snmpd.conf
/nsconfig/monitors
/nsconfig/ntp.conf
/nsconfig/resolv.conf
/nsconfig/syslog.conf
/nsconfig/nstemplates
/nsconfig/enckey
/var/nstemplates – (a symlink target)
/nsconfig/httpd.conf
/var/nslog/asl/
/var/nslw.bin/etc/krb5.conf
/var/nslw.bin/etc/krb5.keytab
/var/lib/likewise/db/
/nsconfig/ssh/
/nsconfig/krb/
/nsconfig/license/
/nsconfig/rc.conf

Additional Resources

CTX109013 – Troubleshooting the NetScaler High Availability Issues
CTX124439 – High Availability Synchronization on NetScaler Appliance
Citrix Documentation – Synchronizing Configuration Files in a High Availability Setup
Citrix Documentation – High Availability FAQs
Citrix Documentation – Troubleshooting High Availability Issues
Citrix Documentation – Considerations for a High Availability Setup

Source

Rate this article

Categories

  • About Home Lab (2)
  • Ansible (1)
  • Architecture – XA and XD (21)
    • Netscaler Architecture (9)
  • AWS (2)
  • Azure (10)
    • Azure Definitions (7)
  • Best Practices (14)
  • Citrix Cloud (6)
    • Workspace Environment Management WEM (1)
  • Citrix Managed Desktops (1)
  • citrix ports (1)
  • Citrix Provisioning (18)
  • Citrix Provisioning Issues (4)
  • Citrix Tools and Scripts (15)
  • Definitions (9)
  • Downloads (1)
  • General Citrix Information (30)
  • Get Started (19)
  • IMP Posts (15)
  • Legacy Citrix Software (1)
  • My TroubleShooting (62)
  • NetScaler (57)
    • GSLB (2)
  • Other Citrix softwares (1)
  • PowerShell (2)
  • Prerequisites (6)
  • Scripts/Automation (7)
  • Tech Articles (13)
  • Terminology (4)
  • Version Differences (5)
  • Why Prerequisites (1)
  • XenApp 5 (38)
  • XenApp 6 (22)
  • XenApp 6.5 (31)
  • XenApp and XenDesktop 7.X (88)
  • XenApp Installation Scripts (3)
  • XenApp Migration (5)
  • XenApp5 Issues (1)
  • XenDesktop 5.X (27)
  • XenDesktop 7.X Issues and troubleshooting (10)
  • XenMobile (1)
  • XenServer 6 (57)

RSS Updates from Citrix Blogs

  • Seven principles of the zero trust security model August 11, 2022
    The reality of today’s fast-paced, increasingly remote work environment positions your business as vulnerable to security breaches. Your employees increasingly rely on their own unprotected devices for work, leveraging SaaS and web-based apps to access your valuable assets and data.… The post Seven principles of the zero trust security model first appeared on Citrix Blogs.  Related […]
    Akshay Kakar
  • What is the difference between virtualization and cloud computing? August 10, 2022
    Users often get confused between virtualization and cloud computing. While virtualization and cloud computing both create useful environments, there are key differences between the two technologies. In short, virtualization creates simulated versions of a machine’s software or hardware components, while … The post What is the difference between virtualization and cloud computing? first appeared on […]
    Monica Griesemer
©2022 Know Citrix | Powered by WordPress and Superb Themes!
0 shares