Íá ãÔßáÉ remove old kernels ? /boot partition is 85% full, need to free up the space
Íá ãÔßáÉ ÇãÊáÇÁ ÇáßíÑäá Ýì ÇáíäßÓ - ÍÐÝ ÇáßíÑäá ÇáÞÏíã Ýì áíäßÓ - whm/ cpanel
How to remove old kernels ? /boot partition is 85% full, need to free up the space
How to remove old kernels on CentOS 7.9 (to free up boot partition)?
howto delete/remove/clean old kernels on CentOS 7.5
How to Delete Old Unused Kernels in CentOS
boot partition is almost full in CentOS
ÊÑÞíÉ kernel Ýì ÇáÓíÑÝÑ áÇÎÑ ÇÕÏÇÑ
ãÔßáÉ ÇãÊáÇÁ ãÓÇÍÉ ÇáÈæÊ ááßíÑäá boot partition is 85%
Fedora/
CentOS/RHEL
äÍä äÔÑÍ åäÇ ÓíÑÝÑÇÊ áíäßÓ
CentOS Linux ÊÍÊÇÌ ÊÍÏíË ááäÙÇã æ íÖíÝ ãÌáÏ ßíÑäá Kernel ÌÏíÏ
åÐÇ ÇáÊÍÏíË íÊã æÖÚå ÏÇÎá boot partition æÈãÌÑÏ åäÇß ÊÍÏíË ÌÏíÏ íÖÇÝ ÇáÌÏíÏ
æÇáÞÏíã áÇ íÍÐÝ ÍíË íÕÈÍ ßÇäå backup Ýì ÍÇáÉ ÍÏæË ãÔßáÉ ÇÞáÇÚ Ýì ÇáäÓÎÉ ÇáÌÏíÏÉ
íäÒá ÊáÞÇÆíÇ Çáì ÇáäÓÎÉ ÇáÇÞÏã æ åßÐÇ , æÈíßæä ÇáÇÝÊÑÇÖì 5 äÓÎ ãÎÐäå Ýì boot partition
ææáÇÓÝ ÇÛáÈ boot partition Èíßæä ÇáãÓÇÍÉ ÇáÎÇÕÉ Èå ÊÞÑíÈÇ 250 ãíÌÇ !
æßá ÊÍÏíË Èíßæä Ýì ÇáÛÇáÈ ãÊæÓØ ÇáãÓÇÍÉ 50 ãíÌÇ ÇÐÇ ÊÑÇßãÊ åÐå ÇáäÓÎ
íÍÏË ÇãÊáÇÁ Ýì ãÓÇÍÉ boot æíÌÈ ÍÐÝ ÇáÇÕÏÇÑÇÊ ÇáÞÏíãÉ ãä kernels
æåäÇß ØÑíÞÊíä Ýì ÍÐÝ ÇáßÑäá ÇáÞÏíã ÇäÇ manual Çæ automatic
æßÐáß ÊÚÏíá ÇáäÙÇã ÈÏá ãä ÇáÇÍÊÝÇÙ ÈÜ 5 äÓÎ äÌÚáåÇ 2 ÝÞØ
-----------------------------------------------------
ØÑíÞÉ Manual áÍÐÝ ÇáßíÑäá ÇáÞÏíã remove old kernels
-----------------------------------------------------
ÇÐåÈ Çáì whm Ëã terminal Ëã ÇÏÎá åÐÇ ÇáÇãÑ " áãÚÑÝÉ ÇÕÏÇÑ ÇáßíÑäá ÇáÍÇáì "
Check for current Kernel
ÇáäÊíÌÉ
Ëã ÇÏÎá åÐÇ ÇáÇãÑ " áãÚÑÝÉ ÌãíÚ ÇÕÏÇÑÇÊ ÇáßíÑäá ÇáãæÌæÏÉ "
list all currently installed kernels
ÇáäÊíÌÉ :
kernel-3.10.0-1062.9.1.el7.x86_64
kernel-3.10.0-1127
.13.1.el7.x86_64
kernel-3.10.0-1127.
19.1.el7.x86_64
kernel-3.10.0-1160.6.1.el7.x86_64
ÊÇÈÚ ÇáÇÕÏÇÑÇÊ Ýì ÇáÇÑÞÇã
ÇáÍÏíË ÈÇááæä ÇáÇÎÖÑ
1160 æÇáÇÞÏã ÈÇááæä ÇáæÑÏí åæ
1062
íãßäß ÍÐÝ ÇÎÑ äÓÎÉ ÞÏíãÉ Çæ ÇßËÑ æáßä ÇÊÑß ÏÇÆãÇ
ÇÞá ÔìÁ äÓÎÊíä áÏíß ÇáÍÇáí + ÇáÇÕÏÇÑ Çáì íÓÈÞå
ÇÏÎá åÐÇ ÇáÇãÑ " áÍÐÝ ÇáßíÑäá ÇáÞÏíã ÇáãÎÊÇÑ "
ßæÏ:
rpm -ev kernel-3.10.0-1062.9.1.el7.x86_64
ÇáäÊíÌÉ ãËá åÐÇ ÊÞÑíÈÇ ÓæÇÁ automatic Çæ manual" Êã äÞáåÇ ãä ÇÍÏ ÇáãæÇÞÚ "
ßæÏ:
Loaded plugins: fastestmirror, langpacks, product-id, versionlock
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-229.el7 will be erased
---> Package kernel.x86_64 0:3.10.0-229.14.1.el7 will be erased
---> Package kernel-devel.x86_64 0:3.10.0-229.1.2.el7 will be erased
---> Package kernel-devel.x86_64 0:3.10.0-229.14.1.el7 will be erased
--> Finished Dependency Resolution
Dependencies Resolved
===============================================================================================================================================================================================
Package Arch Version Repository Size
===============================================================================================================================================================================================
Removing:
kernel x86_64 3.10.0-229.el7 @anaconda 131 M
kernel x86_64 3.10.0-229.14.1.el7 @updates 131 M
kernel-devel x86_64 3.10.0-229.1.2.el7 @updates 32 M
kernel-devel x86_64 3.10.0-229.14.1.el7 @updates 32 M
Transaction Summary
===============================================================================================================================================================================================
Remove 4 Packages
Installed size: 326 M
Is this ok [y/N]: y
ÑÇÌÚ æÊÇßÏ Çäå ÍÐÝ ÇáÞÏíã æ áíÓ ÇáÌÏíÏ
æÈÚÏ ÇáÊÇßÏ Þã ÈÇáÖÛØ Úáì y áíÊã ÇáÊäÝíÐÇáÇãÑ
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : kernel-devel.x86_64 1/4
Erasing : kernel.x86_64 2/4
Erasing : kernel-devel.x86_64 3/4
Erasing : kernel.x86_64 4/4
Loading mirror speeds from cached hostfile
* base: centos.mirror.snu.edu.in
* epel: repo.ugm.ac.id
* extras: centos.mirror.snu.edu.in
* rpmforge: kartolo.sby.datautama.net.id
* updates: centos.mirror.snu.edu.in
Verifying : kernel-3.10.0-229.el7.x86_64 1/4
Verifying : kernel-devel-3.10.0-229.14.1.el7.x86_64 2/4
Verifying : kernel-3.10.0-229.14.1.el7.x86_64 3/4
Verifying : kernel-devel-3.10.0-229.1.2.el7.x86_64 4/4
Removed:
kernel.x86_64 0:3.10.0-229.el7 kernel.x86_64 0:3.10.0-229.14.1.el7 kernel-devel.x86_64 0:3.10.0-229.1.2.el7 kernel-devel.x86_64 0:3.10.0-229.14.1.el7
Complete!
-----------------------------------------------------
ØÑíÞÉ Automatic áÍÐÝ ÇáßíÑäá ÇáÞÏíã remove old kernels
-----------------------------------------------------
ääÕÍ ÈåÐå ÇáØÑíÞÉ æ åì ÇáÇÝÖá ,æÇÓÊÎÏã manual áãÑÇÌÚå ÈíÇäÇÊ ÇáÓíÑÝÑ Ëã äÝÐ automatic
ÇÏÎá åÐÇ ÇáÇãÑ " áÊËÈíÊ ÇÖÇÝÉ yum-utils æåì ÇÏæÇÊ ÇßËÑ ÞæÉ æ ÓåæáÉ Ýì Úãá ÇáãØáæÈ "
Install the yum-utils if they aren't installed
ßæÏ:
yum install yum-utils
Ëã
ÇÏÎá åÐÇ ÇáÇãÑ " áÍÐÝ ÌãíÚ ÇáßíÑäá ÇáÞÏíã æåíÊÑß 2 ÝÞØ "
Cleanup old kernels and don't keep more than 2
ßæÏ:
package-cleanup --oldkernels --count=2
ÇáäÊíÌÉ
-----------------------------------------------------
ÊÚÏíá ÇáäÙÇã áßì íÍÊÝÙ ÈÜ 2 ßíÑäá ÝÞØ ÈÏá ãä 5 ÇáÇÝÊÑÇÖì
-----------------------------------------------------
áÊÌäÈ ÊßÑÇÑ ÇãÊáÇÁ ãÓÇÍÉ boot íãßäß ÊÚÏíá ÇáÇÝÊÑÇÖì ÏÇÎá ÇáäÙÇã
æåæ Çä ÚÏÏ 5 ßíÑäá ÝÞØ ãÓãæÍ Èå æÇßËÑ ãä Ðáß íÍÐÝ ÊáÞÇÆíÇ ãÚ ßá ÊÍÏíË ÌÏíÏ
æÝì ÇáÍÞíÞÉ åÐÇ ÑÞã ßÈíÑ Úáì ãÓÇÍÉ ÕÛíÑ, áÐáß íãßääÇ ÌÚáåÇ 2 Çæ 3 ÈÏá 5
æÈÇáÊÇáì áä íÊßÑÑ ãÚß ãÔßáÉ ÇãÊáÇÁ ÇáãÓÇÍÉ ÈØÑíÞÉ Çãäå ÊãÇãÇ
ÍíË Çä ÇáÓíÑÝÑ íÍÊÝÙ ÈÞíãÉ 5 ÇäÊ ÇÌÚáåÇ 2 ÝÞØ
ÇÏÎá åÐÇ ÇáÇãÑ "áÝÊÍ ãáÝ ÇÚÏÇÏÇÊ ÇáäÙÇã áÊÚÏíá ÞíãÉ 5 "
Ëã ÇÈÍË Úä
ÇÌÚáåÇ
Ëã ÍÝÙ
-----------------------------------------------------
ÊÍÏíË ÇáäÙÇã Çáì ÇÎÑ ÇÕÏÇÑ ßíÑäá System Update include Kernel
-----------------------------------------------------
ÇÐåÈ Çáì åÐÇ ÇáãÓÇÑ Home »Software »System Update
Ëã ÇÖÛØ Úáì update æÇäÊÙÑ 3 ÏÞÇÆÞ ÊÞÑíÈÇ æåíÙåÑ áß äÊÇÆÌ
ÊËÈíÊ ÇáäÓÎÉ ÇáÞÏíãÉ æ ÍÐÝ Çì äÓÎÉ ÞÏíãÉ ãÚ ÊÑß 2 ÝÞØ ÇáÍÇáì æ ÇáÐì íÓÈÞå
ßãÇ ÞãäÇ ÈÊÍÏíÏå Ýì ÇáÎØæÉ ÇáÓÇÈÞÉ Ýìinstallonly_limit ÈÏá ãä 5 ÌÚáäÇåÇ 2
æÈÇáÊÇáì áä íÍÏË ãÚß ãÔßáÉ ÇãÊáÇÁ ãÓÇÍÉ boot ãÑÉ ÇÎÑí
-----------------------------------------------------
åá ÊÍÏíË ÇáäÙÇã Çáì ÇÎÑ ÇÕÏÇÑ ßíÑäá åÇã ¿
-----------------------------------------------------
åÇã ÌÏÇ Úáì ÔÇä ÔìÁ æÇÍÏ ÝÞØ åæ Çáì åíÝíÏß æåæ Security
ÈÇáØÈÚ åäÇß ããíÒÇÊ ÇÎÑí áä ÊÝÑÞ ãÚß Úáì ÇáÇØáÇÞ æáßä ÇáÍãÇíÉ åì Çåã ãíÒÉ
áÐáß ÊÌÏ cPanel Security Advisor ÏÇÆãÇ íØáÈ ãäß Úãá kernel update
æáßä íÊØáÈ åÐÇ ÑíÓÊÇÑÊ ááÓíÑÝÑ æáÇ ÈÏ ãäå áÐáß åäÇß ÎÇÕíÉ ÊÓãí KernelCare
ÊÌÚáß ÊÚãá update ÈÏæä ÇáÍÇÌÉ ááÑíÓÊÇÑÊ ãä ÎáÇá ÇÎÊíÇÑåÇ áãáÝÇÊ security ÝÞØ æÊÌÇåá ÛíÑåÇ
æÝì ÇáÍÞíÞÉ äÍä äÝÖá Úãá restart ááÓíÑÝÑ áÇäÚ ÈíÚãá refresh ááäÙÇã ßßá .
-----------------------------------------------------
ãáÍæÙÇÊ åÇãÉ :
-----------------------------------------------------
ÎØæÉ ÍÐÝ ÇáßíÑäá ÎØÑÉ ÇÐÇ Êã ÍÐÝ ÇáÌÏíÏ Çæ Êã ÍÐÝ ÇáÇÞÏã ãäåÇ æÇáÊì ÊÓÊÎÏã ÈÇß ÇÈ
ÍíË Boot íÚÊãÏ ÚáíåÇ æÇì Îáá åäÇ ÇáÓíÑÝÑ áä íÏÎá Úáì ÓíÓÊã áíäßÓ ãä ÇáÇÕá
æÈÇáÊÇáì åÊÝÞÏ ÇáÊÍßã Ýì ÇáÓíÑÝÑ æåíÊØáÈ ÇáÊæÇÕá ãÚ ÇáÏÚã ÇáÝäì áÇÑÌÇÚ ÇáÈæÊ Çáì äÓÎÉ ÇÞÏã
æáä íÝÞÏ Çì ÔìÁ ãäß ÛíÑ ÇáÈæÊ æØÇáãÇ áÏíß ÇáäÓÎÉ ÇáÍÇáíÉ æ ÇáÓÇÈÞÉ Çì äÓÎÊíä
Ýåã ßÇÝì ÊãÇã ááÊÈÏíá Èíäåã ÇÐÇ ÍÏË ãÔßáÉ áÇ ÞÏÑ Çááå æäÇÏÑÇ ãÇ íÍÏË
ÇáÎØæÇÊ Ýì ÇáÇÚáì Çãäå ÈÏæä ãÔÇßá æáßä ÊÇßÏ ãä äÊÇÆÌ ÇáÇæãÇÑ ÇáãÏÎáÉ
ÍíË ÇäåÇ åÊÌÚáß ÊØãÆä Çä ÍØæÇÊß ÓáíãÉ æ áÇ íæÌÏ ãÔÇßá ãÊæÞÚ ÍÏæËåÇ,
Ëã ÇÚãá ÑíÓÊÇÑÊ ááÓíÑÝÑ ááÊÇßÏ Çä ÇáÇÞáÇÚ Êã ÈÏæä ãÔÇßáÉ,
Êã ÊØÈíÞ Êáß ÇáÎØæÇÊ æåì ÊÚãá ÈÔßá Óáíã 100 !
ßÐáß íäÕÍ ÈãÑÇÌÚÉ ÌãíÚ ÇáãÑÇÌÚ Ýì ÇáÇÓÝá.
íÝÖá ÇÎÐ ÈÇß ÇÈ ÔÇãá ááãæÞÚ ßäÙÇã system æ ÍÓÇÈÇÊ accounts
ÇÐÇ ßäÊ ãÝÚá backup ÇÓÈæÚì íãßäß ÇÖÇÝÉ google drive ÇíÖÇ
áßì íÇÎÐ äÓÎÉ Úáì ÇáÓíÑÝÑ æ Úáì ÌæÌá ÏÑÇíÝ ÇíÖÇ Ýì ÍÇáÉ ÍÏæË ÔìÁ
åíäÝÚ æÌæÏ google drive Ýì ÚÏã ÝÞÏÇä Çì ÔìÁ ãä ÇáãæÇÞÚ.
ÔÇåÏ ÇíÖÇ :
ÇáÓí ÈÇäÇá CPanel ÇÎÐ ÈÇß ÇÈ ßÇãá ÎÇÑÌ ÇáÓíÑÝÑ whm backup to Google Drive
ÇáãÑÌÚ:
https://forums.cpanel.net/threads/bo...n-full.402022/
https://www.tecmint.com/delete-old-k...el-and-fedora/
https://serverfault.com/questions/56...boot-partition
https://www.if-not-true-then-false.c...-red-hat-rhel/
http://cpanelplesk.com/centos-redhat...e-old-kernels/
https://linuxconfig.org/how-to-remov...n-centos-linux
https://geektnt.com/how-to-remove-ol...helcentos.html
https://unix.stackexchange.com/quest...full-in-centos
ÇáãÝÖáÇÊ