Re: preclear_disk.sh - a new utility to burn-in and pre-clear disks for quick add


Recommended Posts

Run it with the -n parameter and it will only zero the drive and write the signature.  I do that all the time when I transfer drives from one unRAID server to the other.

 

Thank you!

It will NOT find the un-readable sectors when using that option, so just be aware of the risks. 

(Far more likely to suffer read errors (un-correctable-media-errors) once put online)

Link to comment

]It will NOT find the un-readable sectors when using that option, so just be aware of the risks. 

(Far more likely to suffer read errors (un-correctable-media-errors) once put online)

 

True -- however, if it's a "known working drive" that's been in use and is known to be in good shape, it's MUCH faster to (a) do a preclear with the -n parameter;  ((b) add it to the array; and then © run a parity check => something you should do anyway when adding a new drive, and that WILL find any unreadable sectors  :)

Link to comment

]It will NOT find the un-readable sectors when using that option, so just be aware of the risks. 

(Far more likely to suffer read errors (un-correctable-media-errors) once put online)

 

True -- however, if it's a "known working drive" that's been in use and is known to be in good shape, it's MUCH faster to (a) do a preclear with the -n parameter;  ((b) add it to the array; and then © run a parity check => something you should do anyway when adding a new drive, and that WILL find any unreadable sectors  :)

good point.
Link to comment
  • 3 weeks later...

Is there anything like preclear or another burn-in utility for HDDs that runs under Windows?

 

Trying to help out my brother who has a new Netgear ReadyNAS. He doesn't have unRAID and no spare PC that he could even temporarily run it on. Besides, any sort of linux command line stuff would scare him away.

Link to comment

Is there anything like preclear or another burn-in utility for HDDs that runs under Windows?

Traditionally, the `badblocks` command from the e2fsprogs package is used to torture-test new disks. (google linux man badblocks).

badblocks  -vsw  /dev/sdX

With the default settings, the final pass will leave the disk cleared to all zeros.

 

On Windows, you could run that command in Cygwin.

Still too scary for him I think. I may as well just have him boot unRAID off a flash drive and use preclear.

 

Maybe I should have specified something with a GUI.

Link to comment

Maybe I should have specified something with a GUI.

Something with a GUI... You can make a bootable USB disk with PMagic, that's the swiss army knife for everything disk related.

Great idea! Does Parted Magic have something in particular that can be used as a "burn-in" or stress test?

 

Thinking of pmagic made me think about ultimate bootcd as another possibility. Although most of those utilities don't have a GUI, they are usually sufficiently automated that he'd be ok. Maybe.

Link to comment

So whilst preclearing a 4TB the other day, I ran into a kernel panic - I'd never had one before or since, so I'm going to imagine it was related to the preclear...

 

Kicking myself for not saving the log/other information, but was trying to get the unraid back up in time to watch the Newsroom finale with my wife while our baby was asleep :P

 

Is there a flag I should be using to limit memory use? More concerned with stability than speed of the preclear...

Link to comment
  • 1 month later...

I got some new 3tb WD Reds in today. I was planning on pre-clearing them one at a time. The caveat is I have only 6 SATA ports on my Unraid system and all are occupied by drives in the array. I do have an external usb dual bay SATA drive caddy. Is it possible to plug that in to my Unraid system and use that to pre-clear the drives? Or is there any tool like pre-clear I can use in Windows?

 

EDIT:

I was able to mount the drive in the caddy using the SNAP plugin. This allowed my to run preclear on the new drive.

Link to comment
  • 1 month later...

What would cause the preclear speed to be reported incorrectly on the WebGUI?

  The preclear script HAS NO WEB GUI.  It is correctly reporting the read-speed of the disk.  That figure does not include the time needed to verify the read results, that may be the difference.

 

  The WebGui has absolutely nothing to do with the preclear script.  You'll have to talk to its author.  It is incorrectly reporting the read speed of the disk.

Link to comment

I know the script has nothing to do with the WebGUI, it's just a script ;)  I was hoping you'd have seen this before and had an idea of what might be causing the speed to be reported incorrectly. In any case, it's just as easy to log into the server and stare at the CLI.

 

But, it's on its second cycle and the speed is looking correct for step 2.

Link to comment
  • 4 weeks later...

Joe L.

 

Will this script run properly on the new 64 bit version of unRAID?  (I know that none  of the current plugins  will work but I thought that it might be possible that a script might work.)

Yes, it should work.  It simply uses utilities that should be supplied with the stock unRAID.
Link to comment

Joe L.

 

Will this script run properly on the new 64 bit version of unRAID?  (I know that none  of the current plugins  will work but I thought that it might be possible that a script might work.)

Yes, it should work.  It simply uses utilities that should be supplied with the stock unRAID.

 

Good news.  I will test as soon as someone gets the apcupsd package recompiled for use with ver 6.  (This is January in Ohio with current temperatures in the single digits.  Too risky  a time to run without a ups monitoring software to shut  things down ...)  I have a spare 1GB drive I can use for the trial. 

Link to comment

Joe L.

 

Will this script run properly on the new 64 bit version of unRAID?  (I know that none  of the current plugins  will work but I thought that it might be possible that a script might work.)

Yes, it should work.  It simply uses utilities that should be supplied with the stock unRAID.

 

Good news.  I will test as soon as someone gets the apcupsd package recompiled for use with ver 6.  (This is January in Ohio with current temperatures in the single digits.  Too risky  a time to run without a ups monitoring software to shut  things down ...)  I have a spare 1GB drive I can use for the trial.

 

I got APCUPSD for ver 6.X installed and found that it works.  With that working, I decide to try to preclear a 1 GB Hitachi SATA drive.  I can report that it worked perfectly.  I ran one preclear cycle on it.  Time to complete was a few minutes over 10 hours which is about normal for this drive.  I do have the preclear report if you would like to se it.

 

Link to comment
  • 2 months later...

Any way to check if a disk has been successfully precleared?

 

I've been running pre clear on a new 4TB drive in a backup server (free licence). The pre clear script was instantiated from another machine on the network.

 

When I check this morning at 6.30 AM, it was 8% through the final step.

 

Power failed sometime in the afternoon to the machine running the script but the server was unaffected.

 

I therefore can't see if the pre clear process completed. Is there a way to check if the drive has been successfully pre-cleared?

 

Thanks

 

Peter

 

Link to comment

Any way to check if a disk has been successfully precleared?

 

I've been running pre clear on a new 4TB drive in a backup server (free licence). The pre clear script was instantiated from another machine on the network.

 

When I check this morning at 6.30 AM, it was 8% through the final step.

 

Power failed sometime in the afternoon to the machine running the script but the server was unaffected.

 

I therefore can't see if the pre clear process completed. Is there a way to check if the drive has been successfully pre-cleared?

 

Thanks

 

Peter

If you had unMenu installed on the free version you can monitor progress of the preclear from myMain.  That's how I do it all the time and how the 3 drives I just started are being monitored.
Link to comment

Unless you were running in a "screen" terminal, the script probably stopped when it's telnet session stopped...

 

Indeed.

 

However, I suspect the script may have completed before the telnet session stopped.

 

I'm trying to confirm that is the case.

 

I guess I can just do the whole pre-clear again, I guess...

 

Peter

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.