Geekzone: technology news, blogs, forums
Guest
Welcome Guest.
You haven't logged in yet. If you don't have an account you can register now.


Incindre

117 posts

Master Geek


#189430 29-Dec-2015 19:29
Send private message

I wasn't feeling confident enough to rebuild my degraded RAID 10 array (lost one of my four 2TB drive) so I decided to remake the array from scratch (using Webmin, a web based administration GUI for Ubuntu server). All was going well until it came time to create a file system when what I assume is some sort of issue due to previous configuration halted the process. Something to do with the GPT headers.

I think the best thing to do is to try and restore the drives to their default state and get rid of any trash data that might be screwing the process over.

Question time: can anyone suggest the best way for me to blank these 4 Seagate HDD's so I can throw on GPT partition tables and recreate my RAID array?

Filter this topic showing only the reply marked as answer Create new topic

gzt

gzt
17104 posts

Uber Geek

Lifetime subscriber

  #1458702 29-Dec-2015 19:46
Send private message

Gparted would be a quick fix tool for this.



gzt

gzt
17104 posts

Uber Geek

Lifetime subscriber

  #1458703 29-Dec-2015 19:58
Send private message

Err... Maybe gdisk. It comes with gparted.

This explains some potential issues:

http://www.rodsbooks.com/gdisk/wipegpt.html


Dynamic
3866 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #1458708 29-Dec-2015 20:26
Send private message

DBAN

Just let it run to 2% should be sufficient and it should run on all selected disks simultaneously.




“Don't believe anything you read on the net. Except this. Well, including this, I suppose.” Douglas Adams

 

Referral links to services I use, really like, and may be rewarded if you sign up:
PocketSmith for budgeting and personal finance management.  A great Kiwi company.




Lias
5589 posts

Uber Geek

ID Verified
Trusted
Lifetime subscriber

  #1458718 29-Dec-2015 20:47
Send private message

+1 for DBAN




I'm a geek, a gamer, a dad, a Quic user, and an IT Professional. I have a full rack home lab, size 15 feet, an epic beard and Asperger's. I'm a bit of a Cypherpunk, who believes information wants to be free and the Net interprets censorship as damage and routes around it. If you use my Quic signup you can also use the code R570394EKGIZ8 for free setup.


Incindre

117 posts

Master Geek


  #1458776 29-Dec-2015 22:03
Send private message

Thanks for the advice guys. Am I right in thinking that by Nuking with DBAN is essentially blanking the disk (no partition tables at all) and I'd have to create the GPT tables again in gdisk... but gdisk might be able repair/replace the GPT tables on its lonesome without having to wipe the disk?

 

If I'm right, is it worthwhile to nuke anyway? Will it reduce the chances that MDADM might freak out?

gzt

gzt
17104 posts

Uber Geek

Lifetime subscriber

  #1458799 29-Dec-2015 22:57
Send private message

If you have nothing to lose nuking is always the simplest option.

Gdisk has many option for rebuilding.

My recollection is Gparted GUI can do close to the same thing, eg; rebuilding gpt from existing partition knowledge. It has been a while since I used it. At that time the docs were not great and functionality was way ahead of them with options available in GUI but not in docs. I always found it to be really robust and generally does the right thing automatically which is/was rare in the linux world ; ).

timmmay
20574 posts

Uber Geek

Trusted
Lifetime subscriber

  #1458845 30-Dec-2015 07:22
Send private message

What's the point of having RAID if you don't use it when something goes wrong? Of course you need a backup (RAID is not a backup, and a mirror is not a backup), so what harm would a rebuild have been? If it failed you just restore from backup.

 
 
 

Cloud spending continues to surge globally, but most organisations haven’t made the changes necessary to maximise the value and cost-efficiency benefits of their cloud investments. Download the whitepaper From Overspend to Advantage now.
Mark
1653 posts

Uber Geek


  #1458882 30-Dec-2015 09:19
Send private message

I'd just use "dd" ... "dd if=/dev/zero of=/dev/hdx bs=1M count=1024"

Replace "/dev/hdx" with the device names for the disks, and that command will write zeros over the first 1GiB of the disk, should nuke any LVM stuff and only take a few seconds to complete.

As a matter of interest, why did you choose RAID-10 ?



Incindre

117 posts

Master Geek


  #1459013 30-Dec-2015 13:05
Send private message

timmmay: What's the point of having RAID if you don't use it when something goes wrong? Of course you need a backup (RAID is not a backup, and a mirror is not a backup), so what harm would a rebuild have been? If it failed you just restore from backup.


I'd got everything off the array when it was in the degraded state but while I was screwing around trying to rebuild it another disk dropped out of the array; also my cron jobs and MDADM monitoring didn't do their job last time in alerting me of the initial disk failure so I decided the smartest thing to do would be to start afresh.

Mark: I'd just use "dd" ... "dd if=/dev/zero of=/dev/hdx bs=1M count=1024"

Replace "/dev/hdx" with the device names for the disks, and that command will write zeros over the first 1GiB of the disk, should nuke any LVM stuff and only take a few seconds to complete.

As a matter of interest, why did you choose RAID-10 ?


Thanks Mark, I'll try that now.

I chose RAID 10 because it seemed like a good middle-ground between RAID 5's performance and RAID 6's reliability. I get good read speeds and (if the stars align correctly) can loose a maximum of two drives. I used Near copies last time and will try Offset this time due to its read speed increase.


gzt

gzt
17104 posts

Uber Geek

Lifetime subscriber

  #1459458 31-Dec-2015 11:23
Send private message

The real reliability of raid, well the most common failure is down to the controller. Well, so I gather. I have been a witness to many workstation raid failures that came down to controller not handling it.

Incindre

117 posts

Master Geek


  #1460269 2-Jan-2016 17:50
Send private message

I tried your 'dd' trick Mark but somehow it didn't work, there were still broken partition tables on the disks.
I had endless trouble trying to get the machine to boot from anything other than a Linux live CD, therefore I couldn't give DBAN a shot.

Anyway once I worked out how gdisk does its thing I managed to repair all the Partition Tables!

I have many more questions about my next moves as I try build this array, but I'll open a new thread in the Linux forum for that.

Thanks for the help!

Mark
1653 posts

Uber Geek


  #1460312 2-Jan-2016 19:21
Send private message

Incindre: I tried your 'dd' trick Mark but somehow it didn't work, there were still broken partition tables on the disks.
I had endless trouble trying to get the machine to boot from anything other than a Linux live CD, therefore I couldn't give DBAN a shot.

Anyway once I worked out how gdisk does its thing I managed to repair all the Partition Tables!

I have many more questions about my next moves as I try build this array, but I'll open a new thread in the Linux forum for that.

Thanks for the help!


Odd ... usually works for me!  Wonder if LVM puts backup copies scattered over the disk ?  Oh well sorry for the bad advise! :-)

Filter this topic showing only the reply marked as answer Create new topic





News and reviews »

Air New Zealand Starts AI adoption with OpenAI
Posted 24-Jul-2025 16:00


eero Pro 7 Review
Posted 23-Jul-2025 12:07


BeeStation Plus Review
Posted 21-Jul-2025 14:21


eero Unveils New Wi-Fi 7 Products in New Zealand
Posted 21-Jul-2025 00:01


WiZ Introduces HDMI Sync Box and other Light Devices
Posted 20-Jul-2025 17:32


RedShield Enhances DDoS and Bot Attack Protection
Posted 20-Jul-2025 17:26


Seagate Ships 30TB Drives
Posted 17-Jul-2025 11:24


Oclean AirPump A10 Water Flosser Review
Posted 13-Jul-2025 11:05


Samsung Galaxy Z Fold7: Raising the Bar for Smartphones
Posted 10-Jul-2025 02:01


Samsung Galaxy Z Flip7 Brings New Edge-To-Edge FlexWindow
Posted 10-Jul-2025 02:01


Epson Launches New AM-C550Z WorkForce Enterprise printer
Posted 9-Jul-2025 18:22


Samsung Releases Smart Monitor M9
Posted 9-Jul-2025 17:46


Nearly Half of Older Kiwis Still Write their Passwords on Paper
Posted 9-Jul-2025 08:42


D-Link 4G+ Cat6 Wi-Fi 6 DWR-933M Mobile Hotspot Review
Posted 1-Jul-2025 11:34


Oppo A5 Series Launches With New Levels of Durability
Posted 30-Jun-2025 10:15









Geekzone Live »

Try automatic live updates from Geekzone directly in your browser, without refreshing the page, with Geekzone Live now.



Are you subscribed to our RSS feed? You can download the latest headlines and summaries from our stories directly to your computer or smartphone by using a feed reader.