Migrate the IMSS database from the postgreSQL server to an external HD (SAN) or an internal one.
To move the IMSS database:
- Go to /opt/trend/imss/script.
- Execute the following command:
./dbctl.sh stop
- Execute the command below to ensure that postgres is not running:
# ps -ef | grep post*
root 13644 9507 0 08:15 pts/0 00:00:00 grep postThe output means that the postgre is not running. - Go to the /var/ directory and execute the following:
rsync -av /var/imss /<destination directory> (copy with preserving permissions would do as well)
In the "/<destination directory>", the folder "/imss" will be placed below the directory specified in the field "/<destination directory>". Additionally, there is a free space after the /var/imss" and the "/<destination directory>". - Do the following in the /var/ directory:
- Create a backup for IMSS in /var/ using the following:
mv imss/ back-imss
- Create the symbolic link using the command below:
ln -s /<destination directory>/imss ./imss
- Create a backup for IMSS in /var/ using the following:
- Go to /opt/trend/imss/script.
- Execute "./dbctl.sh start".
- Check that the postgres is running by executing the following:
# ps -ef | grep post*
You should be able to see various processes running with postgres.
- Check that all the data are available within the GUI.