cannot stop RAID1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mdadm (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
Bug Description
Binary package hint: mdadm
Ubuntu 8.04.2, i386, server
Cannot stop RAID1 device. I do a disk cleanup and I want to replace RAID1 device with RAID10 device. I cannot stop RAID1 device. /dev/md1 was used as a swap, but swap is "off" now.
# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5] [raid4] [raid10]
md2 : active raid5 sda5[0] sdd5[3] sdc5[2] sdb5[1]
879100416 blocks level 5, 64k chunk, algorithm 2 [4/4] [UUUU]
[
md1 : active raid1 sdb3[1]
979840 blocks [2/1] [_U]
md0 : active raid1 sda1[0] sdb1[1]
8787456 blocks [2/2] [UU]
unused devices: <none>
# free
total used free shared buffers cached
Mem: 515436 131576 383860 0 8632 69280
-/+ buffers/cache: 53664 461772
Swap: 0 0 0
# mdadm --stop /dev/md1
mdadm: fail to stop array /dev/md1: Device or resource busy
# mdadm /dev/md1 --fail /dev/sdb3
mdadm: set /dev/sdb3 faulty in /dev/md1
# mdadm /dev/md1 --remove /dev/sdb3
mdadm: hot remove failed for /dev/sdb3: Device or resource busy
# mdadm --stop -v /dev/md1
mdadm: fail to stop array /dev/md1: Device or resource busy
My observation is that most documentation focus on creation of new RAID devices but there is only little information about destruction of RAID devices (that is needed sometimes...). I want to delete /dev/md1 and create new /dev/md1 that will be RAID10 type. Should be an easy task but I met an issue I cannot overcome...
Changed in mdadm (Ubuntu): | |
status: | New → Confirmed |
# uname -srvmo
Linux 2.6.24-23-server #1 SMP Wed Apr 1 22:22:14 UTC 2009 i686 GNU/Linux