I've connected a few SCSI-disks to one of my SUN ELC's, running
Linux/SPARC 2.0.35. I've setup an /etc/mdtab with mdcreate so that;

| /dev/md0        raid0,4k,0,1c2518a6     /dev/sdb3 /dev/sdc3

but whenever I run mdadd -a I get the following errors;

| beldaran:~# mdadd -a
| /dev/sdb3: Device or resource busy
| /dev/sdc3: Device or resource busy

Though this is certainly not the case since I can mount and unmount
/dev/sdb3 without problems;

| beldaran:~# mount /dev/sdb3 /mnt
| beldaran:~# umount /dev/sdb3
| beldaran:~#

A strace on the process gives the following;

| open("/dev/md0", O_RDONLY)              = 6
| stat("/dev/sdb3", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 19), ...}) = 0
| ioctl(6, REGISTER_DEV, 0)               = -1 EBUSY (Device or resource busy)
| write(2, "/dev/sdb3: Device or resource bu"..., 35/dev/sdb3: Device or resource 
|busy) = 35
| stat("/dev/sdc3", {st_mode=S_IFBLK|0660, st_rdev=makedev(8, 35), ...}) = 0
| ioctl(6, REGISTER_DEV, 0)               = -1 EBUSY (Device or resource busy)
| write(2, "/dev/sdc3: Device or resource bu"..., 35/dev/sdc3: Device or resource 
|busy) = 35

The /dev/md0 device is as follows;

| brw-rw----   1 root     disk       9,   0 May 24 19:39 /dev/md0

And /proc/mdstat gives;

| Personalities : [1 linear] [2 raid0]
| read_ahead not set
| md0 : inactive
| md1 : inactive
| md2 : inactive
| md3 : inactive


Any help with this problem would be greatly appreciated. Thanks,

Jonas

Reply via email to