Ivorde Unix/Linux/Database/Web/Mail Forum

View unanswered posts
View active topics
It is currently Wed Feb 08, 2012 12:09 am


Discussions on RAM, DRAM, shared memory, NAS, SAN, RAID, backups, SCSI, IDE, UFS, UFS2, JFS, JFS2, EXT2, EXT3

Bookmark this article:

Author Message
designeru
Post  Post subject: Mdadm - How can i destroy or delete an array  |  Posted: Tue May 18, 2010 4:52 pm

Joined: Thu Dec 31, 2009 11:44 pm
Posts: 10

Offline
Save on Delicious
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:
# mdadm -S /dev/md0

2. Remove the disks from the array (in my example md0 is a raid5 array with 3 disks)
Code:
# 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:
# 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:
# rm /etc/mdadm/mdadm.conf

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


Top
Display posts from previous:  Sort by  
Print view

Topics related to - "Mdadm - How can i destroy or delete an array"
 Topics   Author   Replies   Views   Last post 
There are no new unread posts for this topic. Mdadm - Linux software RAID

designeru

2

1222

Tue Dec 06, 2011 3:32 pm

admin View the latest post

 

Who is online
Users browsing this forum: No registered users and 0 guests
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum
Jump to:  
cronNews News Site map Site map SitemapIndex SitemapIndex RSS Feed RSS Feed Channel list Channel list


Delete all board cookies | The team | All times are UTC + 2 hours [ DST ]

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
DAJ Glass 2 template created by Dustin Baccetti

phpBB SEO