Question & Answer
Question
How to shutdown NPS hosts safely and start it?
Answer
In the following steps, I assume HA1 is the primary host and HA2 is the secondary host. Please check which host is the primary/secondary before starting in your system.
HA1: the primary host
HA2: the secondary host
1. Login as NZ user in HA1. When connecting to the primary host, use the direct IP address of the host. Avoid using the VIP address
2. stop the database
$ nzstop
3. login as ROOT in HA2 and stop the heartbeat service and DRBD service
# /sbin/service heartbeat stop
# /sbin/service drbd stop
4. login as ROOT in HA1 and stop the heartbeat service and DRBD service
# /sbin/service heartbeat stop
# /sbin/service drbd stop
5. If you were connected to HA1 by using the VIP address, your session should be terminated since the VIP address is no longer working at this point. In that case, login HA1 as ROOT again and continue.
6. Disable heartbeat auto start and DRBD auto start
in HA1
# /sbin/chkconfig heartbeat off
# /sbin/chkconfig drbd off
in HA2
# /sbin/chkconfig heartbeat off
# /sbin/chkconfig drbd off
7. Make sure each host's /etc/fstab file does NOT have a large partition which causes a FSCK check when the host restarts. Having such entries is not bad, but it can delay the booting process. If you are not sure, comment out NFS and SAN partitions in /etc/fstab.
8. Reboot HA2
in HA2
# /sbin/reboot
9. Wait for HA2 to come back. Once HA2 comes back, reboot HA1
in HA1
# /sbin/reboot
10. If you commented out any entries in /etc/fstab in step#7, uncomment them.
11. Start the DRBD service on HA1 and then HA2
in HA1
# /sbin/service drbd start
in HA2 (from a different window)
# /sbin/service drbd start
12. Start the heartbeat service on HA1 and then on HA2
in HA1
# /sbin/service heartbeat start
in HA2
# /sbin/service heartbeat start
13. Enable heartbeat auto start and DRBD auto start
in HA1
/sbin/chkconfig heartbeat on
/sbin/chkconfig drbd on
in HA2
/sbin/chkconfig heartbeat on
/sbin/chkconfig drbd on
14. Wait for NPS to become Online for about 10 minutes.
Was this topic helpful?
Document Information
Modified date:
17 October 2019
UID
swg21996534