mdadm: Device or resource busy
I'm trying to create a mirror from /dev/sda8 and /dev/sdb8 on /dev/md8.
I managed to create a half a mirror, but can't add the other half.
-------------------------------------------------------------------------------------------------------
root@zzz:~# cat /proc/mdstat
Personalities : [linear] [multipath] [raid0] [raid1] [raid6] [raid5]
[raid4] [raid10]
md8 : active raid1 sda8[0]
55809088 blocks super 1.2 [2/1] [U_]
unused devices: <none>
-------------------------------------------------------------------------------------------------------
root@zzz:~# fdisk -l /dev/sda
Disk /dev/sda (Sun disk label): 255 heads, 63 sectors, 8924 cylinders
Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sda1 0 12 96390 1 Boot
/dev/sda2 12 46 273105 83 Linux native
/dev/sda3 0 8924 71682030 5 Whole disk
/dev/sda4 46 654 4883760 83 Linux native
/dev/sda5 654 1019 2931862+ 83 Linux native
/dev/sda6 1019 1923 7261380 82 Linux swap
/dev/sda7 1923 1972 393592+ 83 Linux native
/dev/sda8 1972 8924 55841940 83 Linux native
-------------------------------------------------------------------------------------------------------
root@zzz:~# fdisk -l /dev/sdb
Disk /dev/sdb (Sun disk label): 255 heads, 63 sectors, 8924 cylinders
Units = cylinders of 16065 * 512 bytes
Device Flag Start End Blocks Id System
/dev/sdb1 0 12 96390 1 Boot
/dev/sdb2 12 46 273105 83 Linux native
/dev/sdb3 0 8924 71682030 5 Whole disk
/dev/sdb4 46 654 4883760 83 Linux native
/dev/sdb5 654 1019 2931862+ 83 Linux native
/dev/sdb6 1019 1923 7261380 82 Linux swap
/dev/sdb7 1923 1972 393592+ 83 Linux native
/dev/sdb8 1972 8924 55841940 83 Linux native
-------------------------------------------------------------------------------------------------------
root@zzz:~# mdadm --add /dev/md8 /dev/sdb8
mdadm: Cannot open /dev/sdb8: Device or resource busy
The suggesting from the mdadm wikipedia article suggests zeroing out
the superblock.
That doesn't work.
root@zzz:~# mdadm --misc --zero-superblock /dev/sdb8
mdadm: Couldn't open /dev/sdb8 for write - not zeroing
Any ideas?
--myron
=================================
Myron Kowalski
MoCoSIN Network/Systems Administrator
Moravian College
myron@moravian.edu
(610) 861-1441
Reply to: