mdadm RAID creation - Cannot open device

fibroptikl

Supreme [H]ardness
Joined
Mar 9, 2000
Messages
7,339
I'm trying to create a RAID0 using 3 RAID6's that are created on 3Ware 9650SE-8LPML in Fedora 8 x64.

I go to create the /dev/md0 using the 3 RAID6's and I use the following command:

mdadm --create /dev/md0 --level=0 --raid-devices=3 /dev/sdc /dev/sdd /dev/sde

But get the following output:

mdadm: Cannot open /dev/sdd: Device or resource busy
mdadm: Cannot open /dev/sde: Device or resource busy
mdadm: create aborted
[root@localhost ~]#

What's going on? I've ran 'lsof | grep sdd' and 'lsof | grep sde' and nothing has hold of it.

I tried to erase the superblock on it using:

mdadm --zero-superblock /dev/sdd (or /dev/sde) and I get:

mdadm: Couldn't open /dev/sdd for write - not zeroing

What's going on here? I used to be able to do this with 2 devices fine, except now when I try 3 I get the above errors.
 
You don't have them accidentally mounted do you?

Alternatively, do they each work correctly if you format them individually and mount them individually?
 
I have not done anything to the disks other than the modprobe raid0 and run the mdadm--create command.

I checked /etc/fstab and nothing is mounted.

I created a folder (/storage3) and did 'mount /dev/sdd /storage3' and it gave me:

mount: /dev/sdd already mounted or /storage3 busy.
 
Code:
scsi8 : 3ware 9000 Storage Controller
3w-9xxx: scsi8: Found a 3ware 9000 Storage Controller at 0xf79ff000, IRQ: 16.
3w-9xxx: scsi8: Firmware FE9X 4.06.00.004, BIOS BE9X 4.05.00.015, Ports: 8.
scsi 8:0:0:0: Direct-Access     AMCC     9650SE-8LP DISK  4.06 PQ: 0 ANSI: 5
pata_it8213 0000:01:06.0: version 0.0.3
ACPI: PCI Interrupt 0000:01:06.0[A] -> GSI 21 (level, low) -> IRQ 21
scsi9 : pata_it8213
scsi10 : pata_it8213
ata7: PATA max UDMA/66 cmd 0x0000000000019c00 ctl 0x0000000000019882 bmdma 0x0000000000019400 irq 21
ata8: DUMMY
sd 8:0:0:0: [sde] Very big device. Trying to use READ CAPACITY(16).
sd 8:0:0:0: [sde] 11718623232 512-byte hardware sectors (5999935 MB)
sd 8:0:0:0: [sde] Write Protect is off
sd 8:0:0:0: [sde] Mode Sense: 23 00 00 00
sd 8:0:0:0: [sde] Write cache: enabled, read cache: disabled, doesn't support DPO or FUA
sd 8:0:0:0: [sde] Very big device. Trying to use READ CAPACITY(16).
sd 8:0:0:0: [sde] 11718623232 512-byte hardware sectors (5999935 MB)
sd 8:0:0:0: [sde] Write Protect is off
sd 8:0:0:0: [sde] Mode Sense: 23 00 00 00
sd 8:0:0:0: [sde] Write cache: enabled, read cache: disabled, doesn't support DPO or FUA

That's what shows up in dmesg for all 3 of the 3ware cards. It's either scsi6 or scsi7 or scsi8 depending on the card. Otherwise nothing out of the ordinary.
 
Ok, so I used GParted, made them all gpt partition types and I went back into FEdora 8 to create them using the same command as above but I specified the partition.

Code:
mdadm --create /dev/md0 --level=0 --raid-devices=3 /dev/sdc1 /dev/sdd1 /dev/sde1

That gave the following error:
Code:
root@localhost dev]# mdadm --create /dev/md0 --level=0 --raid-devices=3 /dev/sdc1 /dev/sdd1 /dev/sde1
mdadm: Cannot open /dev/sdd1: No such device or address
mdadm: Cannot open /dev/sde1: No such device or address
mdadm: create aborted
[root@localhost dev]#

However the device permissions for sdc1 is different than sdd1 and sde1:

Code:
brw-r-----  1 root disk     8,  32 2009-03-04 21:05 sdc
brw-r-----  1 root disk     8,  33 2009-03-04 21:05 sdc1
brw-r-----  1 root disk     8,  48 2009-03-04 21:05 sdd
brwx------  1 root root     8,  49 2009-03-04 21:05 sdd1
brw-r-----  1 root disk     8,  64 2009-03-04 21:05 sde
brwx------  1 root root     8,  65 2009-03-04 21:05 sde1

I just can't remember how to find the octal # of sdc1 so I can apply it to sdd1 and sde1.
 
I have not done anything to the disks other than the modprobe raid0 and run the mdadm--create command.

I checked /etc/fstab and nothing is mounted.

I created a folder (/storage3) and did 'mount /dev/sdd /storage3' and it gave me:

mount: /dev/sdd already mounted or /storage3 busy.

This seems kinda obvious so you probably already checked, but I dunno if fedora auto mounts things or not.. It's still possible to have the drive mounted but not be in fstab. Look in mtab instead.
 
Back
Top