Remove Software RAID 1, Without Format.

In: Technical And Security Issues

5 Feb 2010
Hello,

I am trying to remove my RAID 1 Software in Linux CentOs 5.4 and got some issue hope somebody can help me.

When i try to stop the array i got the error:

Code:

# mdadm --stop /dev/md*
mdadm: fail to stop array /dev/md0: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?
mdadm: stopped /dev/md1
mdadm: fail to stop array /dev/md2: Device or resource busy
Perhaps a running process, mounted filesystem or active volume group?


So i tried to umount it first, but i could not.

Code:

# umount /dev/md0
umount: /dev/md0: not mounted


What should i do?

Thanks

Some more info:

Code:

# fdisk -l

Disk /dev/sda: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sda1              1        523    4200997  fd  Linux raid autodetect
/dev/sda2            524        785    2104515  fd  Linux raid autodetect
/dev/sda3            786      91201  726266520  fd  Linux raid autodetect

Disk /dev/sdb: 750.1 GB, 750156374016 bytes
255 heads, 63 sectors/track, 91201 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

  Device Boot      Start        End      Blocks  Id  System
/dev/sdb1              1        523    4200997  fd  Linux raid autodetect
/dev/sdb2            524        785    2104515  fd  Linux raid autodetect
/dev/sdb3            786      91201  726266520  fd  Linux raid autodetect

Disk /dev/md2: 743.6 GB, 743696826368 bytes
2 heads, 4 sectors/track, 181566608 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md2 doesn't contain a valid partition table

Disk /dev/md0: 4301 MB, 4301717504 bytes
2 heads, 4 sectors/track, 1050224 cylinders
Units = cylinders of 8 * 512 = 4096 bytes

Disk /dev/md0 doesn't contain a valid partition table


Code:

# cat /proc/mdstat
Personalities : [raid1] [raid10] [raid0] [raid6] [raid5] [raid4]
md0 : active raid1 sdb1[1] sda1[0]
      4200896 blocks [2/2] [UU]

md2 : active raid1 sdb3[1] sda3[0]
      726266432 blocks [2/2] [UU]

unused devices: <none>


For more information click here.

Comment Form