[Bug 1046860] Re: during kernel upgrade: rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy

Brian Murray brian at ubuntu.com
Mon Sep 10 20:02:32 UTC 2012


** Changed in: os-prober (Ubuntu)
   Importance: Undecided => Medium

** Tags added: precise

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to os-prober in Ubuntu.
https://bugs.launchpad.net/bugs/1046860

Title:
  during kernel upgrade: rmdir: failed to remove `/var/lib/os-
  prober/mount': Device or resource busy

Status in “os-prober” package in Ubuntu:
  New

Bug description:
  On an up-to-date precise system, with os-prober 1.51ubuntu3 (and a
  rather complex disk configuration, to be fair):

  #apt-get install --reinstall linux-image-3.2.0-30-generic-pae
  Reading package lists... Done
  Building dependency tree       
  Reading state information... Done
  The following packages were automatically installed and are no longer required:
    linux-headers-3.2.0-29-generic linux-headers-3.2.0-27 linux-headers-3.2.0-29 linux-headers-3.2.0-27-generic
  Use 'apt-get autoremove' to remove them.
  0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 0 not upgraded.
  Need to get 0 B/38.2 MB of archives.
  After this operation, 0 B of additional disk space will be used.
  (Reading database ... 133254 files and directories currently installed.)
  Preparing to replace linux-image-3.2.0-30-generic-pae 3.2.0-30.48 (using .../linux-image-3.2.0-30-generic-pae_3.2.0-30.48_i386.deb) ...
  Done.
  Unpacking replacement linux-image-3.2.0-30-generic-pae ...
  Examining /etc/kernel/postrm.d .
  run-parts: executing /etc/kernel/postrm.d/initramfs-tools 3.2.0-30-generic-pae /boot/vmlinuz-3.2.0-30-generic-pae
  run-parts: executing /etc/kernel/postrm.d/zz-update-grub 3.2.0-30-generic-pae /boot/vmlinuz-3.2.0-30-generic-pae
  Setting up linux-image-3.2.0-30-generic-pae (3.2.0-30.48) ...
  Running depmod.
  update-initramfs: deferring update (hook will be called later)
  Not updating initrd symbolic links since we are being updated/reinstalled 
  (3.2.0-30.48 was configured last, according to dpkg)
  Not updating image symbolic links since we are being updated/reinstalled 
  (3.2.0-30.48 was configured last, according to dpkg)
  Examining /etc/kernel/postinst.d.
  run-parts: executing /etc/kernel/postinst.d/initramfs-tools 3.2.0-30-generic-pae /boot/vmlinuz-3.2.0-30-generic-pae
  update-initramfs: Generating /boot/initrd.img-3.2.0-30-generic-pae
  run-parts: executing /etc/kernel/postinst.d/update-notifier 3.2.0-30-generic-pae /boot/vmlinuz-3.2.0-30-generic-pae
  run-parts: executing /etc/kernel/postinst.d/zz-update-grub 3.2.0-30-generic-pae /boot/vmlinuz-3.2.0-30-generic-pae
  Generating grub.cfg ...
  Found linux image: /boot/vmlinuz-3.2.0-30-generic-pae
  Found initrd image: /boot/initrd.img-3.2.0-30-generic-pae
  Found linux image: /boot/vmlinuz-3.2.0-29-generic-pae
  Found initrd image: /boot/initrd.img-3.2.0-29-generic-pae
  Found memtest86+ image: /memtest86+.bin
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  rmdir: failed to remove `/var/lib/os-prober/mount': Device or resource busy
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  grub-probe: error: unknown filesystem.
  done

  The relevant stuff from lvdisplay and mdstat:
  # lvdisplay -C
    LV                   VG        Attr   LSize  Origin          Snap%  Move Log Copy%  Convert
    backup-20110101      RADICCHIO owi-a- 30.00g                                               
    backup-20110201-2305 RADICCHIO swi-ao  3.45g backup-20110101  92.40                        
    backup-20110601      RADICCHIO swi-a-  6.21g backup-20110101  99.98                        
    backup-20110801-2305 RADICCHIO swi-a-  7.26g backup-20110101  92.55                        
    backup-20111201-2305 RADICCHIO swi-a- 10.36g backup-20110101  92.34                        
    backup-20120101-2305 RADICCHIO swi-a- 10.14g backup-20120514  92.62                        
    backup-20120301-2305 RADICCHIO swi-a- 15.02g backup-20120514  92.86                        
    backup-20120401-2305 RADICCHIO swi-a- 12.33g backup-20120514  92.51                        
    backup-20120501-2305 RADICCHIO swi-a-  9.85g backup-20120514  92.38                        
    backup-20120514      RADICCHIO owi-a- 30.00g                                               
    backup-20120601-2305 RADICCHIO swi-ao  3.24g backup-20120514  92.77                        
    backup-20120729-2305 RADICCHIO swi-a-  5.91g backup-20120514  92.10                        
    backup-20120806-2305 RADICCHIO swi-a-  6.13g backup-20120514  90.60                        
    backup-20120808-2305 RADICCHIO swi-a-  6.45g backup-20120514  88.73                        
    backup-20120809-2305 RADICCHIO swi-a-  6.45g backup-20120514  90.03                        
    backup-20120810-2305 RADICCHIO swi-a-  6.45g backup-20120514  91.88                        
    backup-20120820-1131 RADICCHIO swi-a-  7.10g backup-20120514  88.89                        
    backup-20120820-2305 RADICCHIO swi-a-  7.10g backup-20120514  89.69                        
    backup-20120821-2305 RADICCHIO swi-a-  7.10g backup-20120514  91.64                        
    backup-20120822-2305 RADICCHIO swi-a-  7.42g backup-20120514  89.07                        
    backup-20120823-2305 RADICCHIO swi-a-  7.42g backup-20120514  90.99                        
    backup-20120824-2305 RADICCHIO swi-a-  7.42g backup-20120514  92.83                        
    backup-20120825-2305 RADICCHIO swi-a-  7.74g backup-20120514  90.05                        
    backup-20120826      RADICCHIO owi-ao 30.00g                                               
    backup-20120826-2305 RADICCHIO swi-a-  3.55g backup-20120514  90.71                        
    backup-20120827-2305 RADICCHIO swi-a-  1.94g backup-20120826  90.51                        
    backup-20120828-2305 RADICCHIO swi-a-  2.26g backup-20120826  87.75                        
    backup-20120829-2305 RADICCHIO swi-a-  2.58g backup-20120826  81.50                        
    backup-20120830-2305 RADICCHIO swi-a-  2.58g backup-20120826  86.18                        
    backup-20120831-2305 RADICCHIO swi-a-  2.58g backup-20120826  90.13                        
    backup-20120901-2305 RADICCHIO swi-a-  2.91g backup-20120826  90.31                        
    backup-20120902-2305 RADICCHIO swi-a-  2.58g backup-20120826  89.37                        
    backup-20120903-2305 RADICCHIO swi-a-  2.91g backup-20120826  85.55                        
    backup-20120904-2305 RADICCHIO swi-a-  2.91g backup-20120826  88.53                        
    backup-20120905-2305 RADICCHIO swi-ao  3.23g backup-20120826  84.87                        
    srv                  RADICCHIO -wi-ao  2.50t                                               
    swap                 RADICCHIO -wi-ao 30.00g                                               
  # cat /proc/mdstat
  Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10] 
  md4 : active raid5 sdf1[7] sdk1[6] sdl1[5] sde1[2] sdc1[1]
        125822976 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/5] [UUUUU]
        
  md3 : active raid6 sdo2[12](S) sdf2[10] sdj2[8] sdk2[9] sdm2[13] sdc2[1] sdi2[11] sdh2[3] sde2[2]
        11532327936 blocks super 1.2 level 6, 512k chunk, algorithm 2 [8/8] [UUUUUUUU]
        
  md2 : active raid1 sdo1[5] sdn1[4] sdj1[6] sdh1[1]
        31456184 blocks super 1.2 [4/4] [UUUU]
        
  md5 : active raid6 sdl2[3] sdn2[4] sdd2[1] sdg2[2] sdb2[0]
        5766167040 blocks super 1.2 level 6, 512k chunk, algorithm 2 [5/5] [UUUUU]
        
  md6 : active raid5 sdm1[5] sdi1[3] sdg1[2] sdb1[0] sdd1[1]
        125822976 blocks super 1.2 level 5, 512k chunk, algorithm 2 [5/5] [UUUUU]
        
  unused devices: <none>

  what other info do you want?

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/os-prober/+bug/1046860/+subscriptions




More information about the foundations-bugs mailing list