Aller au contenu
Infogérance Linux Debian en France

Infogérance Linux Debian en France

Kogitae : Ingéniérie de l'hébergement Internet

  • Accueil
  • Parcours
  • Presse
  • Portfolio
  • Blog

Mdadm – How can i destroy or delete an array : Memory, Storage, Backup and Filesystems

  • Accueil » Blog » Mdadm – How can i destroy or delete an array : Memory, Storage, Backup and Filesystems
DansDebian, pense-bête

Mdadm – How can i destroy or delete an array : Memory, Storage, Backup and Filesystems

So, you created an array and you messed up something? Now you would like to delete it?

Please note: all data will be lost with this operation!

1. Stop the array

Code: Select all

# mdadm -S /dev/md0

2. Remove the disks from the array (in my example md0 is a raid5 array with 3 disks)

Code: Select all

# mdadm /dev/md0 -r /dev/sda

# mdadm /dev/md0 -r /dev/sdb

# mdadm /dev/md0 -r /dev/sdc

3. Destroy the array configuration from each disk (this will destroy all the data from your disks)

Code: Select all

# dd if=/dev/zero of=/dev/sda bs=1M count=1024

# dd if=/dev/zero of=/dev/sdb bs=1M count=1024

# dd if=/dev/zero of=/dev/sdc bs=1M count=1024

4. Remove the mdadm.conf file (if any)

Code: Select all

# rm /etc/mdadm/mdadm.conf

Now you can try to create a new array as you wish or as you were suposed to…

viaMdadm – How can i destroy or delete an array : Memory, Storage, Backup and Filesystems.

actionscrip-remove-array-from-memory comment-configurer-raid-sur-serveur-dell-r710 create-array-will-destroy-all-data dd-devzero-erase debian-mdadm-check-md0 destroy destroy-mdadm-array kogitae linux-mdadm-suppress-md0 mdadm mdadm-add mdadm-debian mdadm-delete mdadm-delete-array mdadm-delete-raid5 mdadm-destroy mdadm-destroy-an-array mdadm-destroy-array mdadm-detail-devmd0 www-kogitae-fr

Étiquettes

administrateur-systeme-freelance (9) amazon (3) apache (14) asterisk (9) auth (3) bash (6) blog-administrateur-systeme (14) blog-administration-systeme (4) collectd (5) cpu (3) debian (30) dovecot (4) duplicate (3) f (6) freelance-asterisk (3) google (3) infogerance-linux (5) infogérance (4) ipv6 (7) kernel (4) kogitae (30) kogitae-com (3) kogitae-fr (6) lamp-or-linux-or-developpement-web-and-apache-or-php-or-mysql-or-adobe-or-eclipse-or-zend-or-mozilla-or-firefox (17) lenny (4) lighttpd (5) limit (4) linux (26) mail (7) mdadm (6) mysql (14) openvz (9) optimiser (4) php (5) postfix (11) privvmpages-openvz (3) pxe (3) raid (3) SEO (5) ssh (8) ssl (3) test (3) voip (4) wordpress (6) www-kogitae-fr (7)