Hi zusammen,

bitte schlagt mich nicht o:-)
Ich habe seit geraumer Zeit eine Version von Grommunio am Laufen und habe die Updates/Upgrades ausgespart, da es zu der Zeit immer mal wieder Probleme nach einem Update gab. Mit dem installierten Stand ging alles soweit.
Jetzt würde ich gerne auf eine aktuelle Version gehen und natürlich sind die Repositories nicht mehr verfügbar.
Gibt es einen möglichst schmerzfreien Weg auf den aktuellen Stand zu kommen?
ich kann mich mit einer kompletten Neuinstallation durchaus anfreunden, aber ich habe keine direkte Möglichkeit gefunden, die Daten von der alten auf eine neue Installation zu bringen. (Datenmigration)
Habt ihr einen Tipp oder einen Vorschlag?
Das wäre suuuper lieb von euch.

Grüsse,
Christian

Installiert habe ich auf einer Grommunio Appliance (grommunio 2022.05.2):
grommunio-admin-api-1.11.27.a6e29ae-lp153.79.1.noarch
grommunio-admin-common-6.cb985db-lp153.14.1.noarch
grommunio-admin-web-2.8.0.3.57a15dd-lp153.62.1.noarch
grommunio-antispam-3.6-lp153.5.2.x86_64
grommunio-common-19.8c217e2-lp153.29.1.x86_64
grommunio-cui-1.0.251.f5d5d0f-lp153.52.1.noarch
grommunio-dav-1.3.13.a926279-lp153.1.1.noarch
grommunio-error-pages-1.0.9.224b089-lp153.9.1.noarch
grommunio-imapsync-2.229-lp153.3.1.noarch
grommunio-index-0.1.37.74e396b-lp153.40.2.x86_64
grommunio-release-2022.05.2-lp153.3.2.x86_64
grommunio-setup-1.0.101.c41dae4-lp153.39.1.noarch
grommunio-sync-2.0.31.0ec6aa0-lp153.133.1.noarch
grommunio-web-3.2.84.f7738a0-lp153.34.2.noarch
gromox-2.13.41.19134b4-lp153.27.1.x86_64
gromox-debuginfo-2.13.41.19134b4-lp153.27.1.x86_64
gromox-debugsource-2.13.41.19134b4-lp153.27.1.x86_64

Die Alternative wäre eine Neuinstallation mit anschließender Datenübertragung. Ich würde die Wege mal testen.

@biggoof It is relatively simple to migrate the data from one Grommunio Appliance to a new one. A number of the regular posters on this forum produced the following steps a year or so ago that should help you along the way. This is best done in a VM environment as it allows you to take snapshot at each build milestone, so you can test and if you come across issues you can quickly have another go rather that having to start over. I have used this method several times, over the last couple of years as I build a new VM each time a new ISO is released, just keeps things clean in the OS bits.

Migrate Users and Data from Old server to New server.

  1. Update and reboot the source (old server) and target (new server) system: zypper refresh & & zypper update (could also use the updater in the admin GUI console
  2. Build new server installation identical to current live server. Follow build documentation (above) up to the point where the new server is running but no WebAdmin config has been done (no Org, Domain or users), call this ‘new server’ in the steps below.
  3. Stop inbound Internet email and user access to live server mailboxes to avoid missing emails during migration.
  4. Optional step - If Grommunio is in a Virtual Environment, clone live server to avoid any damage/corruption to current live server during migration (call this ‘old server’ in steps below), just in case you need to revert to what was your current live server.
  5. Stop services on both systems (run this command on both systems - should all be on one line):

systemctl --all --output json list-units| jq '.[]|select(.unit|test("(grom.|nginx|.fpm).service")).unit' |xargs systemctl stop

  1. Export of the MariaDB database on old server:

mysql --execute="SHOW DATABASES" --skip-column-names --batch |grep -Ev '^(mysql|.(performance|information)_schema)$' |while read -r DB; do mysqldump --single-transaction --routines --triggers --events --add-drop-database $DB > /usr/local/share/$DB.sql ; done

  1. User Data - transfer old server to new server:

rsync -aH -essh --delete --numeric-ids -P --stats --inplace /var/lib/gromox/ root@192.168.xxx.xxx:/var/lib/gromox/

  1. Move MariaDB backup (from step 6) from old system to new system. Run this on old server:

rsync -aH -essh --delete --numeric-ids -P --stats --inplace /usr/local/share/ root@192.168.xxx.xxx:/usr/local/share/

  1. Check the folder permissions and set folder permissions for Grommunio Core on new server off not as below:

chown -Rf grommunio:gromox /var/lib/gromox
chown -Rf gromox:gromox /var/lib/gromox
chown -Rf grommunio:gromox /var/lib/gromox/user/*
chmod -Rf 0770 /var/lib/gromox
chmod -Rf 0775 /var/lib/gromox/domain/*

  1. If using Grommunio Files set folder permissions for Grommunio Files on new server:

chown -Rf grofiles:grofiles /var/lib/grommunio-files/data

  1. Import of the MariaDB Grommunio database on new server:

mysql grommunio < /usr/local/share/grommunio.sql

  1. Import of the MariaDB Grofiles database on new server:

mysql grofiles < /usr/local/share/grofiles.sql

  1. Import of the MariaDB system database on new server:

mysql sys < /usr/local/share/sys.sql

  1. Check import user /var/lib/gromox/user/x/y/: run

grommunio-admin user query username maildir

on both systems - make sure they match. Later versions of the appliance use domain instead of x and username instead of y, so /var/lib/gromox/user/yourdomain.com/user/

  1. Reboot

Finally test, test, test to make sure everything is working and all you emails, users etc have been migrated.

I only use Core and Files modules, so not sure what will be needed if you have data in additional modules, but the above should give you a good hint at to what will be needed to move. If you have done any customisation to RSpam settings, postfix etc, then these will also need to be migrated over (copy the configuration files from old to new server). Again I do not use/or need to make any changes to these services as I use an standalone SPAM solution that handles most of the stuff that RSpam and postfix do, in a much easier environment (free for up to 5 users).

Hope above helps you with your migration to the latest version.

Mark

Grofiles data and database only, if installed. So if online Core is installed, so is not needed.

Hi zusammen,

wow.. Vielen lieben Dank für die Antworten. Ihr seid die Besten..
Ich gehe die Varianten mal im Detail durch und teste zuerst auf einer Kopie.

Nochmal Danke und Grüsse..
Christian

© 2020-2024 grommunio GmbH. All rights reserved. | https://grommunio.com | Data Protection | Legal notice