Restore Backup - NSDC Wont start

NethServer Version: NethServer release 7.9.2009 (final)
Module: NSDC / NetWorks

Hello all! :slight_smile:
Well, i am planning some server migration and decided to test out before backup/restore, and all backups i try to restore are giving me some trouble, especially with NSDC, i cant get it to work.
I followed all the instructions here: Disaster recovery — NethServer 7 Final

Anyway, i think it has to do with a Vlan and multiwans i have currently in this server.

I have a vlan tag 20. and two wans. On the original server if i delete the vlan internet stops to work, its very wierd! :stuck_out_tongue:

So, my goal is to restore backup, with at least nsdc, the rest i can do it again easy!

Another thing i noticed is that i cant create a bridge network, when i select bridge it just changes my IP
If i try to create a Bridge with my a.d. last IP it says my IP is already beeing used.

Some Infos:

nethserver-yum-1.4.1-1.ns7.noarch
nethserver-netdata-2.0.2-1.ns7.noarch
nethserver-mail-smarthost-2.32.0-1.ns7.noarch
nethserver-ntp-1.1.3-1.ns7.noarch
nethserver-lang-cockpit-1.4.6-22.ns7.noarch
nethserver-php-1.3.0-1.ns7.noarch
nethserver-dnsmasq-1.7.2-1.ns7.noarch
nethserver-lsm-1.2.4-1.ns7.noarch
nethserver-openssh-1.8.0-1.ns7.noarch
nethserver-stephdl-1.1.9-1.ns7.sdl.noarch
nethserver-release-7-19.ns7.noarch
nethserver-collectd-3.1.1-1.ns7.noarch
nethserver-hosts-1.2.2-1.ns7.noarch
nethserver-duc-1.7.0-1.ns7.noarch
nethserver-nethforge-release-7-3.ns7.noarch
nethserver-mrmarkuz-0.0.1-6.ns7.noarch
nethserver-backup-config-2.5.2-1.ns7.noarch
nethserver-backup-data-1.7.6-1.ns7.noarch
nethserver-subscription-inventory-3.6.8-1.ns7.x86_64
nethserver-cockpit-1.10.10-1.ns7.noarch
nethserver-firewall-base-3.18.3-1.ns7.noarch
nethserver-cockpit-lib-1.10.10-1.ns7.noarch
nethserver-lib-2.2.11-1.ns7.noarch
nethserver-phonehome-1.4.0-1.ns7.noarch
nethserver-subscription-3.6.8-1.ns7.noarch
nethserver-httpd-3.12.2-1.ns7.noarch
nethserver-base-3.9.0-1.ns7.noarch
nethserver-sssd-1.7.1-1.ns7.noarch
nethserver-subscription-ui-3.6.8-1.ns7.noarch
nethserver-diagtools-1.0.4-1.ns7.noarch
nethserver-smartd-1.1.0-1.ns7.noarch

[root@srv1 ~]# db networks show
br0=bridge
bootproto=none
gateway=
ipaddr=172.16.100.254
netmask=255.255.255.0
nslabel=
role=green
eno1=ethernet
role=
enp1s0=ethernet
bootproto=none
gateway=192.168.15.1
ipaddr=192.168.15.3
netmask=255.255.255.0
nslabel=
role=red
enp1s0.20=vlan
bootproto=none
gateway=
ipaddr=10.1.10.254
netmask=255.255.255.0
nslabel=
role=blue
enp2s0=ethernet
bridge=br0
role=bridged
ppp0=xdsl-disabled
AuthType=auto
FwInBandwidth=
FwOutBandwidth=
Password=
name=PPPoE
provider=xDSL provider
role=red
user=
red1=provider
interface=enp1s0
weight=1

[root@srv1 ~]# config show sssd
sssd=service
AdDns=172.16.100.1
BindDN=ldapservice@AD.UNIPETROSRP.LOCAL
BindPassword=27186MDNXECgb_QY
DiscoverDcType=ldapuri
LdapURI=ldaps://nsdc-srv1.ad.unipetrosrp.local
Provider=ad
Realm=AD.UNIPETROSRP.LOCAL
ShellOverrideStatus=enabled
Workgroup=UNIPETROSRP
status=enabled

[root@srv1 ~]# config show nsdc
nsdc=service
IpAddress=172.16.100.1
ProvisionType=newdomain
bridge=br0
status=enabled

[root@srv1 ~]# /usr/libexec/nethserver/list-users
(Argumento inválido): IO::Socket::INET6: getaddrinfo: Nome ou serviço desconhecido

[root@srv1 ~]# signal-event nethserver-dc-change-ip 172.16.100.2
Can’t open directory /etc/e-smith/events/nethserver-dc-change-ip

lol, just noticed nethserver-dc is not installed.

After installing nethserver-dc i restored my backup and now its working. Kinda confused, i thought the restore would do that…

Anyway, now i have to install all stuff back to the server :slight_smile:

Still wierd Shorewall only works when i have vlan20 configured.

Btw, whoever encounters this topic let me enlighten you, maybe i can help too, first of all i did read a lot what people said here(other topics), and of course i did read this: Disaster recovery — NethServer 7 Final

Made configs backup and data backup.

1 - Fresh installed NethServer
2 - Update Software Center.
3 - Installed Steph and mmarkuz Repos.
4 - Reboot.
5 - Restored Configs (Did not mark re-install packages, only network)
6 - Made networks look exactly like before, in my case (2 Reds, 1 Green, 1 Vlan)
7 - yum install nethserver-dc (this can take a lot, be patient)
8 - Reboot.
9 - If Bridge (DC IP) didnt work, create it manually. (Networks Tab → Add logical interface). - In My case all was good.
10 - Then my DC IP was workin ok, but SSSD was not, i did again restore config, and voila… all users there.
11 - Reconfigured all my NICS (red, green and blue)
12 - Re-installed all packages from Software Center you had.
13 - Reboot. (Yup, i was pretty paranoid lol).
14 - Use Restore data to recover all your data! :slight_smile:

PS: Install one package per time, its better. Each package takes time… i dont know why, but it takes much more than when fresh installing. I guess its installing while re-configuring.

That did the trick… i rehearsed it several times in a test enviroment, i tried to install packages before config backup, i tried to restore with option re-install packages marked… believe me, i did a lot of try outs! :slight_smile:

In conclusion, listen to @Andy_Wismer and use proxmox! :laughing: :sob:

3 Likes