CentOS7で、/bootの容量が足りない場合の対処方法
をテンプレートにして作成
[
トップ
] [
新規
|
一覧
|
検索
|
最終更新
|
ヘルプ
|
ログイン
]
開始行:
#author("2020-05-18T03:34:24+00:00","","")
[[hidekiwiki]]
#html{{
<meta name="description" content="https://fukumoto.tokyo/...
<meta name="keywords" content="CentOS7,hidekiwiki,yum-uti...
<link rel="canonical" href="https://fukumoto.tokyo/wiki/"...
<br>
<a href="https://it.blogmura.com/linux/"><img src="https:...
<br>
<!-- admax -->
<script src="https://adm.shinobi.jp/s/1a0429ab1f292195e9a...
<!-- admax -->
</html>
}}
*CentOS7で、/bootの容量が足りない場合の対処方法 [#ue1044a5]
カーネルのアップグレードを何度も繰り返していると、バック...
知らず知らずのうちに/bootが容量不足になります。
その場合は、yum-utilsを使うと比較的安全に古いカーネルを...
**まずは、yum-utilsをインストール!! [#w3ff7633]
yum install yum-utils
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: ...
base ...
centosplus ...
epel/x86_64/metalink ...
epel ...
extras ...
updates ...
(1/4): extras/7/x86_64/primary_db ...
(2/4): updates/7/x86_64/primary_db ...
(3/4): epel/x86_64/updateinfo ...
(4/4): epel/x86_64/primary_db ...
Determining fastest mirrors
* base: mirror.fairway.ne.jp
* centosplus: mirror.fairway.ne.jp
* epel: ftp.jaist.ac.jp
* extras: ftp.yz.yamagata-u.ac.jp
* updates: ftp.yz.yamagata-u.ac.jp
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-40.el7 will be in...
--> Processing Dependency: python-kitchen for package: y...
--> Processing Dependency: libxml2-python for package: y...
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 wil...
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be...
--> Processing Dependency: python-chardet for package: p...
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will ...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Ar...
========================================================...
Installing:
yum-utils no...
Installing for dependencies:
libxml2-python x8...
python-chardet no...
python-kitchen no...
Transaction Summary
========================================================...
Install 1 Package (+3 Dependent packages)
Total download size: 856 k
Installed size: 4.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm ...
(2/4): python-chardet-2.2.1-1.el7_1.noarch.rpm ...
(3/4): python-kitchen-1.1.1-5.el7.noarch.rpm ...
(4/4): yum-utils-1.1.31-40.el7.noarch.rpm ...
--------------------------------------------------------...
Total ...
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python-chardet-2.2.1-1.el7_1.noarch ...
Installing : python-kitchen-1.1.1-5.el7.noarch ...
Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64 ...
Installing : yum-utils-1.1.31-40.el7.noarch ...
Verifying : yum-utils-1.1.31-40.el7.noarch ...
Verifying : python-kitchen-1.1.1-5.el7.noarch ...
Verifying : libxml2-python-2.9.1-6.el7_2.3.x86_64 ...
Verifying : python-chardet-2.2.1-1.el7_1.noarch ...
Installed:
yum-utils.noarch 0:1.1.31-40.el7
Dependency Installed:
libxml2-python.x86_64 0:2.9.1-6.el7_2.3 ...
Complete!
**インストールが完了したので、次に、削除工程 [#uedfa318]
最新のカーネルを3つだけ残して残りを削除。
package-cleanup --oldkernels --count=3コマンドを実行!!
[root@localhost boot]# package-cleanup --oldkernels --co...
Loaded plugins: fastestmirror
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-327.13.1.el7 will be...
---> Package kernel.x86_64 0:3.10.0-327.18.2.el7 will be...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch ...
========================================================...
Removing:
kernel x86_64 ...
kernel x86_64 ...
Transaction Summary
========================================================...
Remove 2 Packages
Installed size: 272 M
Is this ok [y/N]: y ←「y」を入力。
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : kernel.x86_64 ...
Erasing : kernel.x86_64 ...
Verifying : kernel-3.10.0-327.13.1.el7.x86_64 ...
Verifying : kernel-3.10.0-327.18.2.el7.x86_64 ...
Removed:
kernel.x86_64 0:3.10.0-327.13.1.el7 ...
Complete!
終了行:
#author("2020-05-18T03:34:24+00:00","","")
[[hidekiwiki]]
#html{{
<meta name="description" content="https://fukumoto.tokyo/...
<meta name="keywords" content="CentOS7,hidekiwiki,yum-uti...
<link rel="canonical" href="https://fukumoto.tokyo/wiki/"...
<br>
<a href="https://it.blogmura.com/linux/"><img src="https:...
<br>
<!-- admax -->
<script src="https://adm.shinobi.jp/s/1a0429ab1f292195e9a...
<!-- admax -->
</html>
}}
*CentOS7で、/bootの容量が足りない場合の対処方法 [#ue1044a5]
カーネルのアップグレードを何度も繰り返していると、バック...
知らず知らずのうちに/bootが容量不足になります。
その場合は、yum-utilsを使うと比較的安全に古いカーネルを...
**まずは、yum-utilsをインストール!! [#w3ff7633]
yum install yum-utils
Loaded plugins: fastestmirror
Repodata is over 2 weeks old. Install yum-cron? Or run: ...
base ...
centosplus ...
epel/x86_64/metalink ...
epel ...
extras ...
updates ...
(1/4): extras/7/x86_64/primary_db ...
(2/4): updates/7/x86_64/primary_db ...
(3/4): epel/x86_64/updateinfo ...
(4/4): epel/x86_64/primary_db ...
Determining fastest mirrors
* base: mirror.fairway.ne.jp
* centosplus: mirror.fairway.ne.jp
* epel: ftp.jaist.ac.jp
* extras: ftp.yz.yamagata-u.ac.jp
* updates: ftp.yz.yamagata-u.ac.jp
Resolving Dependencies
--> Running transaction check
---> Package yum-utils.noarch 0:1.1.31-40.el7 will be in...
--> Processing Dependency: python-kitchen for package: y...
--> Processing Dependency: libxml2-python for package: y...
--> Running transaction check
---> Package libxml2-python.x86_64 0:2.9.1-6.el7_2.3 wil...
---> Package python-kitchen.noarch 0:1.1.1-5.el7 will be...
--> Processing Dependency: python-chardet for package: p...
--> Running transaction check
---> Package python-chardet.noarch 0:2.2.1-1.el7_1 will ...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Ar...
========================================================...
Installing:
yum-utils no...
Installing for dependencies:
libxml2-python x8...
python-chardet no...
python-kitchen no...
Transaction Summary
========================================================...
Install 1 Package (+3 Dependent packages)
Total download size: 856 k
Installed size: 4.3 M
Is this ok [y/d/N]: y
Downloading packages:
(1/4): libxml2-python-2.9.1-6.el7_2.3.x86_64.rpm ...
(2/4): python-chardet-2.2.1-1.el7_1.noarch.rpm ...
(3/4): python-kitchen-1.1.1-5.el7.noarch.rpm ...
(4/4): yum-utils-1.1.31-40.el7.noarch.rpm ...
--------------------------------------------------------...
Total ...
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Installing : python-chardet-2.2.1-1.el7_1.noarch ...
Installing : python-kitchen-1.1.1-5.el7.noarch ...
Installing : libxml2-python-2.9.1-6.el7_2.3.x86_64 ...
Installing : yum-utils-1.1.31-40.el7.noarch ...
Verifying : yum-utils-1.1.31-40.el7.noarch ...
Verifying : python-kitchen-1.1.1-5.el7.noarch ...
Verifying : libxml2-python-2.9.1-6.el7_2.3.x86_64 ...
Verifying : python-chardet-2.2.1-1.el7_1.noarch ...
Installed:
yum-utils.noarch 0:1.1.31-40.el7
Dependency Installed:
libxml2-python.x86_64 0:2.9.1-6.el7_2.3 ...
Complete!
**インストールが完了したので、次に、削除工程 [#uedfa318]
最新のカーネルを3つだけ残して残りを削除。
package-cleanup --oldkernels --count=3コマンドを実行!!
[root@localhost boot]# package-cleanup --oldkernels --co...
Loaded plugins: fastestmirror
--> Running transaction check
---> Package kernel.x86_64 0:3.10.0-327.13.1.el7 will be...
---> Package kernel.x86_64 0:3.10.0-327.18.2.el7 will be...
--> Finished Dependency Resolution
Dependencies Resolved
========================================================...
Package Arch ...
========================================================...
Removing:
kernel x86_64 ...
kernel x86_64 ...
Transaction Summary
========================================================...
Remove 2 Packages
Installed size: 272 M
Is this ok [y/N]: y ←「y」を入力。
Downloading packages:
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
Erasing : kernel.x86_64 ...
Erasing : kernel.x86_64 ...
Verifying : kernel-3.10.0-327.13.1.el7.x86_64 ...
Verifying : kernel-3.10.0-327.18.2.el7.x86_64 ...
Removed:
kernel.x86_64 0:3.10.0-327.13.1.el7 ...
Complete!
ページ名: