Overview
You may need to reset an LGP node; for example, after running a Health Check and finding it has been up and running for a long time (e.g., more than a year), which is not recommended. This article details the steps to create a backup and reboot an LGP node.
Requirements
- VPN Access to the end-user system.
- Release 12.4.1
Hardware Check
Before any reboot, the hardware needs to be checked to make sure no hardware issue might affect the reboot. To do so, run the following commands as root (the command could also be hpssacli
):
# hpacucli ctrl all show config
# hpacucli ctrl all show config detail
For any failure found, inform the end-user about it so that they can check it before planning a reboot.
You can access the iLO GUI to check the status of all the hardware and any alarm in iLO and IML logs. If you cannot access the iLO GUI or SSH to the iLO IP, it will need to be verified with the hardware support and network teams. The iLO access will be required in case there are any issues with the reboot because the server can still be accessed via console.
Process
LGP Backup and Reboot
-
Copy important files to another server or external PC.
-
As a TextPass user, copy the content of the directories below. There are hidden files, so please use the
a
option in thels
command to see the content.-
/usr/TextPass/etc/
-
/usr/TextPass/.store/
-
-
As root user, copy the
route
andifcfg
files in/etc/sysconfig/network-scripts/
. -
As TextPass user, save the output of the commands below.
-
$ netstat -rn
-
$ ifconfig -a
-
$ cat /etc/fstab
-
$ cat /etc/mtab
-
-
As TextPass user, stop the NMM process and make sure that no pending logfiles are being processed before stopping LGP.
-
$ tp_status
-
$ tp_walk -l lgpstatus
-
$ tp_stop
-
$ tp_status
-
$ stv_poller --status
-
$ stv_poller --stop
-
-
As root user, reboot server.
# init 6
-
After the reboot, check the status of the LGP node.
-
As root user, check if MySQL is running.
-
# service mysql status
-
# ps -ef | grep -I sql
-
-
As TextPass user, run the following commands:
-
$ tp_status
-
$ tp_walk -l lgpstatus
-
$ stv_poller --status
-
-
Check the system logs for any persistent error and check if the LGP node is running the collector.
# tail -f /var/log/messages
-
Check the output of the commands in step 4.
-
Check if the LGP node can process new logfiles and insert it into the DB.
-
As TextPass user, run this command:
$ tp_walk -l lgpstatus
-
Usually, the collection is done every 15 minutes (00, 15, 30, 45). Check again and see if the
lgpDbFiles
andlgpDbSize
files are increasing.
Confirmation
-
Check the system logs for any persistent error.
-
As root, check if the LGP node is running the collector.
# tail -f /var/log/messages
-
Check the MySQL process as a root user.
-
# service mysql status
-
# ps -ef | grep -i sql
-