1 فایل پیوست
ارتقا CentOS 6 به CentOS 7 ( شاپ وی پی اس)
این آموزش نحوه ارتقا CentOS 6 به CentOS 7 به صورت انلاین است و تست شده می باشد.
http://www.webhostingtalk.ir/attachm...id=25919&stc=1centos
در تست ما از centos 6.5 به همراه پنل دایرکت ادمین استفاده شده، برای این کار ابتدا مخرن centos ویرایش می کنید:
nano /etc/yum.repos.d/upgrade.repo
1
|
nano /etc/yum.repos.d/upgrade.repo
|
سپس کد ها زیر داخل ان قرار می دهید
[upgrade] name=upgrade baseurl=http://dev.centos.org/centos/6/upg/x86_64/ enabled=1 gpgcheck=0
1
2
3
4
5
|
[upgrade]
name=upgrade
baseurl=http://dev.centos.org/centos/6/upg/x86_64/
enabled=1
gpgcheck=0
|
نصب بسته های مورد نیاز با yum جهت ارتقا :
yum -y install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant
1
|
yum -y install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant
|
حال دستور زیر اجرا و خروجی ببینید:
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:02s) All changed files : 02/11 ...finished (time 22:04s) 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:02s) All local files : 08/11 ...finished (time 05:08s) All executable files : 09/11 ...finished (time 00:02s) 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) --[CUT]-- List of all packages and services --[/CUT]-- 095/095 ...done (NIS server config file back-up) Assessment finished (time 11:55s) Result table with checks and their results for main contents: ---------------------------------------------------------------------------------- |Bacula Backup Software |notapplicable | |PostgreSQL upgrade content |notapplicable | | --[CUT]-- Lot's of not applicable packages --[/CUT]-- | |several kernel networking drivers not available in CentOS 7 |pass | |several kernel storage drivers not available in CentOS 7 |pass | |MySQL configuration |informational | |Migration of the MySQL data stack |informational | |Compatibility Between iptables and ip6tables |informational | |Net-SNMP check |informational | |VCS repositories |informational | |Added options in DNSMASQ configuration |informational | |Removed options in coreutils binaries |informational | |Removed options in gawk binaries |informational | |Removed options in netstat binary |informational | |GMP library incompatibilities |informational | |CVS Package Split |informational | |NTP configuration |informational | |Information on time-sync.target |informational | |File Systems, Partitions and Mounts Configuration Review |informational | |SonameKept Reusable Dynamic Libraries |informational | |Content for enabling and disabling services (...) |informational | |YUM |informational | |Reusable Configuration Files |fixed | |Replaced rpms |fixed | |package downgrades |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 | |Foreign Perl modules |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 | |Sonamebumped libs |needs_action | |Removed .so libs |needs_action | |User modification in /etc/rc.local and /etc/rc.d/rc.local |needs_action | ---------------------------------------------------------------------------------- Tarball with results is stored here /root/preupgrade-results/preupg_results-140801172528.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 .
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
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:02s)
All changed files : 02/11 ...finished (time 22:04s)
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:02s)
All local files : 08/11 ...finished (time 05:08s)
All executable files : 09/11 ...finished (time 00:02s)
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)
--[CUT]-- List of all packages and services --[/CUT]--
095/095 ...done (NIS server config file back-up)
Assessment finished (time 11:55s)
Result table with checks and their results for main contents:
----------------------------------------------------------------------------------
|Bacula Backup Software |notapplicable |
|PostgreSQL upgrade content |notapplicable |
| --[CUT]-- Lot's of not applicable packages --[/CUT]-- |
|several kernel networking drivers not available in CentOS 7 |pass |
|several kernel storage drivers not available in CentOS 7 |pass |
|MySQL configuration |informational |
|Migration of the MySQL data stack |informational |
|Compatibility Between iptables and ip6tables |informational |
|Net-SNMP check |informational |
|VCS repositories |informational |
|Added options in DNSMASQ configuration |informational |
|Removed options in coreutils binaries |informational |
|Removed options in gawk binaries |informational |
|Removed options in netstat binary |informational |
|GMP library incompatibilities |informational |
|CVS Package Split |informational |
|NTP configuration |informational |
|Information on time-sync.target |informational |
|File Systems, Partitions and Mounts Configuration Review |informational |
|SonameKept Reusable Dynamic Libraries |informational |
|Content for enabling and disabling services (...) |informational |
|YUM |informational |
|Reusable Configuration Files |fixed |
|Replaced rpms |fixed |
|package downgrades |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 |
|Foreign Perl modules |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 |
|Sonamebumped libs |needs_action |
|Removed .so libs |needs_action |
|User modification in /etc/rc.local and /etc/rc.d/rc.local |needs_action |
----------------------------------------------------------------------------------
Tarball with results is stored here /root/preupgrade-results/preupg_results-140801172528.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 .
|
در centos 7 یک اتفاق جالب افتاده و mariadb جایگزین MySql کرده، systemD جایگزین Upstart – udev و grub2 جایگزین grub شده است.
CentOS7 GPG key با دستور زیر اضافه کنید
rpm --import http://centos.mirror.transip.nl/7/os...G-KEY-CentOS-7
در انتها دستور زیر بزنید.
/usr/bin/redhat-upgrade-tool-cli --network 7 --instrepo=http://centos.mirror.transip.nl/7/os/x86_64
1
|
/usr/bin/redhat-upgrade-tool-cli --network 7 --instrepo=http://centos.mirror.transip.nl/7/os/x86_64
|
برنامه هایی مانند NginX, fail2ban, jexec باید حذف و مجدد نصب و کانفیگ شود.
تشکر فراموش نشود
پاسخ : ارتقا CentOS 6 به CentOS 7 ( شاپ وی پی اس)
سلام
یک سوال: دلیل شما برای استفاده از centos 7 چیست؟چون درحال حاظر centos 6.6 هنوز پشتیبانی میشود و پکیج های امنیتی سریعا برای ان میاید.
ایا درزمان استفاده از centos 7 به دلیل جدید تر بودن کرنل ، سرعت بالاتری احساس کردید یا خیر؟
باتشکر
پاسخ : ارتقا CentOS 6 به CentOS 7 ( شاپ وی پی اس)
من خودم هنوز 6.6 استفاده میکنم اما 7 هم فرقی از نظر کرنل نداره ... اما توصیه من هنوز 6.6 هست
پاسخ : ارتقا CentOS 6 به CentOS 7 ( شاپ وی پی اس)
سنت او اس ۷ کمی بهینه تر شده وسرعتش بالا رفته ولی هنوز به خاطر استیبل نبودن از لحاظ اپگرید های نرم افزاری غیر سیستم عامل بهتره از نسخه های رایج تر استفاده کنین
پاسخ : ارتقا CentOS 6 به CentOS 7 ( شاپ وی پی اس)
نقل قول:
نوشته اصلی توسط
nazarkhani
من خودم هنوز 6.6 استفاده میکنم اما 7 هم فرقی از نظر کرنل نداره ... اما توصیه من هنوز 6.6 هست
سلام
کرنل متفاوت هست ( centos 7 : 3.1 centos 6.6 2.6)
http://seven.centos.org/2014/07/cent...now-available/
- - - Updated - - -
نقل قول:
نوشته اصلی توسط
mohammadali3517
سنت او اس ۷ کمی بهینه تر شده وسرعتش بالا رفته ولی هنوز به خاطر استیبل نبودن از لحاظ اپگرید های نرم افزاری غیر سیستم عامل بهتره از نسخه های رایج تر استفاده کنین
سلام
فکر نمیکنم استیبل نباشه ،تاجایی که اطلاع دارم rhel 7 از fedora 19 فورک شده و مدت زیادی از انتشار فدورا ۱۹ میگذره (روی لپتاپ خودم fedora 21 هست هیچ مشکلی ندارم)
البته مورادی مثل سی پنل تا جایی که اطلاع دارم براش نیومده
دایرکت که کلا با همه چیز سازگاره
پاسخ : ارتقا CentOS 6 به CentOS 7 ( شاپ وی پی اس)
درسته منم گفتم نرم افزارهای ارئه شده غی. از سیستم عامل یعنی نرم افزار های جانبی نه سیستمی .
پاسخ : ارتقا CentOS 6 به CentOS 7 ( شاپ وی پی اس)
نسخه 7 با توجه به تغییرات زیادی که داشته هنوز به حالت استیبل صد در صد نرسیده و استفاده از آن در موارد حساس صحیح نیست
برای مثال نرم افزارهایی مثل R1Soft و cPanel هنوز نسخه های سازگار با این ورژن رو منتشر نکرده اند
از طرفی روی نسخه 7 برخی مشکلات مربوط به روتینگ شبکه گزارش شده که هنوز اصلاح نشده اند
به هر حال نسخه 6/6.5 تا سال 2020 پشتیبانی خواهد داشت و زمان کافی برای کوچ را دارید
پس برای استفاده تجاری یا در موقعیت های حساس فعلا از نسخه 7 استفاده نکنید