CentOS 7 è tra noi ...

upgrade CentOS 6.5 a CentOS 7Da ormai qualche tempo è disponibile CentOS 7 e per chi, come me, lo utilizza ambito server, questa versione porta tra altre la "grande novità" dell'aggiornamento "in place" di una installazione, rendendo così possibile il passaggio dalla 6.5 alla 7 senza la completa reinstallazione ed i mal di testa che ne conseguivano.

Ecco come procedere (a vostro rischio e pericolo).

1- Installare i tools necessari per eseguire l'upgrade da CentOS 6.5 a CentOS 7

Sebbene le note di rilascio indichino la possibilità di eseguire un upgrade diretto, in realtà i pacchetti necessari devono essere al momento scaricati ed installati manualmente.

Attenzione; questa procedura funziona SOLO dalla versione 6.5 alla versione 7

Premesso che è necessario eseguire la procedura di aggiornamento SOLO su di un sistema CentOS 6.5 nel quale si siano eseguiti tutti gli aggiornamenti , ecco la procedura completa da eseguire da root

yum upgrade -y

mkdir /root/upgrade
cd /root/upgrade
wget  http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-1.0.2-33.0.3.el6.centos.x86_64.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-contents-0.5.13-1.0.5.el6.centos.noarch.rpm http://dev.centos.org/centos/6/upg/x86_64/Packages/preupgrade-assistant-ui-1.0.2-33.0.3.el6.centos.x86_64.rpm  http://dev.centos.org/centos/6/upg/x86_64/Packages/redhat-upgrade-tool-0.7.22-3.el6.centos.noarch.rpm

A questo punto possiamo installare i pacchetti che abbiamo scaricato ed iniziare la vera procedura di upgrade

yum localinstall *.rpm

2- Lanciare Preupg

Sebbene per chi viene da Fedora il comando preupg ricordi preupgrade, la sua funzione din CentOS è abbastanza diverso.

Preupg è infatti un tool di mera diagnostica che serve ad evidenziare gli eventuali problemi presenti sulla macchina.

I problemi saranno solo visualizzati ed in nessun caso saranno corretti od il sistema sarà modificato.

L'output di preupg è qualcosa di simiile:

[root@argo upgrade]# preupg
Preupg tool doesn't do the actual upgrade.
Please ensure you have backed up your system and/or data in the event of a failed upgrade
 that would require a full re-install of the system from installation media.
Do you want to continue? y/n
y
Gathering logs used by preupgrade assistant:
All installed packages : 01/11 ...finished (time 00:00s)
All changed files      : 02/11 ...finished (time 06:14s)
Changed config files   : 03/11 ...finished (time 00:00s)
All users              : 04/11 ...finished (time 00:00s)
All groups             : 05/11 ...finished (time 00:00s)
Service statuses       : 06/11 ...finished (time 00:00s)
All installed files    : 07/11 ...finished (time 00:01s)
All local files        : 08/11 ...finished (time 00:14s)
All executable files   : 09/11 ...finished (time 00:27s)
RedHat signed packages : 10/11 ...finished (time 00:00s)
CentOS signed packages : 11/11 ...finished (time 00:00s)
Assessment of the system, running checks / SCE scripts:
001/095 ...done    (Configuration Files to Review)
002/095 ...done    (File Lists for Manual Migration)
003/095 ...done    (Bacula Backup Software)
004/095 ...done    (MySQL configuration)
005/095 ...done    (Migration of the MySQL data stack)
006/095 ...done    (General changes in default MySQL implementation)
007/095 ...done    (PostgreSQL upgrade content)
008/095 ...done    (GNOME Desktop Environment underwent several design modifications in CentOS 7 release)
009/095 ...done    (KDE Desktop Environment underwent several design modifications in CentOS 7 release)
010/095 ...done    (several graphic drivers not supported in CentOS 7)
011/095 ...done    (several input drivers not supported in CentOS 7)
012/095 ...done    (several kernel networking drivers not available in CentOS 7)
013/095 ...done    (several kernel storage drivers not available in CentOS 7)
014/095 ...done    (Names, Options and Output Format Changes in arptables)
015/095 ...done    (BIND9 running in a chroot environment check.)
016/095 ...done    (BIND9 configuration compatibility check)
017/095 ...done    (Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files)
018/095 ...done    (DNSMASQ configuration compatibility check)
019/095 ...done    (Dovecot configuration compatibility check)
020/095 ...done    (Compatibility Between iptables and ip6tables)
021/095 ...done    (Net-SNMP check)
022/095 ...done    (Squid configuration compatibility check)
023/095 ...done    (Reusable Configuration Files)
024/095 ...done    (VCS repositories)
025/095 ...done    (Added and extended options for BIND9 configuration)
026/095 ...done    (Added options in DNSMASQ configuration)
027/095 ...done    (Packages not signed by CentOS)
028/095 ...done    (Obsoleted rpms)
029/095 ...done    (w3m not available in CentOS 7)
030/095 ...done    (report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package)
031/095 ...done    (Removed options in coreutils binaries)
032/095 ...done    (Removed options in gawk binaries)
033/095 ...done    (Removed options in netstat binary)
034/095 ...done    (Removed options in quota tools)
035/095 ...done    (Removed rpms)
036/095 ...done    (Replaced rpms)
037/095 ...done    (GMP library incompatibilities)
038/095 ...done    (package downgrades)
039/095 ...done    (restore custom selinux configuration)
040/095 ...done    (General)
041/095 ...done    (samba shared directories selinux)
042/095 ...done    (CUPS Browsing/BrowsePoll configuration)
043/095 ...done    (CVS Package Split)
044/095 ...done    (FreeRADIUS Upgrade Verification)
045/095 ...done    (httpd configuration compatibility check)
046/095 ...done    (bind-dyndb-ldap)
047/095 ...done    (Identity Management Server compatibility check)
048/095 ...done    (IPA Server CA Verification)
049/095 ...done    (NTP configuration)
050/095 ...done    (Information on time-sync.target)
051/095 ...done    (OpenLDAP /etc/sysconfig and data compatibility)
052/095 ...done    (OpenSSH sshd_config migration content)
053/095 ...done    (OpenSSH sysconfig migration content)
054/095 ...done    (Configuration for quota_nld service)
055/095 ...done    (Disk quota netlink message daemon moved into quota-nld package)
056/095 ...done    (SSSD compatibility check)
057/095 ...done    (Luks encrypted partition)
058/095 ...done    (Clvmd and cmirrord daemon management.)
059/095 ...done    (State of LVM2 services.)
060/095 ...done    (device-mapper-multipath configuration compatibility check)
061/095 ...done    (Removal of scsi-target-utils)
062/095 ...done    (Configuration for warnquota tool)
063/095 ...done    (Disk quota tool warnquota moved into quota-warnquota package)
064/095 ...done    (Architecture Support)
065/095 ...done    (Binary rebuilds)
066/095 ...done    (Debuginfo packages)
067/095 ...done    (Cluster and High Availablility)
068/095 ...done    (fix krb5kdc config file)
069/095 ...done    (File Systems, Partitions and Mounts Configuration Review)
070/095 ...done    (Read Only FHS directories)
071/095 ...done    (Sonamebumped libs)
072/095 ...done    (SonameKept Reusable Dynamic Libraries)
073/095 ...done    (Removed .so libs)
074/095 ...done    (In-place Upgrade Requirements for the /usr/ Directory)
075/095 ...done    (CA certificate bundles modified)
076/095 ...done    (Developer Tool Set packages)
077/095 ...done    (Hyper-V)
078/095 ...done    (Content for enabling and disabling services based on CentOS 6 system)
079/095 ...done    (Check for ethernet interface naming)
080/095 ...done    (User modification in /etc/rc.local and /etc/rc.d/rc.local)
081/095 ...done    (cgroups configuration compatibility check)
082/095 ...done    (Plugable authentication modules (PAM))
083/095 ...done    (Foreign Perl modules)
084/095 ...done    (Python 2.7.5)
085/095 ...done    (Ruby 2.0.0)
086/095 ...done    (SCL collections)
087/095 ...done    (System kickstart)
088/095 ...done    (YUM)
089/095 ...done    (Check for usage of dangerous range of UID/GIDs)
090/095 ...done    (Incorrect usage of reserved UID/GIDs)
091/095 ...done    (NIS ypbind config files back-up)
092/095 ...done    (NIS Makefile back-up)
093/095 ...done    (NIS server maps check)
094/095 ...done    (NIS server MAXUID and MAXGID limits check)
095/095 ...done    (NIS server config file back-up)
Assessment finished (time 00:00s)
Result table with checks and their results for main contents:
------------------------------------------------------------------------------------------------------------
|Configuration Files to Review                                                             |notapplicable  |
|File Lists for Manual Migration                                                           |notapplicable  |
|Bacula Backup Software                                                                    |notapplicable  |
|MySQL configuration                                                                       |notapplicable  |
|Migration of the MySQL data stack                                                         |notapplicable  |
|General changes in default MySQL implementation                                           |notapplicable  |
|PostgreSQL upgrade content                                                                |notapplicable  |
|GNOME Desktop Environment underwent several design modifications in CentOS 7 release      |notapplicable  |
|KDE Desktop Environment underwent several design modifications in CentOS 7 release        |notapplicable  |
|several graphic drivers not supported in CentOS 7                                         |notapplicable  |
|several input drivers not supported in CentOS 7                                           |notapplicable  |
|several kernel networking drivers not available in CentOS 7                               |notapplicable  |
|several kernel storage drivers not available in CentOS 7                                  |notapplicable  |
|Names, Options and Output Format Changes in arptables                                     |notapplicable  |
|BIND9 running in a chroot environment check.                                              |notapplicable  |
|BIND9 configuration compatibility check                                                   |notapplicable  |
|Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files                   |notapplicable  |
|DNSMASQ configuration compatibility check                                                 |notapplicable  |
|Dovecot configuration compatibility check                                                 |notapplicable  |
|Compatibility Between iptables and ip6tables                                              |notapplicable  |
|Net-SNMP check                                                                            |notapplicable  |
|Squid configuration compatibility check                                  [root@argo upgrade]# preupg
Preupg tool doesn't do the actual upgrade.
Please ensure you have backed up your system and/or data in the event of a failed upgrade
 that would require a full re-install of the system from installation media.
Do you want to continue? y/n
y
Gathering logs used by preupgrade assistant:
All installed packages : 01/11 ...finished (time 00:00s)
All changed files      : 02/11 ...finished (time 06:14s)
Changed config files   : 03/11 ...finished (time 00:00s)
All users              : 04/11 ...finished (time 00:00s)
All groups             : 05/11 ...finished (time 00:00s)
Service statuses       : 06/11 ...finished (time 00:00s)
All installed files    : 07/11 ...finished (time 00:01s)
All local files        : 08/11 ...finished (time 00:14s)
All executable files   : 09/11 ...finished (time 00:27s)
RedHat signed packages : 10/11 ...finished (time 00:00s)
CentOS signed packages : 11/11 ...finished (time 00:00s)
Assessment of the system, running checks / SCE scripts:
001/095 ...done    (Configuration Files to Review)
002/095 ...done    (File Lists for Manual Migration)
003/095 ...done    (Bacula Backup Software)
004/095 ...done    (MySQL configuration)
005/095 ...done    (Migration of the MySQL data stack)
006/095 ...done    (General changes in default MySQL implementation)
007/095 ...done    (PostgreSQL upgrade content)
008/095 ...done    (GNOME Desktop Environment underwent several design modifications in CentOS 7 release)
009/095 ...done    (KDE Desktop Environment underwent several design modifications in CentOS 7 release)
010/095 ...done    (several graphic drivers not supported in CentOS 7)
011/095 ...done    (several input drivers not supported in CentOS 7)
012/095 ...done    (several kernel networking drivers not available in CentOS 7)
013/095 ...done    (several kernel storage drivers not available in CentOS 7)
014/095 ...done    (Names, Options and Output Format Changes in arptables)
015/095 ...done    (BIND9 running in a chroot environment check.)
016/095 ...done    (BIND9 configuration compatibility check)
017/095 ...done    (Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files)
018/095 ...done    (DNSMASQ configuration compatibility check)
019/095 ...done    (Dovecot configuration compatibility check)
020/095 ...done    (Compatibility Between iptables and ip6tables)
021/095 ...done    (Net-SNMP check)
022/095 ...done    (Squid configuration compatibility check)
023/095 ...done    (Reusable Configuration Files)
024/095 ...done    (VCS repositories)
025/095 ...done    (Added and extended options for BIND9 configuration)
026/095 ...done    (Added options in DNSMASQ configuration)
027/095 ...done    (Packages not signed by CentOS)
028/095 ...done    (Obsoleted rpms)
029/095 ...done    (w3m not available in CentOS 7)
030/095 ...done    (report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package)
031/095 ...done    (Removed options in coreutils binaries)
032/095 ...done    (Removed options in gawk binaries)
033/095 ...done    (Removed options in netstat binary)
034/095 ...done    (Removed options in quota tools)
035/095 ...done    (Removed rpms)
036/095 ...done    (Replaced rpms)
037/095 ...done    (GMP library incompatibilities)
038/095 ...done    (package downgrades)
039/095 ...done    (restore custom selinux configuration)
040/095 ...done    (General)
041/095 ...done    (samba shared directories selinux)
042/095 ...done    (CUPS Browsing/BrowsePoll configuration)
043/095 ...done    (CVS Package Split)
044/095 ...done    (FreeRADIUS Upgrade Verification)
045/095 ...done    (httpd configuration compatibility check)
046/095 ...done    (bind-dyndb-ldap)
047/095 ...done    (Identity Management Server compatibility check)
048/095 ...done    (IPA Server CA Verification)
049/095 ...done    (NTP configuration)
050/095 ...done    (Information on time-sync.target)
051/095 ...done    (OpenLDAP /etc/sysconfig and data compatibility)
052/095 ...done    (OpenSSH sshd_config migration content)
053/095 ...done    (OpenSSH sysconfig migration content)
054/095 ...done    (Configuration for quota_nld service)
055/095 ...done    (Disk quota netlink message daemon moved into quota-nld package)
056/095 ...done    (SSSD compatibility check)
057/095 ...done    (Luks encrypted partition)
058/095 ...done    (Clvmd and cmirrord daemon management.)
059/095 ...done    (State of LVM2 services.)
060/095 ...done    (device-mapper-multipath configuration compatibility check)
061/095 ...done    (Removal of scsi-target-utils)
062/095 ...done    (Configuration for warnquota tool)
063/095 ...done    (Disk quota tool warnquota moved into quota-warnquota package)
064/095 ...done    (Architecture Support)
065/095 ...done    (Binary rebuilds)
066/095 ...done    (Debuginfo packages)
067/095 ...done    (Cluster and High Availablility)
068/095 ...done    (fix krb5kdc config file)
069/095 ...done    (File Systems, Partitions and Mounts Configuration Review)
070/095 ...done    (Read Only FHS directories)
071/095 ...done    (Sonamebumped libs)
072/095 ...done    (SonameKept Reusable Dynamic Libraries)
073/095 ...done    (Removed .so libs)
074/095 ...done    (In-place Upgrade Requirements for the /usr/ Directory)
075/095 ...done    (CA certificate bundles modified)
076/095 ...done    (Developer Tool Set packages)
077/095 ...done    (Hyper-V)
078/095 ...done    (Content for enabling and disabling services based on CentOS 6 system)
079/095 ...done    (Check for ethernet interface naming)
080/095 ...done    (User modification in /etc/rc.local and /etc/rc.d/rc.local)
081/095 ...done    (cgroups configuration compatibility check)
082/095 ...done    (Plugable authentication modules (PAM))
083/095 ...done    (Foreign Perl modules)
084/095 ...done    (Python 2.7.5)
085/095 ...done    (Ruby 2.0.0)
086/095 ...done    (SCL collections)
087/095 ...done    (System kickstart)
088/095 ...done    (YUM)
089/095 ...done    (Check for usage of dangerous range of UID/GIDs)
090/095 ...done    (Incorrect usage of reserved UID/GIDs)
091/095 ...done    (NIS ypbind config files back-up)
092/095 ...done    (NIS Makefile back-up)
093/095 ...done    (NIS server maps check)
094/095 ...done    (NIS server MAXUID and MAXGID limits check)
095/095 ...done    (NIS server config file back-up)
Assessment finished (time 00:00s)
Result table with checks and their results for main contents:
------------------------------------------------------------------------------------------------------------
|Configuration Files to Review                                                             |notapplicable  |
|File Lists for Manual Migration                                                           |notapplicable  |
|Bacula Backup Software                                                                    |notapplicable  |
|MySQL configuration                                                                       |notapplicable  |
|Migration of the MySQL data stack                                                         |notapplicable  |
|General changes in default MySQL implementation                                           |notapplicable  |
|PostgreSQL upgrade content                                                                |notapplicable  |
|GNOME Desktop Environment underwent several design modifications in CentOS 7 release      |notapplicable  |
|KDE Desktop Environment underwent several design modifications in CentOS 7 release        |notapplicable  |
|several graphic drivers not supported in CentOS 7                                         |notapplicable  |
|several input drivers not supported in CentOS 7                                           |notapplicable  |
|several kernel networking drivers not available in CentOS 7                               |notapplicable  |
|several kernel storage drivers not available in CentOS 7                                  |notapplicable  |
|Names, Options and Output Format Changes in arptables                                     |notapplicable  |
|BIND9 running in a chroot environment check.                                              |notapplicable  |
|BIND9 configuration compatibility check                                                   |notapplicable  |
|Move dhcpd/dhcprelay arguments from /etc/sysconfig/* to *.service files                   |notapplicable  |
|DNSMASQ configuration compatibility check                                                 |notapplicable  |
|Dovecot configuration compatibility check                                                 |notapplicable  |
|Compatibility Between iptables and ip6tables                                              |notapplicable  |
|Net-SNMP check                                                                            |notapplicable  |
|Squid configuration compatibility check                                                   |notapplicable  |
|Reusable Configuration Files                                                              |notapplicable  |
|VCS repositories                                                                          |notapplicable  |
|Added and extended options for BIND9 configuration                                        |notapplicable  |
|Added options in DNSMASQ configuration                                                    |notapplicable  |
|Packages not signed by CentOS                                                             |notapplicable  |
|Obsoleted rpms                                                                            |notapplicable  |
|w3m not available in CentOS 7                                                             |notapplicable  |
|report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package               |notapplicable  |
|Removed options in coreutils binaries                                                     |notapplicable  |
|Removed options in gawk binaries                                                          |notapplicable  |
|Removed options in netstat binary                                                         |notapplicable  |
|Removed options in quota tools                                                            |notapplicable  |
|Removed rpms                                                                              |notapplicable  |
|Replaced rpms                                                                             |notapplicable  |
|GMP library incompatibilities                                                             |notapplicable  |
|package downgrades                                                                        |notapplicable  |
|restore custom selinux configuration                                                      |notapplicable  |
|General                                                                                   |notapplicable  |
|samba shared directories selinux                                                          |notapplicable  |
|CUPS Browsing/BrowsePoll configuration                                                    |notapplicable  |
|CVS Package Split                                                                         |notapplicable  |
|FreeRADIUS Upgrade Verification                                                           |notapplicable  |
|httpd configuration compatibility check                                                   |notapplicable  |
|bind-dyndb-ldap                                                                           |notapplicable  |
|Identity Management Server compatibility check                                            |notapplicable  |
|IPA Server CA Verification                                                                |notapplicable  |
|NTP configuration                                                                         |notapplicable  |
|Information on time-sync.target                                                           |notapplicable  |
|OpenLDAP /etc/sysconfig and data compatibility                                            |notapplicable  |
|OpenSSH sshd_config migration content                                                     |notapplicable  |
|OpenSSH sysconfig migration content                                                       |notapplicable  |
|Configuration for quota_nld service                                                       |notapplicable  |
|Disk quota netlink message daemon moved into quota-nld package                            |notapplicable  |
|SSSD compatibility check                                                                  |notapplicable  |
|Luks encrypted partition                                                                  |notapplicable  |
|Clvmd and cmirrord daemon management.                                                     |notapplicable  |
|State of LVM2 services.                                                                   |notapplicable  |
|device-mapper-multipath configuration compatibility check                                 |notapplicable  |
|Removal of scsi-target-utils                                                              |notapplicable  |
|Configuration for warnquota tool                                                          |notapplicable  |
|Disk quota tool warnquota moved into quota-warnquota package                              |notapplicable  |
|Architecture Support                                                                      |notapplicable  |
|Binary rebuilds                                                                           |notapplicable  |
|Debuginfo packages                                                                        |notapplicable  |
|Cluster and High Availablility                                                            |notapplicable  |
|fix krb5kdc config file                                                                   |notapplicable  |
|File Systems, Partitions and Mounts Configuration Review                                  |notapplicable  |
|Read Only FHS directories                                                                 |notapplicable  |
|Sonamebumped libs                                                                         |notapplicable  |
|SonameKept Reusable Dynamic Libraries                                                     |notapplicable  |
|Removed .so libs                                                                          |notapplicable  |
|In-place Upgrade Requirements for the /usr/ Directory                                     |notapplicable  |
|CA certificate bundles modified                                                           |notapplicable  |
|Developer Tool Set packages                                                               |notapplicable  |
|Hyper-V                                                                                   |notapplicable  |
|Content for enabling and disabling services based on CentOS 6 system                      |notapplicable  |
|Check for ethernet interface naming                                                       |notapplicable  |
|User modification in /etc/rc.local and /etc/rc.d/rc.local                                 |notapplicable  |
|cgroups configuration compatibility check                                                 |notapplicable  |
|Plugable authentication modules (PAM)                                                     |notapplicable  |
|Foreign Perl modules                                                                      |notapplicable  |
|Python 2.7.5                                                                              |notapplicable  |
|Ruby 2.0.0                                                                                |notapplicable  |
|SCL collections                                                                           |notapplicable  |
|System kickstart                                                                          |notapplicable  |
|YUM                                                                                       |notapplicable  |
|Check for usage of dangerous range of UID/GIDs                                            |notapplicable  |
|Incorrect usage of reserved UID/GIDs                                                      |notapplicable  |
|NIS ypbind config files back-up                                                           |notapplicable  |
|NIS Makefile back-up                                                                      |notapplicable  |
|NIS server maps check                                                                     |notapplicable  |
|NIS server MAXUID and MAXGID limits check                                                 |notapplicable  |
|NIS server config file back-up                                                            |notapplicable  |
------------------------------------------------------------------------------------------------------------
Tarball with results is stored here /root/preupgrade-results/preupg_results-140814145425.tar.gz .
The latest assessment is stored in directory /root/preupgrade .
Upload results to UI by command:
e.g. preupg -u http://127.0.0.1:8099/submit/ -r /root/preupgrade-results/preupg_results-*.tar.gz .                 |notapplicable  |
|Reusable Configuration Files                                                              |notapplicable  |
|VCS repositories                                                                          |notapplicable  |
|Added and extended options for BIND9 configuration                                        |notapplicable  |
|Added options in DNSMASQ configuration                                                    |notapplicable  |
|Packages not signed by CentOS                                                             |notapplicable  |
|Obsoleted rpms                                                                            |notapplicable  |
|w3m not available in CentOS 7                                                             |notapplicable  |
|report incompatibilities between CentOS 6 and 7 in qemu-guest-agent package               |notapplicable  |
|Removed options in coreutils binaries                                                     |notapplicable  |
|Removed options in gawk binaries                                                          |notapplicable  |
|Removed options in netstat binary                                                         |notapplicable  |
|Removed options in quota tools                                                            |notapplicable  |
|Removed rpms                                                                              |notapplicable  |
|Replaced rpms                                                                             |notapplicable  |
|GMP library incompatibilities                                                             |notapplicable  |
|package downgrades                                                                        |notapplicable  |
|restore custom selinux configuration                                                      |notapplicable  |
|General                                                                                   |notapplicable  |
|samba shared directories selinux                                                          |notapplicable  |
|CUPS Browsing/BrowsePoll configuration                                                    |notapplicable  |
|CVS Package Split                                                                         |notapplicable  |
|FreeRADIUS Upgrade Verification                                                           |notapplicable  |
|httpd configuration compatibility check                                                   |notapplicable  |
|bind-dyndb-ldap                                                                           |notapplicable  |
|Identity Management Server compatibility check                                            |notapplicable  |
|IPA Server CA Verification                                                                |notapplicable  |
|NTP configuration                                                                         |notapplicable  |
|Information on time-sync.target                                                           |notapplicable  |
|OpenLDAP /etc/sysconfig and data compatibility                                            |notapplicable  |
|OpenSSH sshd_config migration content                                                     |notapplicable  |
|OpenSSH sysconfig migration content                                                       |notapplicable  |
|Configuration for quota_nld service                                                       |notapplicable  |
|Disk quota netlink message daemon moved into quota-nld package                            |notapplicable  |
|SSSD compatibility check                                                                  |notapplicable  |
|Luks encrypted partition                                                                  |notapplicable  |
|Clvmd and cmirrord daemon management.                                                     |notapplicable  |
|State of LVM2 services.                                                                   |notapplicable  |
|device-mapper-multipath configuration compatibility check                                 |notapplicable  |
|Removal of scsi-target-utils                                                              |notapplicable  |
|Configuration for warnquota tool                                                          |notapplicable  |
|Disk quota tool warnquota moved into quota-warnquota package                              |notapplicable  |
|Architecture Support                                                                      |notapplicable  |
|Binary rebuilds                                                                           |notapplicable  |
|Debuginfo packages                                                                        |notapplicable  |
|Cluster and High Availablility                                                            |notapplicable  |
|fix krb5kdc config file                                                                   |notapplicable  |
|File Systems, Partitions and Mounts Configuration Review                                  |notapplicable  |
|Read Only FHS directories                                                                 |notapplicable  |
|Sonamebumped libs                                                                         |notapplicable  |
|SonameKept Reusable Dynamic Libraries                                                     |notapplicable  |
|Removed .so libs                                                                          |notapplicable  |
|In-place Upgrade Requirements for the /usr/ Directory                                     |notapplicable  |
|CA certificate bundles modified                                                           |notapplicable  |
|Developer Tool Set packages                                                               |notapplicable  |
|Hyper-V                                                                                   |notapplicable  |
|Content for enabling and disabling services based on CentOS 6 system                      |notapplicable  |
|Check for ethernet interface naming                                                       |notapplicable  |
|User modification in /etc/rc.local and /etc/rc.d/rc.local                                 |notapplicable  |
|cgroups configuration compatibility check                                                 |notapplicable  |
|Plugable authentication modules (PAM)                                                     |notapplicable  |
|Foreign Perl modules                                                                      |notapplicable  |
|Python 2.7.5                                                                              |notapplicable  |
|Ruby 2.0.0                                                                                |notapplicable  |
|SCL collections                                                                           |notapplicable  |
|System kickstart                                                                          |notapplicable  |
|YUM                                                                                       |notapplicable  |
|Check for usage of dangerous range of UID/GIDs                                            |notapplicable  |
|Incorrect usage of reserved UID/GIDs                                                      |notapplicable  |
|NIS ypbind config files back-up                                                           |notapplicable  |
|NIS Makefile back-up                                                                      |notapplicable  |
|NIS server maps check                                                                     |notapplicable  |
|NIS server MAXUID and MAXGID limits check                                                 |notapplicable  |
|NIS server config file back-up                                                            |notapplicable  |
------------------------------------------------------------------------------------------------------------
Tarball with results is stored here /root/preupgrade-results/preupg_results-140814145425.tar.gz .
The latest assessment is stored in directory /root/preupgrade .
Upload results to UI by command:
e.g. preupg -u http://127.0.0.1:8099/submit/ -r /root/preupgrade-results/preupg_results-*.tar.gz .

A questo punto dato che non si sono evidenziati problemi particolari possiamo procedere ad eseguire l'upgrade vero e proprio

3- Importare la chiave di CentOS 7

Naturalmente i pacchetti di CentOS 7 saranno firmati dalla relativa firma digitale che deve essere importata prima di procedere all'aggiornamento, con il seguente comando:

rpm --import http://ftp.plusline.de/centos/7/os/x86_64/RPM-GPG-KEY-CentOS-7

Ora abbiamo tutto l'occorrente per eseguire l'aggiornamento vero e proprio

4 - Eseguire l'aggiornamento: redhat-upgrade-tool

Per chi conosce Fedora possiamo dire che il pacchetto redhat-upgrade-tool è un parente stretto del "collega" fedup.

Questo tool , una volta lanciato,si occupa di scaricare la boot image necessaria per l'upgrade  e tutti i pacchetti di aggiornamento necessari.

redhat-upgrade-tool --network 7.0 --instrepo http://ftp.plusline.de/centos/7.0.1406/os/x86_64/

nel caso in cui si "lamentasse" che non è stato lanciato precedentemente l'upgrade-assistant, basta forzare il comando con

redhat-upgrade-tool --network 7.0 --instrepo http://ftp.plusline.de/centos/7.0.1406/os/x86_64/ --force

Avrà così inizio il download dei pacchetti necessari ed al termine si avrà un messaggio come questo:

...
(912/914): zip-3.0-10.el7.x86_64.rpm                                                                   | 260 kB     00:00     
(913/914): zlib-1.2.7-13.el7.x86_64.rpm                                                                |  89 kB     00:00     
(914/914): zlib-devel-1.2.7-13.el7.x86_64.rpm                                                          |  49 kB     00:00     
testing upgrade transaction
rpm transaction 100% [=======================================================================================================]
rpm install 100% [===========================================================================================================]
setting up system for upgrade
Finished. Reboot to start upgrade.

Siamo quindi pronti per il salto: al prossimo riavvio il sistema proverà ad eseguire l'aggiornamento alla versione 7 di CentOS

5- Riavvio ed installazione dell'upgrade

Se tutto è andato per il meglio al termine della procedura di installazione dei pacchetti il sistema si riavvierà consegnandoci un ambiente CentOS 7.

Ora ci possiamo "dilettare" con gli aggiustamenti necessari per rendere operativo il server con il nuovo OS.

La prima cosa da fare è ripristinare i corretti servizi da avviare al boot della macchina, dato che nel passaggio da SystemV a Systemd la logica di avvio dei servizi è totalmente diversa.

Per abilitare un servizio (nell'esempio il server apache) in Systemd occorre un comando del tipo:

systemctl enable http.service

Fatto questo ci possiamo concentrare sui numerosi servizi non funzionanti e sugli aggiornamenti dei repo alternativi

5 - EPEL: fissare il repo

Ovviamente il tool si occupa unicamente di sistemare i pacchetti del core di CentOS 7.

Se abbiamo installato il "classico" repo EPEL, ci troveremo con un sacco di cosa che non funzionano correttamente a causa di pacchetti di CentOS 6.5

Occorre quindi aggiornare EPEL installando la chiave per la versione 7 di CentOS (che al momento epel identifica come in beta)

 wget http://dl.fedoraproject.org/pub/epel/beta/7/x86_64/epel-release-7-0.2.noarch.rpm # rpm -ivh epel-release-7-0.2.noarch.rpm
rpm -UIvh epel-release-7-0.2.noarch.rpm # rpm -ivh epel-release-7-0.2.noarch.rpm
yum upgrade -y --skip-broken

6 - PERL: gioie e dolori

Per installare pacchetti PERL eventualmente non disponibili occorre utilizzare cpan