Closed amar3lo closed 4 years ago
Excellent question @amar3lo!
I realized I did not mention that in the guide as this was mainly addressed to migrating to a partitioned database from an already running Zabbix instance.
To use partitioning on a fresh install on the following specifications:
defaults/main.yml
file.$ cd /tmp
$ wget https://repo.zabbix.com/zabbix/4.0/debian/pool/main/z/zabbix-release/zabbix-release_4.0-3+stretch_all.deb
$ sudo dpkg -i zabbix-release_4.0-3+stretch_all.deb
$ sudo apt update
$ sudo apt-get install --no-install-recommends zabbix-server-pgsql
# Now import the schema. You will get errors stating some tables and indexes already exist but ignore those as they were purposefully set on the partitioning portion.
$ zcat /usr/share/doc/zabbix-server-pgsql*/create.sql.gz | sudo -u zabbix psql zabbix
Let me know how it goes and if you run into any issues.
All the best, Andreas
I have no words to express my gratitude!!! it works like a charm, thank you!
Awesome to hear @amar3lo ! I'm going to add this into the guide as well so others can follow this for a fresh install. Thanks for verifying that it worked seamlessly.
how should i proceed on a fresh installation? which step should I import the create.sql?