2009年12月28日月曜日

error: unpacking of archive failed on file /boot/System.map-2.6.9-89.0.18.EL;4b37bd31: cpio: write failed - No space left on device

CentOS4
/etc/cron.daily/yum.cronにて以下のようなエラーが発生していた。

error: unpacking of archive failed on file /boot/System.map-2.6.9-89.0.18.EL;4b37bd31: cpio: write failed - No space left on device

bootパーティションの容量不足ということらしいので、以前行った旧カーネルを削除して容量確保する処理を行いましたが(詳しくはこちらを参照)、それでも解消できないという現象が発生しました。そのとき行った手順が以下の通りです。

※yum-utilsが必要なので事前に、yum install yum-utils でインストールを済ませておく

●最初に古いカーネルを削除する(1世代前のカーネルは残す)
# package-cleanup --oldkernels
この段階では問題が解消されない。
●bootの中身を確認
# ls -al /boot
total 95124
drwxr-xr-x 4 root root 10240 Dec 28 05:01 .
drwxr-xr-x 23 root root 4096 Dec 26 09:09 ..
-rw-r--r-- 1 root root 50058 Nov 3 2007 config-2.6.9-55.0.12.ELsmp
-rw-r--r-- 1 root root 50057 Jun 27 2007 config-2.6.9-55.0.2.ELsmp
-rw-r--r-- 1 root root 50057 Sep 5 2007 config-2.6.9-55.0.6.ELsmp
-rw-r--r-- 1 root root 50057 Sep 28 2007 config-2.6.9-55.0.9.ELsmp
-rw-r--r-- 1 root root 50053 May 3 2007 config-2.6.9-55.ELsmp
-rw-r--r-- 1 root root 50550 May 8 2008 config-2.6.9-67.0.15.ELsmp
-rw-r--r-- 1 root root 50549 Dec 20 2007 config-2.6.9-67.0.1.ELsmp
-rw-r--r-- 1 root root 50550 Jun 26 2008 config-2.6.9-67.0.20.ELsmp
-rw-r--r-- 1 root root 50550 Jul 24 2008 config-2.6.9-67.0.22.ELsmp
-rw-r--r-- 1 root root 50549 Feb 3 2008 config-2.6.9-67.0.4.ELsmp
-rw-r--r-- 1 root root 50549 Mar 15 2008 config-2.6.9-67.0.7.ELsmp
-rw-r--r-- 1 root root 50545 Nov 17 2007 config-2.6.9-67.ELsmp
-rw-r--r-- 1 root root 51127 Jan 15 2009 config-2.6.9-78.0.13.ELsmp
-rw-r--r-- 1 root root 51127 Mar 13 2009 config-2.6.9-78.0.17.ELsmp
-rw-r--r-- 1 root root 51126 Aug 6 2008 config-2.6.9-78.0.1.ELsmp
-rw-r--r-- 1 root root 51127 May 1 2009 config-2.6.9-78.0.22.ELsmp
-rw-r--r-- 1 root root 51126 Oct 8 2008 config-2.6.9-78.0.5.ELsmp
-rw-r--r-- 1 root root 51126 Nov 20 2008 config-2.6.9-78.0.8.ELsmp
-rw-r--r-- 1 root root 51239 Sep 15 20:25 config-2.6.9-89.0.11.ELsmp
-rw-r--r-- 1 root root 51614 Oct 24 06:22 config-2.6.9-89.0.15.EL
-rw-r--r-- 1 root root 51239 Oct 24 06:34 config-2.6.9-89.0.15.ELsmp
-rw-r--r-- 1 root root 51614 Nov 4 07:28 config-2.6.9-89.0.16.EL
-rw-r--r-- 1 root root 51239 Nov 4 07:43 config-2.6.9-89.0.16.ELsmp
-rw-r--r-- 1 root root 51239 Dec 16 04:43 config-2.6.9-89.0.18.ELsmp
-rw-r--r-- 1 root root 51238 Aug 14 23:27 config-2.6.9-89.0.7.ELsmp
-rw-r--r-- 1 root root 51238 Aug 24 21:03 config-2.6.9-89.0.9.ELsmp
drwxr-xr-x 2 root root 1024 Dec 18 04:20 grub
-rw-r--r-- 1 root root 1437844 Nov 4 2007 initrd-2.6.9-55.0.12.ELsmp.img
-rw-r--r-- 1 root root 1437813 Aug 29 2007 initrd-2.6.9-55.0.2.ELsmp.img
-rw-r--r-- 1 root root 1437823 Sep 8 2007 initrd-2.6.9-55.0.6.ELsmp.img
-rw-r--r-- 1 root root 1437837 Sep 29 2007 initrd-2.6.9-55.0.9.ELsmp.img
-rw-r--r-- 1 root root 1440551 Aug 29 2007 initrd-2.6.9-55.ELsmp.img
-rw-r--r-- 1 root root 1370811 May 11 2008 initrd-2.6.9-67.0.15.ELsmp.img
-rw-r--r-- 1 root root 1370726 Dec 22 2007 initrd-2.6.9-67.0.1.ELsmp.img
-rw-r--r-- 1 root root 1370818 Jun 28 2008 initrd-2.6.9-67.0.20.ELsmp.img
-rw-r--r-- 1 root root 1370824 Jul 26 2008 initrd-2.6.9-67.0.22.ELsmp.img
-rw-r--r-- 1 root root 1370824 Feb 5 2008 initrd-2.6.9-67.0.4.ELsmp.img
-rw-r--r-- 1 root root 1370813 Mar 17 2008 initrd-2.6.9-67.0.7.ELsmp.img
-rw-r--r-- 1 root root 1370427 Dec 17 2007 initrd-2.6.9-67.ELsmp.img
-rw-r--r-- 1 root root 1392759 Jan 16 2009 initrd-2.6.9-78.0.13.ELsmp.img
-rw-r--r-- 1 root root 1392704 Apr 23 2009 initrd-2.6.9-78.0.17.ELsmp.img
-rw-r--r-- 1 root root 1392691 Sep 14 2008 initrd-2.6.9-78.0.1.ELsmp.img
-rw-r--r-- 1 root root 1393200 May 8 2009 initrd-2.6.9-78.0.22.ELsmp.img
-rw-r--r-- 1 root root 1392704 Oct 19 2008 initrd-2.6.9-78.0.5.ELsmp.img
-rw-r--r-- 1 root root 1392762 Nov 21 2008 initrd-2.6.9-78.0.8.ELsmp.img
-rw-r--r-- 1 root root 1403612 Sep 17 05:03 initrd-2.6.9-89.0.11.ELsmp.img
-rw-r--r-- 1 root root 1422187 Oct 28 09:34 initrd-2.6.9-89.0.15.EL.img
-rw-r--r-- 1 root root 417792 Oct 27 05:45 initrd-2.6.9-89.0.15.ELsmp.img
-rw-r--r-- 1 root root 1422208 Nov 6 09:06 initrd-2.6.9-89.0.16.EL.img
-rw-r--r-- 1 root root 1403631 Nov 6 09:09 initrd-2.6.9-89.0.16.ELsmp.img
-rw-r--r-- 1 root root 1403641 Dec 18 04:20 initrd-2.6.9-89.0.18.ELsmp.img
-rw-r--r-- 1 root root 1403572 Aug 23 06:01 initrd-2.6.9-89.0.7.ELsmp.img
-rw-r--r-- 1 root root 1403570 Aug 26 05:21 initrd-2.6.9-89.0.9.ELsmp.img
drwx------ 2 root root 12288 Aug 30 2007 lost+found
-rw-r--r-- 1 root root 9371 Aug 13 2006 message
-rw-r--r-- 1 root root 9371 Aug 13 2006 message.ja
-rw-r--r-- 1 root root 65151 May 9 2008 symvers-2.6.9-67.0.15.ELsmp.gz
-rw-r--r-- 1 root root 65129 Dec 20 2007 symvers-2.6.9-67.0.1.ELsmp.gz
-rw-r--r-- 1 root root 65151 Jun 26 2008 symvers-2.6.9-67.0.20.ELsmp.gz
-rw-r--r-- 1 root root 65151 Jul 24 2008 symvers-2.6.9-67.0.22.ELsmp.gz
-rw-r--r-- 1 root root 65129 Feb 3 2008 symvers-2.6.9-67.0.4.ELsmp.gz
-rw-r--r-- 1 root root 65129 Mar 15 2008 symvers-2.6.9-67.0.7.ELsmp.gz
-rw-r--r-- 1 root root 65129 Nov 17 2007 symvers-2.6.9-67.ELsmp.gz
-rw-r--r-- 1 root root 67032 Jan 15 2009 symvers-2.6.9-78.0.13.ELsmp.gz
-rw-r--r-- 1 root root 67032 Mar 13 2009 symvers-2.6.9-78.0.17.ELsmp.gz
-rw-r--r-- 1 root root 67032 Aug 6 2008 symvers-2.6.9-78.0.1.ELsmp.gz
-rw-r--r-- 1 root root 67069 May 1 2009 symvers-2.6.9-78.0.22.ELsmp.gz
-rw-r--r-- 1 root root 67032 Oct 8 2008 symvers-2.6.9-78.0.5.ELsmp.gz
-rw-r--r-- 1 root root 67032 Nov 20 2008 symvers-2.6.9-78.0.8.ELsmp.gz
-rw-r--r-- 1 root root 68382 Sep 15 20:25 symvers-2.6.9-89.0.11.ELsmp.gz
-rw-r--r-- 1 root root 67596 Oct 24 06:22 symvers-2.6.9-89.0.15.EL.gz
-rw-r--r-- 1 root root 68382 Oct 24 06:35 symvers-2.6.9-89.0.15.ELsmp.gz
-rw-r--r-- 1 root root 67596 Nov 4 07:29 symvers-2.6.9-89.0.16.EL.gz
-rw-r--r-- 1 root root 68382 Nov 4 07:43 symvers-2.6.9-89.0.16.ELsmp.gz
-rw-r--r-- 1 root root 68382 Dec 16 04:45 symvers-2.6.9-89.0.18.ELsmp.gz
-rw-r--r-- 1 root root 68382 Aug 14 23:28 symvers-2.6.9-89.0.7.ELsmp.gz
-rw-r--r-- 1 root root 68382 Aug 24 21:03 symvers-2.6.9-89.0.9.ELsmp.gz
-rw-r--r-- 1 root root 771586 Nov 3 2007 System.map-2.6.9-55.0.12.ELsmp
-rw-r--r-- 1 root root 771374 Jun 27 2007 System.map-2.6.9-55.0.2.ELsmp
-rw-r--r-- 1 root root 771586 Sep 5 2007 System.map-2.6.9-55.0.6.ELsmp
-rw-r--r-- 1 root root 771586 Sep 28 2007 System.map-2.6.9-55.0.9.ELsmp
-rw-r--r-- 1 root root 771273 May 3 2007 System.map-2.6.9-55.ELsmp
-rw-r--r-- 1 root root 777506 May 8 2008 System.map-2.6.9-67.0.15.ELsmp
-rw-r--r-- 1 root root 776963 Dec 20 2007 System.map-2.6.9-67.0.1.ELsmp
-rw-r--r-- 1 root root 777533 Jun 26 2008 System.map-2.6.9-67.0.20.ELsmp
-rw-r--r-- 1 root root 777533 Jul 24 2008 System.map-2.6.9-67.0.22.ELsmp
-rw-r--r-- 1 root root 776963 Feb 3 2008 System.map-2.6.9-67.0.4.ELsmp
-rw-r--r-- 1 root root 777145 Mar 15 2008 System.map-2.6.9-67.0.7.ELsmp
-rw-r--r-- 1 root root 776963 Nov 17 2007 System.map-2.6.9-67.ELsmp
-rw-r--r-- 1 root root 797154 Jan 15 2009 System.map-2.6.9-78.0.13.ELsmp
-rw-r--r-- 1 root root 797158 Mar 13 2009 System.map-2.6.9-78.0.17.ELsmp
-rw-r--r-- 1 root root 797288 Aug 6 2008 System.map-2.6.9-78.0.1.ELsmp
-rw-r--r-- 1 root root 797656 May 1 2009 System.map-2.6.9-78.0.22.ELsmp
-rw-r--r-- 1 root root 797288 Oct 8 2008 System.map-2.6.9-78.0.5.ELsmp
-rw-r--r-- 1 root root 797420 Nov 20 2008 System.map-2.6.9-78.0.8.ELsmp
-rw-r--r-- 1 root root 785600 Sep 15 20:25 System.map-2.6.9-89.0.11.ELsmp
-rw-r--r-- 1 root root 768660 Oct 24 06:22 System.map-2.6.9-89.0.15.EL
-rw-r--r-- 1 root root 785654 Oct 24 06:34 System.map-2.6.9-89.0.15.ELsmp
-rw-r--r-- 1 root root 768660 Nov 4 07:28 System.map-2.6.9-89.0.16.EL
-rw-r--r-- 1 root root 785654 Nov 4 07:43 System.map-2.6.9-89.0.16.ELsmp
-rw-r--r-- 1 root root 785682 Dec 16 04:43 System.map-2.6.9-89.0.18.ELsmp
-rw-r--r-- 1 root root 785498 Aug 14 23:27 System.map-2.6.9-89.0.7.ELsmp
-rw-r--r-- 1 root root 785498 Aug 24 21:03 System.map-2.6.9-89.0.9.ELsmp
-rw-r--r-- 1 root root 1451171 Nov 3 2007 vmlinuz-2.6.9-55.0.12.ELsmp
-rw-r--r-- 1 root root 1450563 Jun 27 2007 vmlinuz-2.6.9-55.0.2.ELsmp
-rw-r--r-- 1 root root 1450984 Sep 5 2007 vmlinuz-2.6.9-55.0.6.ELsmp
-rw-r--r-- 1 root root 1451003 Sep 28 2007 vmlinuz-2.6.9-55.0.9.ELsmp
-rw-r--r-- 1 root root 1450489 May 3 2007 vmlinuz-2.6.9-55.ELsmp
-rw-r--r-- 1 root root 1459207 May 8 2008 vmlinuz-2.6.9-67.0.15.ELsmp
-rw-r--r-- 1 root root 1458873 Dec 20 2007 vmlinuz-2.6.9-67.0.1.ELsmp
-rw-r--r-- 1 root root 1459211 Jun 26 2008 vmlinuz-2.6.9-67.0.20.ELsmp
-rw-r--r-- 1 root root 1459227 Jul 24 2008 vmlinuz-2.6.9-67.0.22.ELsmp
-rw-r--r-- 1 root root 1458782 Feb 3 2008 vmlinuz-2.6.9-67.0.4.ELsmp
-rw-r--r-- 1 root root 1459052 Mar 15 2008 vmlinuz-2.6.9-67.0.7.ELsmp
-rw-r--r-- 1 root root 1458902 Nov 17 2007 vmlinuz-2.6.9-67.ELsmp
-rw-r--r-- 1 root root 1483646 Jan 15 2009 vmlinuz-2.6.9-78.0.13.ELsmp
-rw-r--r-- 1 root root 1483638 Mar 13 2009 vmlinuz-2.6.9-78.0.17.ELsmp
-rw-r--r-- 1 root root 1483770 Aug 6 2008 vmlinuz-2.6.9-78.0.1.ELsmp
-rw-r--r-- 1 root root 1483793 May 1 2009 vmlinuz-2.6.9-78.0.22.ELsmp
-rw-r--r-- 1 root root 1483860 Oct 8 2008 vmlinuz-2.6.9-78.0.5.ELsmp
-rw-r--r-- 1 root root 1483918 Nov 20 2008 vmlinuz-2.6.9-78.0.8.ELsmp
-rw-r--r-- 1 root root 1472648 Sep 15 20:25 vmlinuz-2.6.9-89.0.11.ELsmp
-rw-r--r-- 1 root root 1536207 Oct 24 06:22 vmlinuz-2.6.9-89.0.15.EL
-rw-r--r-- 1 root root 1472454 Oct 24 06:34 vmlinuz-2.6.9-89.0.15.ELsmp
-rw-r--r-- 1 root root 1536244 Nov 4 07:28 vmlinuz-2.6.9-89.0.16.EL
-rw-r--r-- 1 root root 1472608 Nov 4 07:43 vmlinuz-2.6.9-89.0.16.ELsmp
-rw-r--r-- 1 root root 1472585 Dec 16 04:43 vmlinuz-2.6.9-89.0.18.ELsmp
-rw-r--r-- 1 root root 1472446 Aug 14 23:27 vmlinuz-2.6.9-89.0.7.ELsmp
-rw-r--r-- 1 root root 1472450 Aug 24 21:03 vmlinuz-2.6.9-89.0.9.ELsmp

●1世代前以外に明らかに古いカーネルが見受けられる
SMPは、package-cleanupでは消えないのか?ということでyumでremoveしてみました。

# yum remove kernel-*-2.6.9-55*
Loading "fastestmirror" plugin
Setting up Remove Process
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package kernel-hugemem-devel.i686 0:2.6.9-55.0.6.EL set to be erased
---> Package kernel-hugemem-devel.i686 0:2.6.9-55.0.9.EL set to be erased
---> Package kernel-hugemem-devel.i686 0:2.6.9-55.0.2.EL set to be erased
---> Package kernel-smp.i686 0:2.6.9-55.0.12.EL set to be erased
---> Package kernel-smp-devel.i686 0:2.6.9-55.0.2.EL set to be erased
---> Package kernel-smp-devel.i686 0:2.6.9-55.0.6.EL set to be erased
---> Package kernel-smp-devel.i686 0:2.6.9-55.0.9.EL set to be erased
---> Package kernel-hugemem-devel.i686 0:2.6.9-55.0.12.EL set to be erased
---> Package kernel-smp.i686 0:2.6.9-55.0.2.EL set to be erased
---> Package kernel-smp.i686 0:2.6.9-55.0.9.EL set to be erased
---> Package kernel-smp.i686 0:2.6.9-55.0.6.EL set to be erased
---> Package kernel-smp-devel.i686 0:2.6.9-55.0.12.EL set to be erased
---> Package kernel-smp.i686 0:2.6.9-55.EL set to be erased
--> Running transaction check

Dependencies Resolved

=============================================================================
Package Arch Version Repository Size
=============================================================================
Removing:
kernel-hugemem-devel i686 2.6.9-55.0.6.EL installed 12 M
kernel-hugemem-devel i686 2.6.9-55.0.9.EL installed 12 M
kernel-hugemem-devel i686 2.6.9-55.0.2.EL installed 12 M
kernel-hugemem-devel i686 2.6.9-55.0.12.EL installed 12 M
kernel-smp i686 2.6.9-55.0.12.EL installed 29 M
kernel-smp i686 2.6.9-55.0.2.EL installed 29 M
kernel-smp i686 2.6.9-55.0.9.EL installed 29 M
kernel-smp i686 2.6.9-55.0.6.EL installed 29 M
kernel-smp i686 2.6.9-55.EL installed 29 M
kernel-smp-devel i686 2.6.9-55.0.2.EL installed 12 M
kernel-smp-devel i686 2.6.9-55.0.6.EL installed 12 M
kernel-smp-devel i686 2.6.9-55.0.9.EL installed 12 M
kernel-smp-devel i686 2.6.9-55.0.12.EL installed 12 M

Transaction Summary
=============================================================================
Install 0 Package(s)
Update 0 Package(s)
Remove 13 Package(s)
Total download size: 0
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
Removing : kernel-smp-devel ####################### [ 1/13]
Removing : kernel-hugemem-devel ####################### [ 2/13]
Removing : kernel-hugemem-devel ####################### [ 3/13]
Removing : kernel-hugemem-devel ####################### [ 4/13]
Removing : kernel-smp ####################### [ 5/13]
Removing : kernel-smp-devel ####################### [ 6/13]
Removing : kernel-smp-devel ####################### [ 7/13]
Removing : kernel-hugemem-devel ####################### [ 8/13]
Removing : kernel-smp ####################### [ 9/13]
Removing : kernel-smp ####################### [10/13]
Removing : kernel-smp ####################### [11/13]
Removing : kernel-smp-devel ####################### [12/13]
Removing : kernel-smp ####################### [13/13]

Removed: kernel-hugemem-devel.i686 0:2.6.9-55.0.6.EL kernel-hugemem-devel.i686 0:2.6.9-55.0.9.EL kernel-hugemem-devel.i686 0:2.6.9-55.0.2.EL kernel-hugemem-devel.i686 0:2.6.9-55.0.12.EL kernel-smp.i686 0:2.6.9-55.0.12.EL kernel-smp.i686 0:2.6.9-55.0.2.EL kernel-smp.i686 0:2.6.9-55.0.9.EL kernel-smp.i686 0:2.6.9-55.0.6.EL kernel-smp.i686 0:2.6.9-55.EL kernel-smp-devel.i686 0:2.6.9-55.0.2.EL kernel-smp-devel.i686 0:2.6.9-55.0.6.EL kernel-smp-devel.i686 0:2.6.9-55.0.9.EL kernel-smp-devel.i686 0:2.6.9-55.0.12.EL
Complete!

見事に消えたのでyumでupdateを実行してみた。

# yum update
Loading "fastestmirror" plugin

Setting up Update Process
Setting up repositories

update   100% =========================  951 B   00:00
base     100% =========================  1.1 kB  00:00
addons    100% =========================  951 B  00:00
extras     100% ========================= 1.1 kB 00:00
Determining fastest mirrors
Reading repository metadata in from local files
Resolving Dependencies
--> Populating transaction set with selected packages. Please wait.
---> Package kernel.i686 0:2.6.9-89.0.18.EL set to be installed
--> Running transaction check
 
Dependencies Resolved
 
=============================================================================
Package Arch Version Repository Size
=============================================================================
Installing:
kernel i686 2.6.9-89.0.18.EL update 13 M
 
Transaction Summary
=============================================================================
Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)
Total download size: 13 M
Is this ok [y/N]: y
Downloading Packages:
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
 Installing: kernel ######################### [1/1]

Installed: kernel.i686 0:2.6.9-89.0.18.EL
Complete!

大丈夫なようです。これでいいのか?まっいっか。
 

0 件のコメント:

Google検索