Quantcast
Channel: openSUSE Forums
Viewing all articles
Browse latest Browse all 40713

How do I delete a RAID volume that was created with mdadm?

$
0
0
I created a RAID volume with mdadm on a debian system with this command:
Code:

mdadm --create --verbose /dev/md0 --level-raid6 --raid-devices=4 /dev/sdb /dev/sdc /dev/sdd /dev/sde
I am trying to delete the volume and remove the RAID data from the drives and .config file.

I've tried several things already:
Code:

mdadm --stop /dev/md0
This stopped the array, removed /dev/md0 but left the 4 drives with data so I can't use them to create another RAID volume.
Other things I've tried:
Code:

# mdadm --query /dev/sdb
/dev/sdb: is not an md array
/dev/sdb: device 0 in 4 device unknown raid6 array.  Use mdadm --examine for more detail.

# mdadm --examine /dev/sdb
/dev/sdb:
          Magic : a92b4efc
        Version : 1.2
    Feature Map : 0x0
    Array UUID : a40ee4c0:55d10aca:4e3bd4e0:2787cded
          Name : sp:0  (local to host sp)
  Creation Time : Mon Dec 30 08:06:16 2019
    Raid Level : raid6
  Raid Devices : 4
 Avail Dev Size : 287275936 (136.98 GiB 147.09 GB)
    Array Size : 574550016 (273.97 GiB 294.17 GB)
  Used Dev Size : 287275008 (136.98 GiB 147.08 GB)
    Data Offset : 2048 sectors
  Super Offset : 8 sectors
          State : clean
    Device UUID : eb2493a3:5cffe1fd:a8cf01d8:0065d7ba
    Update Time : Mon Dec 30 09:50:38 2019
      Checksum : 459a5384 - correct
        Events : 19
        Layout : left-symmetric
    Chunk Size : 512K
  Device Role : Active device 0
  Array State : AAAA ('A' == active, '.' == missing)

# mdadm --zero-superblock /dev/sdb
mdadm: Couldn't open /dev/sdb for write - not zeroing

# mdadm -w /dev/sdb
mdadm: /dev/sdb does not appear to be an md device

# mdadm --assemble --run md0:
mdadm: md0: not identified in config file.

# mdadm --assemble --scan
mdadm: No arrays found in config file or automatically

# ./r6_12d_b-m.sh (BASH file that creates a RAID 6 volume with 12 drives)
mdadm: layout defaults to left-symmetric
mdadm: chunk size defaults to 512K
mdadm: layout defaults to left-symmetric
mdadm: layout defaults to left-symmetric
mdadm: super1.x cannot open /dev/sdb: Device or resource busy
mdadm: failed container membership check
mdadm: device /dev/sdb not suitable for any style of array

I just can't seem to get there from here.

>:(

Help is truly appreciated!

Viewing all articles
Browse latest Browse all 40713

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>