CentOS 6 to CentOS 7

Source: Internet
Author: User

Redhat provides a Redhat-upgrade-tool upgrade tool;

[1] Configuring the software source

# vim/etc/yum.repos.d/upgrade.repo[upgrade]name=upgradebaseurl=http://dev.centos.org/centos/6/upg/x86_64/enable =1gpgcheck=0

[2] Installing software tools

Yum-y Install preupgrade-assistant-contents Redhat-upgrade-tool preupgrade-assistant

[3] Check for potential issues before upgrading

# preupgpreupg tool doesn ' T do the actual upgrade. Please ensure you have backed up your system and/or data in  the event of a failed upgradethat would require a full  re-install of the system from installation media. Do you want to continue? y/nygathering logs used by preupgrade  assistant:All installed packages : 01/10 ...finished  (time 00:00s) all  changed files      : 02/10 ...finished  (time  00:40s) changed config files   : 03/10 ...finished  (time 00:00s) All users              : 04/10  ...finished  (time 00:00s) all groups             : 05/10 ...finished  (time  00:00s) service statuses       : 06/10 ...finished  (time  00:00s) all installed files    : 07/10 ...finished  (time  00:01s) all local files        : 08/10  finished  (time 00:03s) all executable files   : 09/10 ...finished   (time 00:00s) redhat signed packages : 10/10 ...finished  (time  00:00s) assessment of the system, running checks / sce scripts:001/100  ...done     (Configuration files to review) 002/100 ...done      (file lists for manual migration) 003/100 ...done      (BACULA BACKUP&NBSp Software) 004/100 ...done     (mysql configuration) 005/100 ...done      (Migration of the mysql data stack) 006/100 ...done      (general changes in default mysql implementation) 007/100 ...done      (postgresql upgrade content) assessment finished  (time 00:00s) Result table with checks and their results for main contents:---- --------------------------------------------------------------------------------------| 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-140716022514.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 .

[4] Start the upgrade

# RPM--import http://centos.excellmedia.net/7.2.1511/os/x86_64/RPM-GPG-KEY-CentOS-7

The normal operation of the above command can be upgraded to complete;

# redhat-upgrade-tool--network 7.0--instrepo http://centos.excellmedia.net/7.2.1511/os/x86_64/

This force is a little unfriendly, production environment with caution;

Update to this step:

setting up repos....treeinfo                                                                                                     | 1.1 kB      00:00getting boot images...vmlinuz-redhat-upgrade-tool                                                                                  | 4.7 MB      01:38initramfs-redhat-upgrade-tool.img                                                                            |  32 MB      14:45setting up update...finding updates 100% [================================ =====================================================================] (1/272):  acl-2.2.51-12.el7.x86_64. rpm                                                                       |  81 kB      00:00 (2/272): attr-2.4.46-12.el7.x86_64.rpm                                                                       |  66 kb     00:00 (3/272):  Audit-2.3.3-4.el7.x86_64.rpm                                                                       | 223 kB      00:01 (4/272): audit-libs-2.3.3-4.el7.x86_64.rpm                                                                   |  77 kb     00:00 (5/272):  authconfig-6.2.8-8.el7.x86_64.rpm                                                                  | 399 kb     00:08 (6/272):  basesystem-10.0-7.el7.centos.noarch.rpm                                                            | 5.0 kB      00:00 (7/272): bash-4.2.45-5.el7.x86_64.rpm                                                                       | 1.0  mb     00:17 (270/272):  yum-plugin-fastestmirror-1.1.31-24.el7.noarch.rpm                                                |  28 kB      00:03 (271/272): zlib-1.2.7-13.el7.x86_64.rpm                                                                     |  89  kb     00:06 (272/272): zlib-devel-1.2.7-13.el7.x86_64.rpm                                                                |  49 kB     00:01 setting up  System for upgradefinished. reboot to start upgrade.
# reboot

[5] Upgrade complete:

# cat/etc/redhat-release CentOS Linux release 7.0.1406 (Core)

This article is from the "Siberian Wolf" blog, please make sure to keep this source http://kernal.blog.51cto.com/8136890/1532150

CentOS 6 to CentOS 7

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.