The Upgrade tool module upgrades NethServer Enterprise from version 6 to version 7 with an automated procedure that acts in three steps:
Each step is described in the sections below. The time estimations depend on the number of packages, internet connection, CPU and disks speed.
Warning
Read carefully Upgrade risks and how to reduce them
Estimated time: 1 hour
The (1) preparation step can be started from the Upgrade tool page of the Server Manager.
If the File server module is present and the Samba server role is Primary Domain Controller or Workstation the system has to be configured with a local Active Directory accounts provider. See Upgrade to Active Directory.
The Upgrade tool does not work if the Samba server role is set to Active Directory Member.
During the preparation step the system is still operational as usual. The package download runs in background. It requires some time, depending on the available network bandwidth.
The available disk space is checked twice, before and after the preparation step, to ensure the next steps do not run in short of disk space.
At the end of the download the web page asks to abort the procedure or continue with the system reboot to the upgrade step.
Estimated time: 30 minutes
The (2) upgrade step starts at the next system reboot. The upgrade procedure boots the Linux kernel of version 7 by default. If the disk controller is not compatible with it, the procedure fails at this point.
Hint
It is possible to select the old kernel and boot the system in the previous state, actually aborting the upgrade
If the new kernel boots and mounts the disks correctly the system is disconnected from the network and the packages upgrade starts. From this point there is no way back. During the upgrade the system can be accessed from the system console.
It takes some time to upgrade all the packages, depending on the system speed and the number of the packages. At the end of the upgrade step the system is automatically rebooted.
Estimated time: 15 minutes
The (3) post-upgrade step starts at the second reboot.
The basic system was completely upgraded by the previous step; the post-upgrade step renames the network interfaces according to the new NIC naming rules and re-configures the installed modules.
In this last step a fault can be recovered safely through the system console. At the end of the post-upgrade step SSH, Server Manager and the other services are available again.
Any daily, weekly and monthly scheduled cron job will be started again within one hour since the system boot ends.
Warning
To ensure the upgrade procedure has finished run systemd-analyze
. The output
should begin like
Startup finished
To check if any error occurred, run
grep -B 5 -E '(ERROR|FAILED)' /var/log/messages
In Software center, check if the previously installed modules are still marked as installed on the upgraded system. Each module is composed by some packages: as the module compositions has changed from version 6 to 7, some module may appear as not installed. To fix it, try to install it again with the add button.
A Let’s Encrypt certificate, if present, must be requested again from the Server certificate page. Then set it as the default system certificate from the same page. For more information, refer to the “Server certificate” manual page of NethServer Enterprise 7.
If the system requires a local Active Directory (AD) accounts provider, the Upgrade tool expects some additional parameters to be issued:
If a green bridge interface is not present go to the Network page and create one with Create new logical interface.
The NetBIOS domain name is a read-only field. To change it, refer to the Windows Network page.
Warning
In virtualized systems, remember to enable promiscuous mode in the hypervisor settings, otherwise access to AD will be blocked from LAN clients
For more information refer also to the NethServer Enterprise 7 documentation, especially:
A major system version upgrade is a risky operation and must be planned carefully.
/root/templates-custom.upgrade/
. It is recommended to check the existing
customized templates before starting the upgrade procedure and decide if and
how to restore them