How to Restore NetScaler SDX to Factory Default Settings

How to Restore NetScaler SDX to Factory Default Settings

book

Article ID: CTX200662

calendar_today

Updated On:

Description

This article describes how to restore NetScaler SDX to factory default settings.

 Important Points to Note

  1. The procedure mentioned in this article is for troubleshooting or a last resort step only. The recommend procedure to restore NetScaler SDX to factory default settings is using SVM GUI .
  2. Before performing a factory reset, back up all the data stored on the appliance, including the settings of all the NetScaler instances provisioned on the appliance. Citrix recommends that you store the files outside the appliance.
  3. During the factory reset operation,  as a part of reboot,  the system may appear to be stalled or hanging,  but it is not.  Please give enough time for operation to complete.
    If possible,  please use LOM virtual java console that provides  additional details on progress of factory reset.
     

Instructions

For 13.0 release and higher: 

The procedure to perform factory reset has changed:

1. Please ensure that XS/Dom0 is running XS7.1.2/13.0 image
[root@netscaler-sdx ~]# uname -a
Linux netscaler-sdx 4.4.0+2 #1 SMP Fri Jun 28 09:32:39 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
root@netscaler-sdx ~]# cat /etc/sdx-inventory  | grep SDX_PLATFORM
SDX_PLATFORM=13.0.0-202
SDX_PLATFORM_SBI=13.0-58.20
 
2. Please run the following command and then reboot the system.
[root@netscaler-sdx ~]# /usr/sbin/sdx_factory_reset.sh

 Note: Please do not run any sfdisk commands as it may make the system unbootable. 

For 11.X/12.X release: 
These commands below are only valid for releases 11.X/12.X running XS6.5

 1. Please ensure that XS/Dom0 is running XS6.5 image

[root@netscaler-sdx ~]# uname –a
Linux netscaler-sdx 3.10.0+2 #1 SMP Thu Aug 3 12:43:50 EDT 2017 x86_64 x86_64 x86_64 GNU/Linux

[root@netscaler-sdx ~]# cat /etc/sdx-inventory  | grep SDX_PLATFORM

SDX_PLATFORM=12.1.0-135
SDX_PLATFORM_SBI=12.1-56.5

There are different procedures for RAID and non-RAID storage appliance. Before starting the procedure verify the storage of your SDX Model 

Non-RAID Storage SDX

Complete the following steps to restore NetScaler SDX to factory default settings:

 

  1. Run the following command from the CLI of NetScaler (XenServer level):
    • sfdisk --change-id /dev/sda 1 c
    • sfdisk /dev/sda -A 1
    • reboot
  2. Reconfigure SVM using article CTX130496 - How to Configure the Service VM on a NetScaler SDX Appliance .

RAID Storage SDX

Complete the following steps to restore NetScaler SDX to factory default settings:
Note: If you are using NetScaler SDX 22XXX/24XXX platform series, even though this is a RAID platform it still has /dev/sda1 as the factory partition. Follow the "Non-RAID Storage SDX" procedure to reset NetScaler SDX 22XXX/24XXX to factory default settings

  1. Run the following command from the CLI of NetScaler (XenServer level):
    • sfdisk --change-id /dev/md_d0 1 c
    • sfdisk /dev/md_d0 -A 1
    • reboot 
  2. If the appliance is in rescue mode prompt, then run the following command from the CLI of NetScaler (XenServer level):
    • sfdisk --change-id /dev/md125 1 c
    • sfdisk /dev/md125 -A 1
    • reboot 
  3. Reconfigure SVM using article CTX130496 - How to Configure the Service VM on a NetScaler SDX Appliance .

For some models the NICs may be removed after reset procedure due to firmware updates over versions. Updating the SDX appliance after factory reset should resolve this issue. Refer to article XL710 Firmware Update Feature for NetScaler SDX Models 14xxx 40G and 25xxx 40G  for more information. 

Issue/Introduction

This article describes how to restore NetScaler SDX to factory default settings.

Additional Information