|
Discussions on RAM, DRAM, shared memory, NAS, SAN, RAID, backups, SCSI, IDE, UFS, UFS2, JFS, JFS2, EXT2, EXT3
Author |
Message |
designeru
|
 |
Post subject: Mdadm - How can i destroy or delete an array | Posted: Tue May 18, 2010 9:52 am |
|
Joined: Thu Dec 31, 2009 4:44 pm Posts: 10
|
Mdadm - How can i destroy or delete an array
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...
|
|
|
|
|
|
|
Users browsing this forum: No registered users and 0 guests |
You can post new topics in this forum You can 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
|
 News Site map SitemapIndex RSS Feed Channel list
|
|