Replacing between different versions (Method 1)¶
Old version |
New version |
10.5-57.7 Standard Edition | 11.0-67.12 Standard Edition |
System configuration to replace in this guide¶
Prerequisites¶
Version upgrade is not possible, as described in the `Service Descriptions<https://ecl.ntt.com/en/documents/service-descriptions/rsts/network/loadbalancer/loadbalancer.html#id30>`_.
For with-VRRP replacing from the old to new version, it is necessary to stop VRRP of the old LB and add VRRP settings of the new LB, because operations differ between the versions.
The customer is expected to check the functions with the new version beforehand.
It is assumed that VRRP operates in the interface for client side and does not operate in the interface for distribution server side because SNAT works there.
In vserver setting, please note that contents of settings are different between Pattern A where Virtual IP addresses are registered in the different segment from Virtual IPs registered for VRRP and are set as IP addresses to distribute so that redundancy of multiple VIP become possible, and Pattern B where Virtual IPs registered for VRRP are set as Virtual IP addresses.
As deleted VRID has to be newly created at the time of change back, record the set values of VRID in advance.
Though the settings are not saved on the old LB side in this procedure, save the settings as required because rebooting will return the settings to those before saving. For saving method, please refer to Setting for configuration saving of NetScaler VPX.
For this procedure, operations have been checked with the following settings made.
In vserver setting, please note that contents of settings are different between when VIP of VRRP and Virtual Server IP are the same, and when they are different.
#Enable Function
enable ns feature LB SSL
#VRID
add vrID 40 -priority 200 -preemption ENABLED
#VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#server
add server Web-server-01 172.16.10.11 -td 10
add server Web-server-02 172.16.10.12 -td 10
#service group
add serviceGroup HTTPGroup HTTP -td 10 -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP NO
bind serviceGroup HTTPGroup Web-server-01 80
bind serviceGroup HTTPGroup Web-server-02 80
bind serviceGroup HTTPGroup -monitorName http
#vserver(Pattern a: In case of different VIP for VRRP and Virtual Server IP)
add lb vserver http-vserver HTTP 172.16.100.100 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 172.16.100.200 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#vserver(Pattern b: In case of same VIP for VRRP and Virtual Server IP)
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#ssl
add ssl certKey server1 -cert server1.crt -key server1.key.pass -passcrypt "password for secret key"
add ssl certKey midCA -cert midcacert.pem
link ssl certKey server1 midCA
bind ssl vserver ssl-vserver -certkeyName server1
#bind
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
#hostname
set ns hostName lb1
#timezone
set ns param -timezone "GMT+09:00-JST-Asia/Tokyo"
#Enable feature
enable ns feature LB SSL
#VMAC
add vrID 40 -priority 100 -preemption ENABLED
#VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#server
add server Web-server-01 172.16.10.11 -td 10
add server Web-server-02 172.16.10.12 -td 10
#service group
add serviceGroup HTTPGroup HTTP -td 10 -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP NO
bind serviceGroup HTTPGroup Web-server-01 80
bind serviceGroup HTTPGroup Web-server-02 80
bind serviceGroup HTTPGroup -monitorName http
#vserver(Pattern a: In case of different VIP for VRRP and Virtual Server IP)
add lb vserver http-vserver HTTP 172.16.100.100 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 172.16.100.200 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#vserver(Pattern b: In case of same VIP for VRRP and Virtual Server IP)
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#ssl
add ssl certKey server1 -cert server1.crt -key server1.key.pass -passcrypt "秘密鍵のパスワード"
add ssl certKey midCA -cert midcacert.pem
link ssl certKey server1 midCA
bind ssl vserver ssl-vserver -certkeyName server1
#bind
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
#hostname
set ns hostName lb2
#timezone
set ns param -timezone "GMT+09:00-JST-Asia/Tokyo"
The image of replacing¶
Work procedure¶
1 Pre-check¶
1-1. Save the configuration of old LB1.
1-2. Save the configuration of old LB2.
2.Creating new LB¶
2-1. Creating new LB1
Note
Note
Note
Note
If syslog transfer setting is not required, skip this work step.
2-2. Creating new LB2
Note
Note
Note
Note
3.Setting onto the New LB¶
3-1.Restoring the configuration onto new LB1 beforehand
$ ssh user-admin@172.16.10.252
###############################################################################
# #
# WARNING: Access to this system is for authorized users only #
# Disconnect IMMEDIATELY if you are not an authorized user! #
# #
###############################################################################
Password:
#VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#Disable Virtual IP for loadbalancing
disable ns ip 172.16.100.100 -td 10
disable ns ip 172.16.100.200 -td 10
#Remove configuration in order to configure via GUI
add ssl certKey server1 -cert server1.crt -key server1.key.pass -passcrypt "秘密鍵のパスワード"
add ssl certKey midCA -cert midcacert.pem
link ssl certKey server1 midCA
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#VirtualServer for loadbalancing
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind setting for virtual server
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
#Remove configuration in order to configure via GUI
add ssl certKey server1 -cert server1.crt -key server1.key.pass -passcrypt "秘密鍵のパスワード"
add ssl certKey midCA -cert midcacert.pem
link ssl certKey server1 midCA
Note
3-2.Restoring the configuration onto new LB2 beforehand
$ ssh user-admin@172.16.10.253
###############################################################################
# #
# WARNING: Access to this system is for authorized users only #
# Disconnect IMMEDIATELY if you are not an authorized user! #
# #
###############################################################################
Password:
#VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#VirtualServer for loadbalancing
disable ns ip 172.16.100.100 -td 10
disable ns ip 172.16.100.200 -td 10
#Remove configuration in order to configure via GUI
add ssl certKey server1 -cert server1.crt -key server1.key.pass -passcrypt "秘密鍵のパスワード"
add ssl certKey midCA -cert midcacert.pem
link ssl certKey server1 midCA
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#VirtualServer for loadbalancing
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind configuration for VirtualServer
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
#Remove configuration in order to configure via GUI
add ssl certKey server1 -cert server1.crt -key server1.key.pass -passcrypt "秘密鍵のパスワード"
add ssl certKey midCA -cert midcacert.pem
link ssl certKey server1 midCA
Note
4.Communication stop of old LB¶
4-1. Stop communication of old LB2(Backup)
Note
4-2. Stop communication of old LB1(Master)
Note
5.Start communication of new LB¶
5-1. Setting VRRP of new LB1 (Master system)
#Enable Virtual IP for loadbalancing
enable ns ip 172.16.100.100 -td 10
enable ns ip 172.16.100.200 -td 10
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#VirtualServer configuration for loadbalancing
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind configuration for vserver
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
Note
#VRRP check command
> sh vrid
5-2.Check communications.
Note
5-3.Setting VRRP of new LB2 (for backup)
#Enable Virtual IP for loadbalancing
enable ns ip 172.16.100.100 -td 10
enable ns ip 172.16.100.200 -td 10
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#VirtualServer for loadbalancing
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind configuration for Virtual Server
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
#VRRP check command
> sh vrid
5-4.Saving the configuration file of the new LB.
> save ns config
Done
>
> save ns config
Done
>
6.Deletion of the old LB¶
6-1.Select “Network” then “Load Balancer” on ECL2.0 Control Panel. Then, display the Load Balancer list.
6-2.Delete the Load Balancer(old LB1) through ECL2.0 Customer Portal.
Note
6-3.Delete the Load Balancer (old LB2) through ECL2.0 Customer Portal.
Note
7.Switchback Procedure¶
7-1. Setting change of new LB1 (Master system)
#Disable Virutal IP for loadbalancing
disable ns ip 172.16.10.100 -td 10
disable ns ip 172.16.10.200 -td 10
disable ns ip 192.168.10.251 -td 10
#Delete vrID
rm vrid 40
#Save
save ns config
#Disable Virutal IP for loadbalancing
disable ns ip 192.168.10.251 -td 10
#Delete vrID
rm vrid 40
#Save
save ns config
7-2. Setting change of old LB1 (Master system)
Note
> save ns config
Done
>
Note
7-3. Setting change of old LB2 (Backup system)
8.To-be-set Configuration Examples¶
#Enable feature
enable ns feature LB SSL
#VRID
add vrID 40 -priority 200
#Server
add server Web-server-01 172.16.10.11 -td 10
add server Web-server-02 172.16.10.12 -td 10
#ServiceGroup
add serviceGroup HTTPGroup HTTP -td 10 -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP NO
bind serviceGroup HTTPGroup Web-server-01 80
bind serviceGroup HTTPGroup Web-server-02 80
bind serviceGroup HTTPGroup -monitorName http
#VirtualServer for loadbalancing
add lb vserver http-vserver HTTP 172.16.100.100 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 172.16.100.200 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#Disable Virtual IP for loadbalancing
disable ns ip 172.16.100.100 -td 10
disable ns ip 172.16.100.200 -td 10
##SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind configuration for VirtualServer
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
##hostname
set ns hostName lb1
#timezone
set ns param -timezone "GMT+09:00-JST-Asia/Tokyo"
#Save
save ns config
Note
#Enable feature
enable ns feature LB SSL
#VRID
add vrID 40 -priority 200
#Server
add server Web-server-01 172.16.10.11 -td 10
add server Web-server-02 172.16.10.12 -td 10
#ServiceGroup
add serviceGroup HTTPGroup HTTP -td 10 -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -cltTimeout 180 -svrTimeout 360 -CKA NO -TCPB NO -CMP NO
bind serviceGroup HTTPGroup Web-server-01 80
bind serviceGroup HTTPGroup Web-server-02 80
bind serviceGroup HTTPGroup -monitorName http
##hostname
set ns hostName lb1
#timezone
set ns param -timezone "GMT+09:00-JST-Asia/Tokyo"
#Save
save ns config
Note
#Enable Virtual IP for loadbalancing
enable ns ip 172.16.100.100 -td 10
enable ns ip 172.16.100.200 -td 10
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#VirtualServer for loadbalancing
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
##SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind configuration for VirtualServer
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
#Enable feature
enable ns feature LB SSL
#VRID
add vrID 40 -priority 100
#Server
add server Web-server-01 172.16.10.11 -td 10
add server Web-server-02 172.16.10.12 -td 10
#ServiceGroup
add serviceGroup HTTPGroup HTTP -td 10 -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -cltTimeout 180 - svrTimeout 360 -CKA NO -TCPB NO -CMP NO
bind serviceGroup HTTPGroup Web-server-01 80
bind serviceGroup HTTPGroup Web-server-02 80
bind serviceGroup HTTPGroup -monitorName http
#VirtualServer for loadbalancing
add lb vserver http-vserver HTTP 172.16.100.100 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 172.16.100.200 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
#Disable Virtual IP for loadbalancing
disable ns ip 172.16.100.100 -td 10
disable ns ip 172.16.100.200 -td 10
##SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind configuration for VirtualServer
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup
##hostname
set ns hostName lb2
#timezone
set ns param -timezone "GMT+09:00-JST-Asia/Tokyo"
#Save
save ns config
Note
#Enable feature
enable ns feature LB SSL
#VRID
add vrID 40 -priority 100
#Server
add server Web-server-01 172.16.10.11 -td 10
add server Web-server-02 172.16.10.12 -td 10
#ServiceGroup
add serviceGroup HTTPGroup HTTP -td 10 -maxClient 0 -maxReq 0 -cip DISABLED -usip NO -useproxyport YES -cltTimeout 180 - svrTimeout 360 -CKA NO -TCPB NO -CMP NO
bind serviceGroup HTTPGroup Web-server-01 80
bind serviceGroup HTTPGroup Web-server-02 80
bind serviceGroup HTTPGroup -monitorName http
##hostname
set ns hostName lb2
#timezone
set ns param -timezone "GMT+09:00-JST-Asia/Tokyo"
#Save
save ns config
Note
#Enable Virtual IP for loadbalancing
enable ns ip 172.16.100.100 -td 10
enable ns ip 172.16.100.200 -td 10
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#Virtual IP for VRRP
add ns ip 192.168.10.251 255.255.255.0 -type VIP -snmp DISABLED -mgmtAccess ENABLED -vrID 40 -td 10
#VirtualServer for loadbalancing
add lb vserver http-vserver HTTP 192.168.10.251 80 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
add lb vserver ssl-vserver SSL 192.168.10.251 443 -persistenceType NONE -Listenpolicy None -cltTimeout 180 -td 10
##SSL
bind ssl vserver ssl-vserver -certkeyName server1
#Bind configuration for VirtualServer
bind lb vserver http-vserver HTTPGroup
bind lb vserver ssl-vserver HTTPGroup