8 posts in this topic Last Reply

Recommended Posts

Posted (edited)

Hey

 

i just got a new WD Red 6 tb drive and is about to install it and was wondering if it is recommended to preclear it before use and if so how should I do it? It seems that the support of the preclear plugin is broken in recent updates

 

if I shouldn’t preclear does there exist a plug-in I can use to test the drive before use? 

Edited by fc0712

Share this post


Link to post

If you have the Community apps plugin installed, search for preclear and you will find the plugin.  

 

Now, I have used the plugin many times over the years and have never had a problem with it.  But let me say a few things.  I have a simple NAS system.  I never installed the 'optional' Statistics package (which phoned home).  I do not run the unassigned devices plugin.  I have never attempted to clear more than one drive at a time.

 

Since I have not done a preclear in a few months, I just started one to see if it still works with the latest version of unRAID.  (I have an old Seagate ST3000DM001 that I use just for checking this plugin.)  It will take about a day to finish. I will report back if I have a problem with the plugin. 

 

Do you have to preclear with the plugin?   NO!    unRAID will now preclear the disk in the background, then format it, and add it to the array.  But if you would rather make sure that the disk you had to your array is working and without surface defects, you need test it before you add it. You can use the manufacturer's disk testing program and there are folks who do.  Those are your three basic options. 

Share this post


Link to post

As Frank said above, feel free to use Preclear plugin for convenience if you like, but since its original purpose (minimizing downtime required to insert new drives) has been integrated into unRAID itself, I've stopped using it. A lot of people (myself included) continued to use it for a while to detect "infant mortality" in newly installed hard drives, but since the plugin doesn't seem to be supported anymore (regardless of whether it technically runs or not) we probably shouldn't even be doing that much.

 

Myself, to address the need to detect flaky drives on install I've been opening up the handy new web-based terminal window, starting a "screen" session, and issuing a badblocks command. This does much the same thing as the preclear plugin did; read/write the entire disk and compare with expected contents.

 

badblocks -nvs /dev/sdx will do a non-destructive test of the entire disk. If you don't care about the data on the disk you can do badblocks -wvs /dev/sdx.

 

Just my $0.02

 

-A

Share this post


Link to post
Posted (edited)
31 minutes ago, Ambrotos said:

Myself, to address the need to detect flaky drives on install I've been opening up the handy new web-based terminal window, starting a "screen" session, and issuing a badblocks command. This does much the same thing as the preclear plugin did; read/write the entire disk and compare with expected contents.

 

 

I believe you have to keep both the terminal window open until badblocks finishes.  Otherwise, it will be terminated.  Of course, this will also mean that you have to keep the PC up-and-running for the duration which will be some goody number of hours.  😉

 

EDIT:  Just realized that you said, you started a screen session.  That would allow the user to close to the terminal and re-access the screen session at a later time.  IF you are going to do this be sure that you have screen on your system.  The easy way to get in to install the Nerd Tools plugin. 

Edited by Frank1940

Share this post


Link to post
Posted (edited)

Thanks 

 

I’m in the process of running a smart extended test through unraid webgui, will that be suffcient to determine if the drive is okay? 

Edited by fc0712

Share this post


Link to post

I have used the Pre-clear plugin with no problems in 6.5.2 and 6.5.3. I have precleared 2 disks simultaneously with no issues. I prefer preclearing my disks manually.


Sent from my iPhone using Tapatalk

Share this post


Link to post
3 hours ago, fc0712 said:

Thanks 

 

I’m in the process of running a smart extended test through unraid webgui, will that be suffcient to determine if the drive is okay? 

It's one half of the process, and should be enough to catch most problems. The long SMART reads every sector, but doesn't care what's there. After you add it to a parity protected array, it will have every sector written, so as long as it completes the process to add it without error, and passes a parity check with zero errors, I'd call it good.

Share this post


Link to post

FC - ultimately no it won't.

You gotta beat up on the disk a couple 3 times. Everytime I add a new disk to my array I give myself enough time to pre-clear it at least 3 times.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


Copyright © 2005-2018 Lime Technology, Inc.
unRAID® is a registered trademark of Lime Technology, Inc.