You are on page 1of 13

YSOFT SAFEQ 6

DOCUMENTATION
THE SETUP, SERVICE, AND FUNCTIONS
OF YSOFT SAFEQ 6

YSOFT SAFEQ 6 DOCUMENTATION WWW.YSOFT.COM


CONTENT

1 Prerequisites 3
2 PostgreSQL 4
2.1 Installation 4
2.2 Move PostgreSQL from already installed SafeQ 6 instance 5
3 Configure High Availability for PostgreSQL 7
4 SafeQ 6 configuration 12
5 Test 13
1 PREREQUISITES

Windows Server 2012 R2 Failover cluster with at least 2 nodes is installed and configured

1 clustered disk is available for PostgreSQL data

The clustered disk must have the same disk name on both nodes

Dedicated IP address for the PostgreSQL instance

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 3


2 POSTGRESQL

2.1 INSTALLATION

Install the supported version of PostgreSQL (9.4 for SafeQ6) from install kit on each node to C:
drive

Copy the folder with data (by default C:\Program Files\PostgreSQL\9.4\data) to a folder on the
clustered disk (i.e. D:\data)

The data folder will be moved only from one node (the second data folder will be removed)

Open regedit.exe

Navigate to HKLM\SYSTEM\CurrentControlSet\Services\potgresql-x64-9.4

Open key ImagePath

Change value - "C:\Program Files\PostgreSQL\9.4\bin\pg_ctl.exe" runservice -N "postgresql-x64-


9.4" -D "C:\Program Files\PostgreSQL\9.4\data" -w

to - "C:\Program Files\PostgreSQL\9.4\bin\pg_ctl.exe" runservice -N "postgresql-x64-9.4" -D "D:


\data" -w

Save the key

Change Start key value to 3

Close the regedit

Reboot the node

Do the same for the second node

Configure

Dabatase listening port - D:\data\postgresql.conf (port = 5432 # (change requires restart))

Access rights for group, user, IP address - D:\data\pg_hba.conf (host all all 127.0.0.1/32
md5)

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 4


2.2 MOVE POSTGRESQL FROM ALREADY INSTALLED SAFEQ 6 INSTANCE

Install Visual C++ redistributable for Visual Studio 13 on each cluster node

Stop YSoft service (at least the YSoftPGSQL service) on the server where YSoft SafeQ
Management Service server is installed

Move folder %SAFEQ_HOME%\PGSQL from SafeQ server to C drive of each cluster node (i.e C:
\PGSQL)

Move folder %SAFEQ_HOME%\PGSQL-data from SafeQ server to D drive (clustered disk) of the
cluster (i.e. D:\PGSQL-data)

On the SafeQ 6 server open regedit.exe

Navigate to HKLM\SYSTEM\CurrentControlSet\Services\YSoftPGSQL

Right click

Select export

Save the export to a file and copy the file to C drive of each node

On the cluster node, open explorer

Navigate to the saved export file and double click

Merge the file with registry

Open regedit.exe

HKLM\SYSTEM\CurrentControlSet\Services\YSoftPGSQL

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 5


Change value - "C:\SafeQ6\Management\PGSQL\bin\pg_ctl.exe" runservice -N "YSoftPGSQL" -D
"C:\SafeQ6\Management\PGSQL-data" -w

to - "C:\PGSQL\bin\pg_ctl.exe" runservice -N "YSoftPGSQL" -D "D:\PGSQL-data" -w

Save the key

Change Start key value to 3

Close the regedit

Check the configuration of PostgreSQL

Dabatase listening port - D:\PGSQL-data\postgresql.conf (port = 5433 # (change requires


restart))

Access rights for group, user, IP address - D:\PGSQL-data\pg_hba.conf (host all all 0.0.0.0/0
md5)

Reboot the node

Do the same for the second node

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 6


3 CONFIGURE HIGH AVAILABILITY FOR POSTGRESQL

Open Failover Cluster Manager

Navigate to Roles

On the right pane click Configure Role...

Click Next in the first window

Select General service

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 7


Click Next

Select YSoft Bundled PostgreSQL 9.4

Click Next

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 8


Enter the name of the clustered service

Enter a dedicated IP address

Click Next

Select the clustered disk which will be dedicated for the data of PostgreSQL

Click Next

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 9


No registry replication and therefore click Next

Click Next on Confirmation page

Click Finish on Summary page

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 10


The clustered service should be started and visible in Failover Cluster Manager

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 11


4 SAFEQ 6 CONFIGURATION

The configuration of already installed SafeQ 6 instance must be re-configured to get the
connection on newly created HA PostgreSQL.

Open %SAFEQ_HOME%\conf\safeq.conf

Change database.host = - to the IP address dedicated for HAPostgreSQL (entered during


clustered service configuration)

The service YSoftPGSQL can be removed by sc.exe delete YSoftPGSQL from the SafeQ server

The folders %SAFEQ_HOME%\PGSQL and %SAFEQ_HOME%\PGSQL-data can be removed

Restart YSoft services

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 12


5 TEST

Configure the database as mentioned above

Run web administration interface

YSOFT SAFEQ AN ENTERPRISE PRINT MANAGEMENT SOLUTION 13

You might also like