CentOS6.5升级为CentOS7.0

CentOS6.5升级为CentOS7

升级前:

[root@localhost ~]# cat /proc/version 
Linux version 2.6.32-431.el6.x86_64 (mockbuild@c6b8.bsys.dev.centos.org) (gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC) ) #1 SMP Fri Nov 22 03:15:09 UTC 2013 
[root@localhost ~]# uname -a 
Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux 
[root@localhost ~]# uname -r 
2.6.32-431.el6.x86_64 
[root@localhost ~]# lsb_release -a 
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch 
Distributor ID: CentOS 
Description: CentOS release 6.5 (Final) 
Release: 6.5 
Codename: Final

[root@localhost ~]# df -lhT 
Filesystem Type Size Used Avail Use% Mounted on 
/dev/mapper/VolGroup-lv_root ext4 45G 32G 12G 73% / 
tmpfs tmpfs 3.9G 0 3.9G 0% /dev/shm 
/dev/sda1 ext4 485M 75M 385M 17% /boot

升级过程:

redhat提供了一个redhat-upgrade-tool的升级工具; 
[1]配置软件源 
# vim /etc/yum.repos.d/upgrade.repo 
[upgrade] 
name=upgrade 
baseurl=http://dev.centos.org/centos/6/upg/x86_64/ 
enable=1 
gpgcheck=0 
[2]安装软件工具 
# yum -y install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant 
[3]升级前检查潜在问题 
# 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 

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

[root@localhost ~]# preupg --riskcheck --verbose 
INPLACERISK: HIGH: We detected some non-CentOS signed packages, you can find the list in /root/preupgrade/./kickstart/noncentospkgs. You need to handle them yourself! 
INPLACERISK: HIGH: After upgrading to CentOS 7 there are still some el6 packages left. Add --cleanup-post option to redhat-upgrade-tool if you want to remove them automatically. 
INPLACERISK: HIGH: There were changes in SELinux policies between CentOS 6 and CentOS 7. Please, check solution in order to resolve this issue. 
INPLACERISK: HIGH: The service autofs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable autofs && systemctl start autofs.service . 
INPLACERISK: HIGH: The service blk-availability on CentOS 7 is disabled by default. Enable them via commands: systemctl enable blk-availability && systemctl start blk-availability.service . 
INPLACERISK: HIGH: The service certmonger on CentOS 7 is disabled by default. Enable them via commands: systemctl enable certmonger && systemctl start certmonger.service . 
INPLACERISK: HIGH: The service haldaemon on CentOS 7 is disabled by default. Enable them via commands: systemctl enable haldaemon && systemctl start haldaemon.service . 
INPLACERISK: HIGH: The service ip6tables on CentOS 7 is disabled by default. Enable them via commands: systemctl enable ip6tables && systemctl start ip6tables.service . 
INPLACERISK: HIGH: The service mcelogd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable mcelogd && systemctl start mcelogd.service . 
INPLACERISK: HIGH: The service messagebus on CentOS 7 is disabled by default. Enable them via commands: systemctl enable messagebus && systemctl start messagebus.service . 
INPLACERISK: HIGH: The service netfs on CentOS 7 is disabled by default. Enable them via commands: systemctl enable netfs && systemctl start netfs.service . 
INPLACERISK: HIGH: The service network on CentOS 7 is disabled by default. Enable them via commands: systemctl enable network && systemctl start network.service . 
INPLACERISK: HIGH: The service nfslock on CentOS 7 is disabled by default. Enable them via commands: systemctl enable nfslock && systemctl start nfslock.service . 
INPLACERISK: HIGH: The service portreserve on CentOS 7 is disabled by default. Enable them via commands: systemctl enable portreserve && systemctl start portreserve.service . 
INPLACERISK: HIGH: The service postfix on CentOS 7 is disabled by default. Enable them via commands: systemctl enable postfix && systemctl start postfix.service . 
INPLACERISK: HIGH: The service rpcgssd on CentOS 7 is disabled by default. Enable them via commands: systemctl enable rpcgssd && systemctl start rpcgssd.service . 
INPLACERISK: HIGH: The service udev-post on CentOS 7 is disabled by default. Enable them via commands: systemctl enable udev-post && systemctl start udev-post.service . 
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed (obsoleted) between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them. 
INPLACERISK: MEDIUM: We detected some packages installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of the packages depending on them. 
INPLACERISK: MEDIUM: Package coreutils-libs not provided by its replacement coreutils. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package libudev not provided by its replacement systemd-libs. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2400-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2200-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package redhat-lsb-graphics not provided by its replacement redhat-lsb-desktop. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package bfa-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package rt73usb-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql23xx-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2100-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package ql2500-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: Package rt61pci-firmware not provided by its replacement linux-firmware. In-place upgrade might not work properly, will be finished by postupgrade script! 
INPLACERISK: MEDIUM: having one of [mdadm nss-util nss-tools audit libitm cmake libX11-common ca-certificates gtk2 libdrm pixman-devel mesa-libGLU gtk2-devel tzdata tzdata-java nspr elfutils-libelf nss openldap elfutils-libs libref_array libini_config java-1.7.0-openjdk libipa_hbac xorg-x11-proto-devel elfutils sssd systemtap-runtime mcelog libxcb libxcb-devel libX11 mesa-libGL pixman mesa-dri-drivers openscap certmonger audit-libs libpciaccess biosdevname sssd-client nss-sysinit java-1.6.0-openjdk libsss_idmap libipa_hbac-python libX11-devel kpartx mesa-private-llvm] package installed breaks upgrade 
INPLACERISK: MEDIUM: We detected some soname bumps in the libraries installed on the system. This may break the functionality of some of your 3rd party applications. They may need rebuild. Please check their requirements. 
INPLACERISK: MEDIUM: We detected some .so libraries installed on the system were removed between CentOS 6 and CentOS 7. This may break the functionality of some of your 3rd party applications. 
INPLACERISK: MEDIUM: The name cups-lpd was changed on CentOS 7 to one of these services: cups-lpd.socket cups-lpd@.service 
INPLACERISK: MEDIUM: The service mysqld is not handled by any package and will not be automatically enabled after in-place upgrade. 
INPLACERISK: SLIGHT: We detected some files where modifications are not tracked in the rpms. You may need to check their functionality after successful upgrade. 
INPLACERISK: SLIGHT: We detected some files untracked by rpms. Some of these may need manual check/migration after redhat-upgrade-tool and/or can cause conflicts or troubles during the installation. Try to reduce unnecessary untracked files before running redhat-upgrade-tool. 
INPLACERISK: SLIGHT: We detected some packages installed on the system changed their name between CentOS 6 and CentOS 7. Although they should be compatible, monitoring after the update is recommended. 
INPLACERISK: SLIGHT: export shell commands will be deleted from /etc/sysconfig/sshd 
INPLACERISK: SLIGHT: Some binaries untracked by RPM were discovered on the system and may need rebuild after upgrade. 
INPLACERISK: SLIGHT: Some scripts untracked by RPM were discovered on the system and may not work properly after upgrade. 
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/gtk-2.0 is owned by an RPM package that was not signed by CentOS. 
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/report is not owned by any RPM package. 
INPLACERISK: SLIGHT: /usr/lib64/python2.6/site-packages/reportclient is not owned by any RPM package. 
[root@localhost ~]# redhat-upgrade-tool --force --cleanup-post --network 7.0 --instrepo=http://mirror.centos.org/centos/7.0.1406/os/x86_64
setting up repos... 
No upgrade available for the following repos: base extras updates 
.treeinfo | 1.1 kB 00:00 
getting boot images... 
vmlinuz-redhat-upgrade-tool | 4.7 MB 00:30 
initramfs-redhat-upgrade-tool.img | 32 MB 09:54 
setting up update... 
finding updates 100% [==========================================================] 
(1/920): GConf2-3.2.6-8.el7.x86_64.rpm | 1.0 MB 00:06 
(2/920): ORBit2-2.14.19-13.el7.x86_64.rpm | 176 kB 00:01

(616/920): perl-File-Fetch-0.42-2.el7.noarch.rpm                              |  27 kB     00:00

Downloading failed: 下载软件包时出错。

perl-Test-Harness-3.28-2.el7.noarch: failure: Packages/perl-Test-Harness-3.28-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

perl-IO-HTML-1.00-2.el7.noarch: failure: Packages/perl-IO-HTML-1.00-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

perl-XML-Grove-0.46alpha-52.el7.noarch: failure: Packages/perl-XML-Grove-0.46alpha-52.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

sed-4.2.2-5.el7.x86_64: failure: Packages/sed-4.2.2-5.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

redhat-lsb-cxx-4.1-24.el7.x86_64: failure: Packages/redhat-lsb-cxx-4.1-24.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

python-nose-1.3.0-2.el7.noarch: failure: Packages/python-nose-1.3.0-2.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

perl-HTTP-Date-6.02-8.el7.noarch: failure: Packages/perl-HTTP-Date-6.02-8.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

tcp_wrappers-libs-7.6-77.el7.x86_64: failure: Packages/tcp_wrappers-libs-7.6-77.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

samba-client-4.1.1-31.el7.x86_64: failure: Packages/samba-client-4.1.1-31.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

tzdata-2014b-1.el7.noarch: failure: Packages/tzdata-2014b-1.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

xcb-util-0.3.9-4.el7.x86_64: failure: Packages/xcb-util-0.3.9-4.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

xorg-x11-fonts-Type1-7.5-9.el7.noarch: failure: Packages/xorg-x11-fonts-Type1-7.5-9.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

perl-podlators-2.5.1-3.el7.noarch: failure: Packages/perl-podlators-2.5.1-3.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

samba-winbind-clients-4.1.1-31.el7.x86_64: failure: Packages/samba-winbind-clients-4.1.1-31.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

2:vim-minimal-7.4.160-1.el7.x86_64: failure: Packages/vim-minimal-7.4.160-1.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

1:qt-x11-4.8.5-8.el7.x86_64: failure: Packages/qt-x11-4.8.5-8.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

2:texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64: failure: Packages/texlive-kpathsea-bin-svn27347.0-32.20130427_r30134.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

perl-Version-Requirements-0.101022-244.el7.noarch: failure: Packages/perl-Version-Requirements-0.101022-244.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

rpm-4.11.1-16.el7.x86_64: failure: Packages/rpm-4.11.1-16.el7.x86_64.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

sound-theme-freedesktop-0.8-3.el7.noarch: failure: Packages/sound-theme-freedesktop-0.8-3.el7.noarch.rpm from cmdline-instrepo: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 404 Not Found"

失败后再次执行该语句即可

由于此过程时间比较长,中间很可能因网络原因而中断,再次执行命令会接着上次出错的继续(304=920-616)

[root@localhost ~]# redhat-upgrade-tool --force --cleanup-post --network 7.0 --instrepo=http://mirror.centos.org/centos/7.0.1406/os/x86_64

setting up repos...

No upgrade available for the following repos: base extras updates

.treeinfo                                                                                                                                                                          | 1.1 kB     00:00    

getting boot images...

setting up update...

verify local files 100% [================================================================================================================================================================================]

(1/304): perl-File-Listing-6.04-7.el7.noarch.rpm                                                                                                                                   |  13 kB     00:00    

(2/304): perl-File-Path-2.09-2.el7.noarch.rpm                                                                                                                                      |  26 kB     00:00    

……

rpm transaction 100% [===================================================================================================================================================================================]

rpm install 100% [=======================================================================================================================================================================================]

setting up system for upgrade

Finished. Reboot to start upgrade.

You have new mail in /var/spool/mail/root

[root@localhost ~]# reboot

重启之后,机器会使用下载好的包开始更新自己,依据这机器的处理速度不同相应的解析时间会有所不同,期望数分钟而不是几秒。

[5]升级完成,而且文件系统的类型仍然是升级前的ext4

[root@localhost ~]# cat /etc/redhat-release

CentOS Linux release 7.0.1406 (Core)

[root@localhost ~]# lsb_release -a

LSB Version::core-4.1-amd64:core-4.1-noarch:cxx-4.1-amd64:cxx-4.1-noarch:desktop-4.1-amd64:desktop-4.1-noarch:languages-4.1-amd64:languages-4.1-noarch:printing-4.1-amd64:printing-4.1-noarch

Distributor ID:CentOS

Description:CentOS Linux release 7.0.1406 (Core)

Release:7.0.1406

Codename:Core

[root@localhost ~]# cat /proc/version

Linux version 3.10.0-123.el7.x86_64 (builder@kbuilder.dev.centos.org) (gcc version 4.8.2 20140120 (Red Hat 4.8.2-16) (GCC) ) #1 SMP Mon Jun 30 12:09:22 UTC 2014

[root@localhost ~]# uname -a

Linux localhost.localdomain 3.10.0-123.el7.x86_64 #1 SMP Mon Jun 30 12:09:22 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

[root@localhost ~]# uname -r

3.10.0-123.el7.x86_64

[root@localhost ~]# df -lhT

文件系统                     类型      容量  已用  可用 已用% 挂载点

/dev/mapper/VolGroup-lv_root ext4       45G   32G   12G   74% /

devtmpfs                     devtmpfs  3.9G     0  3.9G    0% /dev

tmpfs                        tmpfs     3.9G     0  3.9G    0% /dev/shm

tmpfs                        tmpfs     3.9G  8.3M  3.9G    1% /run

tmpfs                        tmpfs     3.9G     0  3.9G    0% /sys/fs/cgroup

/dev/sda1 ext4      477M   91M  358M   21% /boot

CentOS6.5升级为CentOS7.0的更多相关文章

  1. 测试环境下将centos6.8升级到centos7的操作记录(转)

    在测试环境下安装openstack,由于在centos6下安装openstack,针对源的问题有很多,安装起来很不顺利! 但是在centos7下安装却很顺利,所以考虑将服务器由centos6升级到ce ...

  2. [转] 测试环境下将centos6.8升级到centos7的操作记录

    1)查看升级前的版本信息 lsb_release -a LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noa ...

  3. CentOS6.x 升级到 CentOS7.x(测试)

    博文来源:http://leyewen.blog.163.com/   官方升级教程:http://wiki.centos.org/TipsAndTricks/CentOSUpgradeTool   ...

  4. centos6.5升级安装openssl1.0.2h

    最新漏洞通报: Openssl多个漏洞安全预警 2016-05-05 18:05:39 一.概述 在OpenSSL官方昨日(2016/5/3)发布的安全公告中,公开了两个新的高危漏洞CVE-2016- ...

  5. centos6.5/6.3升级安装ImageMagick7.0.1-1

    线上论坛和应用程序的验证码功能都是使用的ImageMagick,但是版本比较老(centos yum安装的ImageMagick6.5.9).接到最新漏洞预报,紧急升级! ImageMagick图象处 ...

  6. centos7.6环境zabbix3.2源码编译安装版升级到zabbix4.0长期支持版

    zabbix3.2源码编译安装版升级到zabbix4.0长期支持版 项目需求: .2版本不再支持,想升级成4.0的长期支持版 环境介绍: zabbix服务端是编译安装的,数据库和web在一台机器上 整 ...

  7. 大数据项目之_15_帮助文档_NTP 配置时间服务器+Linux 集群服务群起脚本+CentOS6.8 升级到 python 到 2.7

    一.NTP 配置时间服务器1.1.检查当前系统时区1.2.同步时间1.3.检查软件包1.4.修改 ntp 配置文件1.5.重启 ntp 服务1.6.设置定时同步任务二.Linux 集群服务群起脚本2. ...

  8. CentOS-7.0.中安装与配置Tomcat-7的方法

    安装说明 安装环境:CentOS-7.0.1406安装方式:源码安装 软件:apache-tomcat-7.0.29.tar.gz 下载地址:http://tomcat.apache.org/down ...

  9. centOS6.6升级gcc4.8

    最近想升级mesos0.23.0,结果编译mesos0.23.0需要gcc4.8+,可是centOS6.6最高版本的gcc也只到4.4.7版本,只好手动升级一下了. 下载4.8.2源码 wget ft ...

随机推荐

  1. 《Numerical Methods》-chaper7-解线性方程组的直接方法和最小二乘问题

    基于我们在线性代数中学习过的知识,我们知道解线性方程组本质上就是Gauss消元,也就是基于增广矩阵A的矩阵初等变换.关于数学层面的内容这里不做过多的介绍,这里的侧重点是从数值计算的角度来看这些常见的问 ...

  2. XMPP and Asterisk integration

    http://www.mundoopensource.com.br/en_page_xmpp_asterisk_pratical_example/ www.mundoopensource.com.br ...

  3. 通过例子学python(2.2)

    2.2 通用序列操作 #2.2 通用序列操作 #所有序列类型都可以进行的操作:索引indexing,分片sliceing,加adding,乘multiplying,成员资格, #计算序列长度,找出最大 ...

  4. Palindrome - URAL - 1297(求回文串)

    题目大意:RT   分析:后缀数组求回文串,不得不说确实比较麻烦,尤其是再用线段数进行查询,需要注意的细节地方比较多,比赛实用性不高......不过练练手还是可以的.   线段数+后缀数组代码如下: ...

  5. 内存数据库MemSQL ——基于内存,MVCC+哈希表、跳表

    本周数据库业界探讨最火热的话题就是MemSQL,究竟是不是"旧瓶装新酒"引发了诸多的辩论,同时也引发了究竟是产品技术重要还是DBA重要的疑问.网络中有一些关于MemSQL的介绍,基 ...

  6. AIX操作oracle

    oracle:出现下述错误,无法连接用户. ORA-01034: ORACLE not available ORA-27101: shared memory realm does not exist ...

  7. UVA 753 - A Plug for UNIX(网络流)

      A Plug for UNIX  You are in charge of setting up the press room for the inaugural meeting of the U ...

  8. 解决方法:未能加载文件或程序集“Microsoft.Office.Interop.Excel。。

    .NET错误提示:未能加载文件或程序集“Microsoft.Office.Interop.Excel, Version=11.0.0.0, Culture=neutral, PublicKeyToke ...

  9. 生成 git 密钥 步骤

    http://blog.csdn.net/wfdtxz/article/details/8678982 git使用https协议,每次pull, push都要输入密码,相当的烦.使用git协议,然后使 ...

  10. DIV+CSS区块框浮动设计

    在页面布局的时候,能够用绝对定位来实现,可是因为调整某个区块框时其它区块的位置不会对应的改变,所以这并非布局的首选方式.可是使用浮动的区块框能够向左或向右移动,直到它的外边缘碰到包括它区块的边框或还有 ...