RAID array creations fails
Hello Raid Experts
I am trying to create a raid array and I am getting the following error, Probably someone can help me out in this regard. sh-3.1# fdisk -l Disk /dev/sda: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 5 251 1984027+ fd Linux raid autodetect /dev/sda2 1 4 32098+ 83 Linux /dev/sda3 252 498 1984027+ 83 Linux /dev/sda4 499 57985 461760557+ f W95 Ext'd (LBA) /dev/sda5 499 57985 461760557 fd Linux raid autodetect Partition table entries are not in disk order Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 498 57985 461760742+ f W95 Ext'd (LBA) /dev/sdb5 498 57985 461760742 fd Linux raid autodetect Disk /dev/sdc: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdc1 498 57985 461760742+ f W95 Ext'd (LBA) /dev/sdc5 498 57985 461760742 fd Linux raid autodetect Disk /dev/sdd: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdd1 498 57985 461760742+ f W95 Ext'd (LBA) /dev/sdd5 498 11996 92351562+ 83 Linux /dev/sdd6 11996 16595 36940429 83 Linux /dev/sdd7 16595 34990 147761719+ 83 Linux /dev/sdd8 34991 57985 184702149 83 Linux When I try to create Raid array /dev/md1, I am getting following error. /sbin/mdadm --verbose --create --level=0 --raid-devices=3 /dev/md1 /dev/sda5 /dev/sdb5 /dev/sdc5 mdadm: chunk size defaults to 512K mdadm: super1.x cannot open /dev/sda5: Device or resource busy mdadm: ddf: Cannot use /dev/sda5: Device or resource busy mdadm: Cannot use /dev/sda5: It is busy mdadm: device /dev/sda5 not suitable for any style of array Any pointers in this regard is appreciated ... |
have you umounted /dev/sda5?
|
Yes, I tried both options - by mounting and then unmounting also ...
Made sure that no one is using this device by checking using lsof |
may be this link would be useful
http://www.righteoushack.net/?p=197 |
Sorry to bump an ancient thread, but I came across this in searching and though I'd add some keywords for future people searching.
Longbow0, the link you posted was dead on. That was the problem. Short version: For some reason, the package "dmraid" causes certain block devices (which may or may not be or have been used in a fakeraid) to not be able to have their superblock wiped or be added to a new mdadm raid device. Here's what I saw: Code:
fdisk -l | grep GB | grep 3000 (Show my 3TB disks) Throw some blocks on them with "dd" and they reveal themselves as /dev/sde and /dev/sdl. Code:
[root@stack ~]# mdadm --zero-superblock /dev/sde Code:
[root@stack ~]# mdadm --create /dev/md0 --level=6 --raid-devices=15 /dev/sd{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o} Code:
[root@stack ~]# dd if=/dev/zero bs=1024 count=10M conv=fsync of=/dev/sde Code:
[root@stack ~]# yum erase dmraid Works like a champ! Code:
[root@stack ~]# mdadm --create /dev/md0 --level=6 --raid-devices=15 /dev/sd{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o} |
All times are GMT -5. The time now is 04:18 AM. |