In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-21 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
The following CVM network shows you the detailed steps of upgrading CentOS6.4 to 7.0:
Step one:
1] configure the software source
# 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] install software tools
Yum-y install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant
[3] check for potential problems before upgrading
# 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: 01Compare 10... finished (time 00move00s)
All changed files: 02Compare 10... finished (time 00movl 40s)
Changed config files: 03Compare 10... finished (time 00move00s)
All users: 04Compare 10... finished (time 00VOG 00s)
All groups: 05Compare 10... finished (time 00VERV 00s)
Service statuses: 06Compare 10... finished (time 0000s)
All installed files: 07Compare 10... finished (time 00moire 01s)
All local files: 08Compare 10... finished (time 00moire 03s)
All executable files: 09Compare 10... finished (time 00VERV 00s)
RedHat signed packages: 10 take 10... finished (time 0000s)
Assessment of the system, running checks / SCE scripts:
001Accord 100... done (Configuration Files to Review)
002 move 100... done (File Lists for Manual Migration)
003ax 100... done (Bacula Backup Software)
004ax 100... done (MySQL configuration)
005Accord 100... done (Migration of the MySQL data stack)
006x100... done (General changes in default MySQL implementation)
007Accord 100... done (PostgreSQL upgrade content)
Assessment finished (time 00rig 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 upgrading
# rpm-- import http://centos.excellmedia.net/7.0.1406/os/x86_64/RPM-GPG-KEY-CentOS-7
Normal operation of the above command can be upgraded to complete
# redhat-upgrade-tool-- network 7.0-- instrepo http://centos.excellmedia.net/7.0.1406/os/x86_64/
This compulsory one seems a little unfriendly, and the production environment should be used with caution.
Update to this step:
Setting up repos...
.treeinfo | 1.1 kB 00:00
Getting boot images...
Vmlinuz-redhat-upgrade-tool | 4.7 MB 01:38
Initramfs-redhat-upgrade-tool.img | 32 MB 14:45
Setting up update...
Finding updates 100% [=]
(116272): acl-2.2.51-12.el7.x86_64.rpm | 81 kB 00:00
(2CM272): attr-2.4.46-12.el7.x86_64.rpm | 66 kB 00:00
(3272): audit-2.3.3-4.el7.x86_64.rpm | 223 kB 00:01
(4am 272): audit-libs-2.3.3-4.el7.x86_64.rpm | 77 kB 00:00
(5CP272): authconfig-6.2.8-8.el7.x86_64.rpm | 399 kB 00:08
(6ap272): basesystem-10.0-7.el7.centos.noarch.rpm | 5.0 kB 00:00
(7ap272): bash-4.2.45-5.el7.x86_64.rpm | 1.0 MB 00:17
(2702272): yum-plugin-fastestmirror-1.1.31-24.el7.noarch.rpm | 28 kB 00:03
(271 take 272): zlib-1.2.7-13.el7.x86_64.rpm | 89 kB 00:06
(272 move 272): zlib-devel-1.2.7-13.el7.x86_64.rpm | 49 kB 00:01
Setting up system for upgrade
Finished. Reboot to start upgrade.
# reboot
[5] upgrade completed:
# cat / etc/redhat-release
CentOS Linux release 7.0.1406 (Core)
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.