Moving to another Node

I need to reconfigre the VM Nethserver 8 is running on.
The reason is, I accidentaly made a way to big HDD and afaik there is no way to reduce the size.

So I want to setup another NS8 Node on my Proxmox-Cluster then move all Apps to this node, delete the old Node and be happy :slight_smile:

right now I have the following APPs running:

  • Samba
  • Grafana
  • Mail
  • Netdata
  • Nethsecurity Controller
  • Nextcloud
  • Roundcubemail
  • Webserver

I already started to move the Apps to the 2nd Node. Right now I have successfully moved Grafane, Webserver, Nextcloud, Roundcubemail, Netdata

When I tryed to move Nethsecurity Controller ist hung forever at 90% and now I have juste 2 Instances installed, on each Node one.

Trying to move Mail did not work (see Log below), so I deleted Mail from the new Node, itā€™s still working fine on old one.

I did not touch Samba jet, nevertheless I miss Samba on the tab ā€˜installedā€™ at the softwareCenter.

So what is the save way to move Mail and Samba with all the net folders (and its data) to the new node?

What do I have to do an the Clients side after successfull migration to log on into the domain and get the netfolders right again?

<7>podman-pull-missing ghcr.io/nethserver/mail:1.5.1
<7>extract-ui ghcr.io/nethserver/mail:1.5.1
Extracting container filesystem ui to /var/lib/nethserver/cluster/ui/apps/mail6
ui/css/
ui/css/about~31ecd969.98e6c32f.css
ui/css/addresses~31ecd969.80c00828.css
ui/css/app~748942c6.5c1c51bc.css
ui/css/domains~21833f8f.f469460d.css
ui/css/filterBypassRules~31ecd969.b6cdac8b.css
ui/css/filter~31ecd969.2256c011.css
ui/css/mailboxes~31ecd969.1a6b2cb5.css
ui/css/relay~31ecd969.6e78baf2.css
ui/css/settings-general~37ae10c2.8e0cc6ec.css
ui/css/settings-mailboxes~31ecd969.7e9ce8ba.css
ui/css/settings-master-users~af1d5d7a.b183d61f.css
ui/css/settings-queue~99305087.d62eb790.css
ui/css/settings-relay~31ecd969.76a8a5aa.css
ui/i18n/
ui/i18n/de/
ui/i18n/de/translation.json
ui/i18n/en/
ui/i18n/en/translation.json
ui/i18n/es/
ui/i18n/es/translation.json
ui/i18n/eu/
ui/i18n/eu/translation.json
ui/i18n/it/
ui/i18n/it/translation.json
ui/i18n/pt/
ui/i18n/pt/translation.json
ui/i18n/pt_BR/
ui/i18n/pt_BR/translation.json
ui/i18n/uk/
ui/i18n/uk/translation.json
ui/img/
ui/img/module_default_logo.87425d86.png
ui/index.html
ui/js/
ui/js/about~31ecd969.85c110c2.js
ui/js/about~31ecd969.85c110c2.js.map
ui/js/addresses~31ecd969.99ead83b.js
ui/js/addresses~31ecd969.99ead83b.js.map
ui/js/addresses~filter~d939e436.63c63b69.js
ui/js/addresses~filter~d939e436.63c63b69.js.map
ui/js/app~748942c6.78ce0908.js
ui/js/app~748942c6.78ce0908.js.map
ui/js/chunk-vendors~02576867.44c88c8d.js
ui/js/chunk-vendors~02576867.44c88c8d.js.map
ui/js/chunk-vendors~0f485567.8302ab88.js
ui/js/chunk-vendors~0f485567.8302ab88.js.map
ui/js/chunk-vendors~17faf02d.7f68aab6.js
ui/js/chunk-vendors~17faf02d.7f68aab6.js.map
ui/js/chunk-vendors~1d97ff09.290bda9d.js
ui/js/chunk-vendors~1d97ff09.290bda9d.js.map
ui/js/chunk-vendors~205977d4.06c35b15.js
ui/js/chunk-vendors~205977d4.06c35b15.js.map
ui/js/chunk-vendors~2a42e354.0df57e14.js
ui/js/chunk-vendors~2a42e354.0df57e14.js.map
ui/js/chunk-vendors~2aa62147.38204dba.js
ui/js/chunk-vendors~2aa62147.38204dba.js.map
ui/js/chunk-vendors~41d44f25.e7779fa1.js
ui/js/chunk-vendors~41d44f25.e7779fa1.js.map
ui/js/chunk-vendors~46852254.0b6d19c2.js
ui/js/chunk-vendors~46852254.0b6d19c2.js.map
ui/js/chunk-vendors~57473a66.f586d2ed.js
ui/js/chunk-vendors~57473a66.f586d2ed.js.map
ui/js/chunk-vendors~5bb1f863.3efba861.js
ui/js/chunk-vendors~5bb1f863.3efba861.js.map
ui/js/chunk-vendors~5eba3806.b8428291.js
ui/js/chunk-vendors~5eba3806.b8428291.js.map
ui/js/chunk-vendors~690b702c.35a9888d.js
ui/js/chunk-vendors~690b702c.35a9888d.js.map
ui/js/chunk-vendors~7274e1de.f46e1de8.js
ui/js/chunk-vendors~7274e1de.f46e1de8.js.map
ui/js/chunk-vendors~86f6b1bc.93dcf028.js
ui/js/chunk-vendors~86f6b1bc.93dcf028.js.map
ui/js/chunk-vendors~b5906859.deff14e4.js
ui/js/chunk-vendors~b5906859.deff14e4.js.map
ui/js/chunk-vendors~bc21d4b3.68b10b46.js
ui/js/chunk-vendors~bc21d4b3.68b10b46.js.map
ui/js/chunk-vendors~c8728516.dd1ccc58.js
ui/js/chunk-vendors~c8728516.dd1ccc58.js.map
ui/js/chunk-vendors~d2305125.6a99a4ff.js
ui/js/chunk-vendors~d2305125.6a99a4ff.js.map
ui/js/chunk-vendors~d9886323.1a1a66f6.js
ui/js/chunk-vendors~d9886323.1a1a66f6.js.map
ui/js/chunk-vendors~db300d2f.ddb8641c.js
ui/js/chunk-vendors~db300d2f.ddb8641c.js.map
ui/js/chunk-vendors~ec8c427e.5c1734c3.js
ui/js/chunk-vendors~ec8c427e.5c1734c3.js.map
ui/js/chunk-vendors~fdc6512a.81c5c86c.js
ui/js/chunk-vendors~fdc6512a.81c5c86c.js.map
ui/js/domains~21833f8f.d8edabd6.js
ui/js/domains~21833f8f.d8edabd6.js.map
ui/js/filterBypassRules~31ecd969.888d6aea.js
ui/js/filterBypassRules~31ecd969.888d6aea.js.map
ui/js/filter~31ecd969.6289d0aa.js
ui/js/filter~31ecd969.6289d0aa.js.map
ui/js/lang-de-translation-json~3c620948.678ae6ef.js
ui/js/lang-de-translation-json~3c620948.678ae6ef.js.map
ui/js/lang-en-translation-json~9b60384d.a29aea3c.js
ui/js/lang-en-translation-json~9b60384d.a29aea3c.js.map
ui/js/lang-es-translation-json~f7c30340.2b56fad2.js
ui/js/lang-es-translation-json~f7c30340.2b56fad2.js.map
ui/js/lang-eu-translation-json~8ed4c5c2.8d432041.js
ui/js/lang-eu-translation-json~8ed4c5c2.8d432041.js.map
ui/js/lang-it-translation-json~e043826f.a546e7cf.js
ui/js/lang-it-translation-json~e043826f.a546e7cf.js.map
ui/js/lang-pt-translation-json~45d767f3.0b2356b7.js
ui/js/lang-pt-translation-json~45d767f3.0b2356b7.js.map
ui/js/lang-pt_BR-translation-json~eef7148a.564337c2.js
ui/js/lang-pt_BR-translation-json~eef7148a.564337c2.js.map
ui/js/lang-uk-translation-json~14c5171a.48b0dfb6.js
ui/js/lang-uk-translation-json~14c5171a.48b0dfb6.js.map
ui/js/mailboxes~31ecd969.15e10dab.js
ui/js/mailboxes~31ecd969.15e10dab.js.map
ui/js/relay~31ecd969.53f6bfdb.js
ui/js/relay~31ecd969.53f6bfdb.js.map
ui/js/settings-general~37ae10c2.0b56d0ca.js
ui/js/settings-general~37ae10c2.0b56d0ca.js.map
ui/js/settings-mailboxes~31ecd969.fa0a85e1.js
ui/js/settings-mailboxes~31ecd969.fa0a85e1.js.map
ui/js/settings-master-users~af1d5d7a.365f25ba.js
ui/js/settings-master-users~af1d5d7a.365f25ba.js.map
ui/js/settings-queue~99305087.6233f106.js
ui/js/settings-queue~99305087.6233f106.js.map
ui/js/settings-relay~31ecd969.2b2fa5ea.js
ui/js/settings-relay~31ecd969.2b2fa5ea.js.map
ui/js/settings~31ecd969.5838e8ea.js
ui/js/settings~31ecd969.5838e8ea.js.map
ui/metadata.json
ui/shortcuts.json
089cd143a1980e9a97f2150d023cdc412d6ce9a82b537d109933967967c952d2
Assertion failed
  File "/var/lib/nethserver/cluster/actions/add-module/50update", line 196, in <module>
    agent.assert_exp(create_module_result['exit_code'] == 0) # Ensure create-module is successful

You could try backup/restore instead of moving.

After Samba is restored to the new node, it may be necessary to set the DC IP, see also NethServer 7 migration ā€” NS8 documentation

If possible share relevant errors from the logs page so we can check and possibly fix the migration process.

If itā€™s hard to find errors you could write a specific app log to the file dump and send or share the file:

journalctl _UID=$(id -u nextcloud4) > dump

Write complete logfile to the file dump:

journalctl > dump

1 Like

Thankyou for your answer.
What would be the exact steps for the backup/restore procedure?
Build the new mashine and then?

how can I stop some Apps like the mailserver before backup ?

  • Create a backup using the integrated backup, see also Backup and restore ā€” NS8 documentation
  • Stop app on old node.
  • Restore an app of the backup to the 2nd node.
  • If needed manage DNS entries for the app to point to the new node.
  • Test the app on the new node

No need to create a new machine as you already have a second node. You can use a NAS or some online storage for the backup.

To stop an app: (for example nextcloud)

runagent -m nextcloud1 systemctl --user stop nextcloud
1 Like

So just backup all I need, restore it to the 2nd node, then promote the 2nd Node to leader and delte the first Node?

1 Like

Yes, exactly.
Just to clarify, I just meant the missing apps, you donā€™t need a complete backup/restore of all apps.

Iā€™m cleanig up before doing this, so I decidet to get rid of netdata. when uninstalling I got :

Maybe you can ignore this error. Is the netdata app still there after a browser refresh?

yes it is

It should be possible to remove on CLI using remove-module

usage: remove-module [-h] [ā€“no-preserve] [ā€“force] module

To remove netdata3:

remove-module --no-preserve --force netdata3
Assertion failed
  File "/var/lib/nethserver/cluster/actions/remove-module/50update", line 66, in <module>
    agent.assert_exp(destroy_module_result['exit_code'] == 0)

did not work. Iā€™m going to ignore it becouse its on node1 the one Iā€™m going to delete anyway

1 Like

For some reason I miss Samba on SoftwareCenter | installed apps,
would this be a problem?

Hi @mrmarkuz , @pnemenz

I somehow recall that Samba / AD cannot be ā€œremovedā€. They must be destroyed.

Then restored.

My 2 cents
Andy

I didnā€™t find another way to move samba than backup/restore as samba is selectable in backup but not in Software Center.

I cant stop the mail system

runagent -m mail5 systemctl --user stop mail
Failed to stop mail.service: Unit mail.service not loaded.

In this case there are some services to stop:

runagent -m mail5 systemctl --user stop clamav rspamd postfix dovecot

as always youre a great help.
The mail is resorred on the new Node but I think roundcube still trys to connent to the old one.
I found in the roundcube log:

Error: Login failed for peter@nemenz.at against 10.5.4.1 from 10.0.2.100 (X-Real-IP: 192.168.XXX.XXX,X-Forwarded-For: 192.168.XXX.XXX). Could not connect to 10.5.4.1:143: Connection refused in /var/www/html/program/lib/Roundcube/rcube_imap.php on line 211 (POST /?_task=login&_action=login)

10.5.4.1 is the vpn Adress of the old node

Please check the NS8 Roundcube app settings in the cluster-admin, maybe it still points to the old mail serverā€¦

I dont see any settings for the mailserver there, only roundcube-hoste name and domain.
On the DNS the forwarders are correctly and I do not have any 10.xxx.xxx.xxx aderesses there

It should be possible to choose the Mail server in Roundcube settings:

Maybe itā€™s enough to just save the settings.