CentOS Bug Tracker
Mantis Bug Tracker

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0005921administrationoperationspublic2012-08-29 02:422012-08-29 02:42
Reporterchenyungwang 
PrioritynormalSeveritymajorReproducibilitysometimes
StatusnewResolutionopen 
PlatformSupermicro ComputerOSCentOS 64 bitsOS Version6.0
Product Version 
Target VersionFixed in Version 
Summary0005921: RE: NOT ABLE TO BRAEK/ DELETE SOFTWARE RAID
Description
 I had tried the step provide from the following wide site but still never work.

  http://tcpdump.com/kb/os/linux/removing-raid-devices.html [^]

FYI -

a) CentOS version 6.0
b) Kernel version -
   Linux 2.6.32-71.el6.x86_64 0000001 SMP Fri May 20 03:51:51 BST 2011 x86_64 x86_64 x86_64 GNU/Linux
c) The error message always showed "resource busy"
Steps To Reproducelogin as: root
root@192.168.24.236's password:
Last login: Wed Aug 29 05:06:56 2012

[root@LINUX-TEST ~]# df -al
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 10077992 2041976 7524072 22% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
tmpfs 1961348 0 1961348 0% /dev/shm
/dev/md0 2015812 59588 1853828 4% /boot
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
[root@LINUX-TEST ~]# umont unt ;/dev/md10
[root@LINUX-TEST ~]# df -al
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/md1 10077992 2041976 7524072 22% /
proc 0 0 0 - /proc
sysfs 0 0 0 - /sys
devpts 0 0 0 - /dev/pts
tmpfs 1961348 0 1961348 0% /dev/shm
none 0 0 0 - /proc/sys/fs/binfmt_misc
sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
[root@LINUX-TEST ~]# admdadm --manage /deev/md0 stop /dev/md1
mdadm: failed to stop array /dev/md1: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?
[root@LINUX-TEST ~]# df -kh
Filesystem Size Used Avail Use% Mounted on
/dev/md1 9.7G 2.0G 7.2G 22% /
tmpfs 1.9G 0 1.9G 0% /dev/shm
[root@LINUX-TEST ~]# mdadm =deta-detail d/dev//md0
mdadm: -d does not set the mode, and so cannot be the first option.
[root@LINUX-TEST ~]# mdadm --detail /dev/md0
/dev/md0:
        Version : 1.0
  Creation Time : Thu Aug 23 08:41:33 2012
     Raid Level : raid1
     Array Size : 2047988 (2000.32 MiB 2097.14 MB)
  Used Dev Size : 2047988 (2000.32 MiB 2097.14 MB)
   Raid Devices : 2
  Total Devices : 1
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Aug 29 05:21:10 2012
          State : active, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           Name : localhost.localdomain:0
           UUID : 146195f7:61241935:1c6a5fe4:4143fc99
         Events : 80

    Number Major Minor RaidDevice State
       0 8 1 0 active sync /dev/sda1
       1 0 0 1 removed
[root@LINUX-TEST ~]# mdadm --detail /dev/md01
/dev/md1:
        Version : 1.1
  Creation Time : Thu Aug 23 08:41:37 2012
     Raid Level : raid1
     Array Size : 10238908 (9.76 GiB 10.48 GB)
  Used Dev Size : 10238908 (9.76 GiB 10.48 GB)
   Raid Devices : 2
  Total Devices : 1
    Persistence : Superblock is persistent

  Intent Bitmap : Internal

    Update Time : Wed Aug 29 05:24:23 2012
          State : active, degraded
 Active Devices : 1
Working Devices : 1
 Failed Devices : 0
  Spare Devices : 0

           Name : localhost.localdomain:1
           UUID : a29c3004:6bfa96e4:3ea06ad8:fd815178
         Events : 34431

    Number Major Minor RaidDevice State
       0 8 2 0 active sync /dev/sda2
       1 0 0 1 removed
[root@LINUX-TEST ~]# mdadm -S /dev/md1
mdadm: failed to stop array /dev/md1: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?
[root@LINUX-TEST ~]# mdadm -bash
[root@LINUX-TEST ~]# exitifconfig -ashutdown -h nowmync\umount .d/dev/md0
umount: /dev/md0: not mounted
[root@LINUX-TEST ~]# mdasdm -fail /ddev/ev/md0
[root@LINUX-TEST ~]# mdadm -S /dev/md1
mdadm: failed to stop array /dev/md1: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?
[root@LINUX-TEST ~]# mdadm -S /dev/md1f /dev/md0umount1
umount: /: device is busy.
        (In some cases useful info about processes that use
         the device is found by lsof(8) or fuser(1))
[root@LINUX-TEST ~]# umount /dev/md1mdadm -Sf /dev/md01
[root@LINUX-TEST ~]# mdadm -f /dev/md1umountmdadm -S
mdadm: failed to stop array /dev/md1: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?
[root@LINUX-TEST ~]# ps -Al
F S UID PID PPID C PRI NI ADDR SZ WCHAN TTY TIME CMD
4 S 0 1 0 0 80 0 - 4811 poll_s ? 00:00:00 init
1 S 0 2 0 0 80 0 - 0 kthrea ? 00:00:00 kthreadd
1 S 0 3 2 0 -40 - - 0 migrat ? 00:00:00 migration/0
1 S 0 4 2 0 80 0 - 0 ksofti ? 00:00:00 ksoftirqd/0
5 S 0 5 2 0 -40 - - 0 watchd ? 00:00:00 watchdog/0
1 S 0 6 2 0 -40 - - 0 migrat ? 00:00:00 migration/1
1 S 0 7 2 0 80 0 - 0 ksofti ? 00:00:00 ksoftirqd/1
5 S 0 8 2 0 -40 - - 0 watchd ? 00:00:00 watchdog/1
1 S 0 9 2 0 80 0 - 0 worker ? 00:00:00 events/0
1 S 0 10 2 0 80 0 - 0 worker ? 00:00:00 events/1
1 S 0 11 2 0 80 0 - 0 worker ? 00:00:00 cpuset
1 S 0 12 2 0 80 0 - 0 worker ? 00:00:00 khelper
1 S 0 13 2 0 80 0 - 0 worker ? 00:00:00 netns
1 S 0 14 2 0 80 0 - 0 async_ ? 00:00:00 async/mgr
1 S 0 15 2 0 80 0 - 0 worker ? 00:00:00 pm
1 S 0 16 2 0 80 0 - 0 bdi_sy ? 00:00:00 sync_supers
1 S 0 17 2 0 80 0 - 0 bdi_fo ? 00:00:00 bdi-default
1 S 0 18 2 0 80 0 - 0 worker ? 00:00:00 kintegrityd/0
1 S 0 19 2 0 80 0 - 0 worker ? 00:00:00 kintegrityd/1
1 S 0 20 2 0 80 0 - 0 worker ? 00:00:00 kblockd/0
1 S 0 21 2 0 80 0 - 0 worker ? 00:00:00 kblockd/1
1 S 0 22 2 0 80 0 - 0 worker ? 00:00:00 kacpid
1 S 0 23 2 0 80 0 - 0 worker ? 00:00:00 kacpi_notify
1 S 0 24 2 0 80 0 - 0 worker ? 00:00:00 kacpi_hotplug
1 S 0 25 2 0 80 0 - 0 worker ? 00:00:00 ata/0
1 S 0 26 2 0 80 0 - 0 worker ? 00:00:00 ata/1
1 S 0 27 2 0 80 0 - 0 worker ? 00:00:00 ata_aux
1 S 0 28 2 0 80 0 - 0 worker ? 00:00:00 ksuspend_usbd
5 S 0 29 2 0 80 0 - 0 hub_th ? 00:00:00 khubd
5 S 0 30 2 0 80 0 - 0 serio_ ? 00:00:00 kseriod
1 S 0 33 2 0 80 0 - 0 watchd ? 00:00:00 khungtaskd
1 S 0 34 2 0 80 0 - 0 kswapd ? 00:00:00 kswapd0
1 S 0 35 2 0 85 5 - 0 ksm_sc ? 00:00:00 ksmd
1 S 0 36 2 0 99 19 - 0 khugep ? 00:00:00 khugepaged
1 S 0 37 2 0 80 0 - 0 worker ? 00:00:00 aio/0
1 S 0 38 2 0 80 0 - 0 worker ? 00:00:00 aio/1
1 S 0 39 2 0 80 0 - 0 worker ? 00:00:00 crypto/0
1 S 0 40 2 0 80 0 - 0 worker ? 00:00:00 crypto/1
1 S 0 46 2 0 80 0 - 0 worker ? 00:00:00 kpsmoused
1 S 0 47 2 0 80 0 - 0 worker ? 00:00:00 usbhid_resumer
1 S 0 76 2 0 80 0 - 0 worker ? 00:00:00 kstriped
1 S 0 263 2 0 80 0 - 0 scsi_e ? 00:00:00 scsi_eh_0
1 S 0 266 2 0 80 0 - 0 scsi_e ? 00:00:00 scsi_eh_1
1 S 0 272 2 0 80 0 - 0 scsi_e ? 00:00:00 scsi_eh_2
1 S 0 273 2 0 80 0 - 0 scsi_e ? 00:00:00 scsi_eh_3
1 S 0 404 2 0 80 0 - 0 md_thr ? 00:00:00 md0_raid1
1 S 0 425 2 0 80 0 - 0 md_thr ? 00:00:00 md1_raid1
1 S 0 432 2 0 80 0 - 0 md_thr ? 00:00:00 md2_raid1
1 S 0 467 2 0 80 0 - 0 kjourn ? 00:00:00 jbd2/md1-8
1 S 0 468 2 0 80 0 - 0 worker ? 00:00:00 ext4-dio-unwri
1 S 0 469 2 0 80 0 - 0 worker ? 00:00:00 ext4-dio-unwri
\5 S 0 558 1 0 76 -4 - 2813 poll_s ? 00:00:00 udevd
1 S 0 734 2 0 80 0 - 0 worker ? 00:00:00 edac-poller
1 S 0 900 2 0 80 0 - 0 bdi_wr ? 00:00:00 flush-9:1
1 S 0 965 2 0 80 0 - 0 kaudit ? 00:00:00 kauditd
5 S 0 995 558 0 78 -2 - 2812 poll_s ? 00:00:00 udevd
5 S 0 1010 558 0 78 -2 - 2812 poll_s ? 00:00:00 udevd
5 S 0 1213 1 0 76 -4 - 6884 epoll_ ? 00:00:00 auditd
5 S 0 1229 1 0 80 0 - 63730 poll_s ? 00:00:00 rsyslogd
5 S 32 1278 1 0 80 0 - 4718 poll_s ? 00:00:00 rpcbind
5 S 29 1296 1 0 80 0 - 5760 poll_s ? 00:00:00 rpc.statd
5 S 0 1308 1 0 80 0 - 1668 poll_s ? 00:00:00 mdadm
1 S 0 1337 2 0 80 0 - 0 worker ? 00:00:00 rpciod/0
1 S 0 1338 2 0 80 0 - 0 worker ? 00:00:00 rpciod/1
1 S 0 1345 1 0 80 0 - 7340 epoll_ ? 00:00:00 rpc.idmapd
5 S 81 1422 1 0 80 0 - 7915 poll_s ? 00:00:00 dbus-daemon
1 S 0 1448 1 0 80 0 - 997 poll_s ? 00:00:00 acpid
5 S 68 1457 1 0 80 0 - 6276 poll_s ? 00:00:00 hald
0 S 0 1458 1457 0 80 0 - 4505 poll_s ? 00:00:00 hald-runner
0 S 0 1486 1458 0 80 0 - 5034 poll_s ? 00:00:00 hald-addon-inp
4 S 68 1498 1458 0 80 0 - 4428 unix_s ? 00:00:00 hald-addon-acp
5 S 0 1523 1 0 80 0 - 96398 rt_sig ? 00:00:00 automount
5 S 0 1541 1 0 80 0 - 15939 poll_s ? 00:00:00 sshd
4 S 0 1617 1 0 80 0 - 15493 epoll_ ? 00:00:00 master
5 S 0 1626 1 0 80 0 - 64547 poll_s ? 00:00:00 abrtd
4 S 89 1627 1617 0 80 0 - 15513 epoll_ ? 00:00:00 pickup
4 S 89 1628 1617 0 80 0 - 15556 epoll_ ? 00:00:00 qmgr
1 S 0 1637 1 0 80 0 - 29268 hrtime ? 00:00:00 crond
5 S 0 1648 1 0 80 0 - 5328 hrtime ? 00:00:00 atd
4 S 0 1663 1 0 80 0 - 993 n_tty_ tty2 00:00:00 mingetty
4 S 0 1665 1 0 80 0 - 993 n_tty_ tty3 00:00:00 mingetty
4 S 0 1667 1 0 80 0 - 993 n_tty_ tty4 00:00:00 mingetty
4 S 0 1669 1 0 80 0 - 993 n_tty_ tty5 00:00:00 mingetty
4 S 0 1671 1 0 80 0 - 993 n_tty_ tty6 00:00:00 mingetty
4 S 0 1681 1 0 80 0 - 258395 poll_s ? 00:00:00 console-kit-da
4 S 0 1763 1 0 80 0 - 993 n_tty_ tty1 00:00:00 mingetty
4 S 0 1792 1541 0 80 0 - 24361 poll_s ? 00:00:00 sshd
4 S 0 1797 1792 0 80 0 - 27062 wait pts/0 00:00:00 bash
0 S 0 1838 1797 0 80 0 - 27062 wait pts/0 00:00:00 bash
4 R 0 1871 1838 0 80 0 - 26467 - pts/0 00:00:00 ps
[root@LINUX-TEST ~]# \exit
exit
[root@LINUX-TEST ~]# exit
logout
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
There are no notes attached to this issue.

- Issue History
Date Modified Username Field Change
2012-08-29 02:42 chenyungwang New Issue


Copyright © 2000 - 2011 MantisBT Group
Powered by Mantis Bugtracker