Jump to content

Unassigned Devices Preclear - a utility to preclear disks before adding them to the array


dlandon

Recommended Posts

On 6/14/2022 at 12:57 AM, mikela said:

So just stop the array and put it in position 10 and unraid will recognize the preclear signature and format it ?

The signature will be recognised but there is no automatic format.    The disk will show as unmountable and you will have the option to format unmountable disks.   Check it is only the one you expect before proceeding with the format.

Link to comment
  • 4 weeks later...

I am new to using this plugin, I thought I understood reading the initial post on this thread on how to use it, but I am confused. 

I chose the default when clearing some new drives, which was one cycle. I didn't see in the details that one "cycle" is actually 5 steps? 

Step 1: Pre-read verification - Took 26 hours
Step 2: Zeroing the disk - Took 28 hours
Step 3: Write preclear sig
Step 4: Verify preclear sig
Step 5: (Where I am now) Post-Read in progress? 1% done. 

Overall, I expect this to all be done in approximately 80 hours. 

This seems way more extensive than if I had unraid perform it, I am not complaining though as I just stress tested the hell out of these new drives I got. 

Question: Is there a cycle that won't take 4 days to complete on 20TB drives? Or is this the fastest option for this plugin 

Link to comment
25 minutes ago, Indi said:

I am not complaining though as I just stress tested the hell out of these new drives I got. 

The stress test is probably the primary reason most people would use this plugin. In the past unRAID couldn’t clear a drive with the array started so users would PREclear drives to avoid long periods off-line. That’s no longer the case so it really only makes sense to preclear if you want to stress a new drive to be sure of its health status. I typically run 3 cycles but as you say they do take a while. I think 4 days for a 20TB drive is actually pretty fast though.

Link to comment
10 hours ago, Indi said:

This seems way more extensive than if I had unraid perform it, I am not complaining though as I just stress tested the hell out of these new drives I got. 

 

There is a discussion of Clear v Preclear here in the online documentation accessible via the Manual link at the bottom of the Unraid GUI.  In addition every forum page has a DOCS link at the top and a Documentation link at the bottom.  

Link to comment

Hi dlandon,

 

I can't install the plugin on my brand new Unraid build, it shows the error message:

 

```

Requirements not met

The requirements for this upgrade have not been met on your system

This application has additional requirements

Unassigned Devices installed

```

 

This is despite having two unassigned devices listed on the Dashboard:

 

918679283_ScreenShot2023-12-03at1_34_08PM.png.761fcc7281931455ff8c67ad0c4c3f9b.png

 

What can be wrong here? Thanks in advance.

 

Link to comment
2 hours ago, dlandon said:

You need the Unassigned Devices plugin installed.

 

Oh wow, thanks for such a quick reply! If I could suggest an improvement in error messaging, it would be great to have the Unassigned Devices plugin mentioned in the error. As it is now, it's very confusing and can be easily interpreted as the need to have unassigned devices.

 

Works like a charm now.

Link to comment

My new disk is failing during the pre-read. Have precleared disks in the past without issue (though, not within the last couple of years...). Unraid dashboard shows 50+ GB of free memory. Any ideas? Cheers.

 

Dec 07 19:17:32 preclear_disk_ZR5A2ZA6_13445: Blocks (512 bytes): 35156656128 
Dec 07 19:17:32 preclear_disk_ZR5A2ZA6_13445: Block size: 4096 
Dec 07 19:17:32 preclear_disk_ZR5A2ZA6_13445: Start sector: 0 
Dec 07 19:17:36 preclear_disk_ZR5A2ZA6_13445: Pre-read: pre-read verification started 1 of 5 retries... 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: size:         0, available:     0, free: 0% 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: Filesystem     1K-blocks    Used Available Use% Mounted on 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: tmpfs              32768     364     32404   2% /run 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: /dev/sda1       15248800 1072896  14175904   8% /boot 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: devtmpfs            8192       0      8192   0% /dev 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: tmpfs           32958456       0  32958456   0% /dev/shm 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: tmpfs             131072     320    130752   1% /var/log 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: tmpfs               1024       0      1024   0% /mnt/disks 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: tmpfs               1024       0      1024   0% /mnt/remotes 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: tmpfs               1024       0      1024   0% /mnt/addons 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: tmpfs               1024       0      1024   0% /mnt/rootshare 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: Low memory detected, aborting ... 
Dec 07 19:17:39 preclear_disk_ZR5A2ZA6_13445: Pre-read: pre-read verification failed! 
Dec 07 19:17:40 preclear_disk_ZR5A2ZA6_13445: ssmtp: Authorization failed (535 5.7.8  https://support.google.com/mail/?p=BadCredentials mm4-20020a0562145e8400b00679d7e76b64sm359241qvb.126 - gsmtp) 
Dec 07 19:17:41 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: Error: 
Dec 07 19:17:41 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: 
Dec 07 19:17:41 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: ATTRIBUTE               INITIAL NOW STATUS 
Dec 07 19:17:41 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: Reallocated_Sector_Ct   0       0   - 
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: Power_On_Hours          6       6   - 
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: Reported_Uncorrect      0       0   - 
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: Airflow_Temperature_Cel 29      29  - 
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: Current_Pending_Sector  0       0   - 
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: Offline_Uncorrectable   0       0   - 
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.: UDMA_CRC_Error_Count    0       0   - 
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: S.M.A.R.T.:  
Dec 07 19:17:42 preclear_disk_ZR5A2ZA6_13445: error encountered, exiting ... 

 

 

tower-diagnostics-20231207-1948.zip

Link to comment
7 minutes ago, Provocateur said:

My new disk is failing during the pre-read. Have precleared disks in the past without issue (though, not within the last couple of years...). Unraid dashboard shows 50+ GB of free memory. Any ideas? Cheers.

Go the the Boot->Flash->Syslinux Configuration and remove any "root=sda" you see on any of the boot options, then reboot.  Try preclear again.  It should work.

Link to comment

I hope I am posting this in the right thread.

 

I am currently running preclear on two 16TB drives.  Usually I don't run preclear, but bought these from an eBay vendor I had not used before.  My logs are being spammed by these spin down / read SMART messages every 15 minutes (x2 as two drives pre-clearing).  Looks as it kicked in at Step 5 - Post-read.  See screenshot.  15 minutes is my default spin down delay.  Should that apply to unmounted, unformatted UD drives as well?

 

image.thumb.png.754898d99c93014f6a0017d6caf87cc4.png

 

That would align with when my system began do display the highlighted below:

 

image.png.352ea08fae60ba20e6634ad6cc608cde.png

 

This is probably not the behavior that would be expected.  The preclear is almost complete, no errors so far.

malta-tower-diagnostics-20231208-0604.zip

Link to comment
2 hours ago, ConnerVT said:

Should that apply to unmounted, unformatted UD drives as well?

Unraid does not try to spin down disks that have no partition.  Once the partition is created on the disk, Unraid will try to spin down the disk regardless of whether or not there is a file system on the disk.  It shouldn't cause any issues, just logs spin down messages.

  • Thanks 1
Link to comment

Sorry if this is a noob question, but with a new disk in a new build, which preclear option should I be choosing? I assume "Erase and Clear Disk" since I want it zeroed by erasing and signed by clearing, but the definition "disk to be discard" in the original post is throwing me off as I'm not exactly sure what that means. Thank you!

Link to comment
7 hours ago, linksta7 said:

Sorry if this is a noob question, but with a new disk in a new build, which preclear option should I be choosing?

"Clear DIsk" for a disk to be added to the array.

 

7 hours ago, linksta7 said:

"Erase and Clear Disk"

This is used to prepare a disk for disposal because it destroys all data on the disk.

Link to comment
3 hours ago, dlandon said:

"Clear DIsk" for a disk to be added to the array.

 

This is used to prepare a disk for disposal because it destroys all data on the disk.

 

Makes sense, thank you :) Last night, I already began the erase and clear disk process before getting this reply. The disks are now on the erase step, is it safe to just stop the process and re-run a new clear-only run? Or should I just let it do its thing and complete the entire erase and clear process? As well, do I need to explicitly format my drives after the preclear process is complete or will unraid format them for me when I build the array for the first time?

Link to comment
11 minutes ago, linksta7 said:

 As well, do I need to explicitly format my drives after the preclear process is complete

No.

 

11 minutes ago, linksta7 said:

or will unraid format them for me when I build the array for the first time?

Yes, but you need to use the "Clear Disk" option so the pre-clear signature is written to the disk.  When Unraid sees the signature, it will not clear the disk which has already been done by the pre-clear plugiun.

 

The normal steps are:

  • Pre-clear the disk using "Clear Disk".
  • Assign the disk to the Array.
  • Start Array and you will be asked to confirm formatting the disk to the file format you've specified as either the default or changed for this particular disk.
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.

×
×
  • Create New...