software raid question 2
vu pham
vu at sivell.com
Fri Aug 8 11:10:15 PDT 2008
Raid Gurus:
I get into this problem twice, solved one this mornining, but still
playing around with this one.
When I create an raid device, mdadm complains one or more partitions
"device or resource busy".
[root at wks-178 ~]# mdadm --create /dev/md0 --level=5 --raid-devices=3
/dev/sdb1 /dev/sdc1 /dev/sdd1
mdadm: Cannot open /dev/sdb1: Device or resource busy
mdadm: /dev/sdc1 appears to contain an ext2fs file system
size=104320K mtime=Fri Aug 8 08:26:43 2008
mdadm: /dev/sdd1 appears to contain an ext2fs file system
size=104320K mtime=Fri Aug 8 08:26:43 2008
mdadm: create aborted
This morning, after googling, I used "mdadm --stop /dev/md0 ( or
/dev/md1, md2 ) to fix it. And I could be able to create md0, md1, md2.
Now I clear all the partitions and do again but it fails.
Below is my fdisk -l.
/dev/sdb, /dev/sdc and /dev/sdd are used for software raid.
/dev/sda just for booting and loading Linux.
Thanks,
Vu
[root at wks-178 ~]# fdisk -l
Disk /dev/sda: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 275 17769 140528587+ 83 Linux
/dev/sda3 14 274 2096482+ 82 Linux swap / Solaris
Partition table entries are not in disk order
Disk /dev/sdb: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdb1 1 4863 39062016 fd Linux raid
autodetect
/dev/sdb2 4864 12158 58597087+ fd Linux raid
autodetect
/dev/sdb3 12159 17770 45078273 fd Linux raid
autodetect
Disk /dev/sdc: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdc1 1 4863 39062016 fd Linux raid
autodetect
/dev/sdc2 4864 12158 58597087+ fd Linux raid
autodetect
/dev/sdc3 12159 17770 45078273 fd Linux raid
autodetect
Disk /dev/sdd: 146.1 GB, 146163105792 bytes
255 heads, 63 sectors/track, 17769 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sdd1 1 4863 39062016 fd Linux raid
autodetect
/dev/sdd2 4864 12158 58597087+ fd Linux raid
autodetect
/dev/sdd3 12159 17770 45078273 fd Linux raid
autodetect
More information about the Linux-users
mailing list