Wednesday, 17 January 2018

Netscaler firmware Upgrade Plan for HA

Netscaler Upgrade Method

Method of upgrading NetScaler firmware in HA:-


Preparation
1. Please make sure we have console connectivity to the NetScaler appliances.
2. Save the configurations of Primary and secondary NS appliances. Save a copy of current configuration on local workstation.
3. Download and transfer new firmware intoPrimary and secondary NS appliances.
We can use WinScp or any SFTP tool to copy firmware to NetScaler.

Procedure to upgradefirmware to NetScaler.
1. Open an SSH connection to the NetScaler by using an SSH client, such as PuTTY.
2. > show ha node (To verify Primary and Secondary node)
3. Before we begin the upgrade login to Secondary and execute below commands to make Secondary as StaySecondary and Primary as StayPrimary to avoid any HA related issues.
set ha node -hastatus STAYSECONDARY
set ha node -hasync disabled
set ha node -haprop disable
Save ns config
or
saveconfig
4. Login to Primary and make Primary as StayPrimary
set ha node -hastatus STAYPRIMARY
set ha node -hasync disabled
set ha node -haprop disabled
Save ns config
or
saveconfig
5. Log on to the both Primary and secondary NS appliances by using the administrator credentials. Create a copy of the ns.conf file. At the shell prompt, type:
a. cd /nsconfig
b. cpns.conf ns.conf.NS-10.5_date
You should backup a copy of the configuration file on another computer.
6. On the Secondary NS appliances.create a 10.5nsinstall subdirectory in the /var/nsinstall directory.
7. Change directory to /var/nsinstall/, create a directory named 10.5_60.7, and change to this directory.
8. Download or copy the installation package to this directory and extract the contents of the installation package. To download the installation package from the Citrix Web site, follow the steps below:
b. Copy the firmware to /var/nsinstall/10.5_60.7directory.
c. To untar the installation package (build_10.5_60.7_nc.tgz) execute below command
tar xvzf build_10.5_60.7.tgz
9. Run the installns script to install the new version of the system software and select the latest configuration file.
./installns
10. When prompted, restart the NetScaler.
11. Verify NetScalerappliancerunning new firmware. Execute the below command at NetScaler (>) prompt:-
> show version
12. Verify all services and vservers are running. Execute the below command at NetScaler (>) prompt:-
> show vserver
>stat service
13. Execute the below command on both the boxes to enable HA and then execute a force failover.
set ha node hastatus enabled
force failover   (To make Secondary as Primary)

14. Verify all applications are working fine without any issue before we proceed with upgrade of another node in HA.

Proceed with upgrade of new Secondary node
1. Open an SSH connection to the NetScaler by using an SSH client, such as PuTTY.
> show ha node (To verify Primary and Secondary node)
2. Before we begin the upgrade login to Secondary and execute below commands to make Secondary as StaySecondary and Primary as StayPrimary to avoid any HA related issues.
set ha node -hastatus STAYSECONDARY
set ha node -hasync disabled
set ha node -haprop disable
Save ns config
or
saveconfig


3. Login to Primary and make Primary as StayPrimary
set ha node -hastatus STAYPRIMARY
set ha node -hasync disabled
set ha node -haprop disabled
Save ns config
or
saveconfig

4. Follow the steps 6, 7, 8, 9, 10, 11, 12 and 13 listed under Procedure to upgrade NetScaler.
5. Perform the verification of new firmware, Vservers and services-
6. Once verification has been done enable sync and prop and save the configuration on both NetScaler appliances.
set ha node -hastatus enabled
set ha node -hasync enabled
set ha node -haprop enabled
Save ns config
or
saveconfig


Procedure to downgrade NetScaler.
1. Follow the upgrade step using the installation packages for the earlier version.  
2. Verify Netscaler running new firmware.
3. Verify all services and vservers are running and everything is working fine.

No comments:

Post a Comment

Click below link