Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

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

Featured Replies

1 hour ago, dlandon said:

On the UI, click on the 'Boot' device label and then the "Syslinux Configuration" tab.  Romove any instances of this text "root=sda" you see, save it, and then reboot.  You should be able to preclear without memory issues.

 

OMG !

You are a life saver. All working now :)

Thanks soo much.

  • Replies 848
  • Views 239.2k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Update the UD preclear plugin.

  • I am no longer working on this plugin. LT has taken over the maintenance and support. You will need to contact them about any issues or concerns you have. Future releases will come from them, and n

  • Not really, I assume the GUI is using some old disk info and not refreshing to get the current one, since it also happens the other way around, i.e., if you boot with a precleared disk and then format

Posted Images

45 minutes ago, dionmunk said:

My question is, how soon should I start seeing logs that something is happening or some kind of indicator that the script has actually started?


From the first post in this thread-

Quote

You can follow the status of preclears in UD, on the UD Preclear page, or by hovering your mouse on the preclear icon in the Unraid footer.


There is also the option available to use the notification options configured in unRAID to send you notifications at intervals which you configure if you enable the notifications option in the preclear popup window. I usually prefer to receive an email at the end of every step and cycle.

19 minutes ago, wgstarks said:


From the first post in this thread-


There is also the option available to use the notification options configured in unRAID to send you notifications at intervals which you configure if you enable the notifications option in the preclear popup window. I usually prefer to receive an email at the end of every step and cycle.

 

@wgstarks I appreciate your response! I ended up letting it sit for over an hour to see if I'd get anything and below is all that showed up in the logs.

 

Apr 3 18:24:55 Preclear script invoked as: /usr/local/emhttp/plugins/unassigned.devices.preclear/scripts/preclear_disk.sh --cycles 1 --no-prompt /dev/sdm
Apr 3 19:33:46 Preclear stopped on all devices
Apr 3 19:33:53 Preclear stopped on device: WD-CA3BXN1K

 

It doesn't look to me like it did anything. Any thoughts on what could be wrong?

  • 3 weeks later...

@dionmunk Was it a broken UI stats or did you solve you problem? 👆

 

I'm having the same problem right now, can't see any status. Just stuck on "Starting...".

Have checked with another browser and it looks the same.

 

image.png.229af84a70d52a0f130586910a8ef778.png

 

I'm just gonna let it be for a day or two. I have set the notification on 25% progress so maybe I get notifications.

Edited by Hogwind

A new 22TB disk, Zeroing is on it's 5th attempt after 4 failed ones. Any reason for that / anything I can do/check?

Preclearing only to test the disk. Destined to be a parity disk.

 

Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10486367+0 records out
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 21991505526784 bytes (22 TB, 20 TiB) copied, 100595 s, 219 MB/s
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10487104+0 records in
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10487104+0 records out
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 21993051127808 bytes (22 TB, 20 TiB) copied, 100607 s, 219 MB/s
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10487838+0 records in
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10487838+0 records out
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 21994590437376 bytes (22 TB, 20 TiB) copied, 100619 s, 219 MB/s
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10488577+0 records in
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10488577+0 records out
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 21996140232704 bytes (22 TB, 20 TiB) copied, 100631 s, 219 MB/s
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10489298+0 records in
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10489298+0 records out
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 21997652279296 bytes (22 TB, 20 TiB) copied, 100643 s, 219 MB/s
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10490037+0 records in
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10490037+0 records out
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 21999202074624 bytes (22 TB, 20 TiB) copied, 100655 s, 219 MB/s
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10490768+0 records in
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 10490768+0 records out
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 22000735092736 bytes (22 TB, 20 TiB) copied, 100667 s, 219 MB/s
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: dd process hung at 22000737189888, killing ...
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Zeroing: zeroing the disk started 4 of 5 retries...
Apr 19 20:11:16 preclear_disk_ZGG46T0A_12945: Continuing disk write on byte 22000735092736
Apr 19 20:19:41 preclear_disk_ZGG46T0A_12945: Zeroing: dd output: 
Apr 19 20:19:41 preclear_disk_ZGG46T0A_12945: dd process hung at 0, killing ...
Apr 19 20:19:41 preclear_disk_ZGG46T0A_12945: Zeroing: zeroing the disk started 5 of 5 retries...
Apr 19 20:19:41 preclear_disk_ZGG46T0A_12945: Zeroing: emptying the MBR.
Apr 20 02:29:32 preclear_disk_ZGG46T0A_12945: Zeroing: progress - 25% zeroed @ 265 MB/s
Apr 20 08:34:41 preclear_disk_ZGG46T0A_12945: Zeroing: progress - 50% zeroed @ 234 MB/s
Apr 20 15:34:20 preclear_disk_ZGG46T0A_12945: Zeroing: progress - 75% zeroed @ 197 MB/s

 

Edited by Gico

1 hour ago, Gico said:

Zeroing is on it's 5th attempt after 4 failed ones.

Does it always stop after 20TB? If so, maybe try a different controller? Maybe the one you are currently attached to has a problem with 20+TB.

 

 

Yes always stops somewhere after 22000000000000. Disk is attached to an onboard controller and the MB (Supermicro H12SSL-i ) has another one that seems to be identical. I will try with an HBA card.

18 hours ago, Hogwind said:

 

I'm having the same problem right now, can't see any status. Just stuck on "Starting...".

 

 

Same problem here. I haven't used any type of preclear in years. Today I'm trying it on a brand new 14TB Seagate Mach 2 drive (EXOS 2X14).

 

The preclear log shows only the script invocation and the status just stays on "starting..."

 

This fixed it:

 

  

On 3/9/2024 at 3:32 PM, treos33 said:

I don't know the cause but I was finally able to get started by uninstalling and reinstalling the plugin.

 

 

Edited by Espressomatic

On 4/20/2024 at 10:07 PM, JonathanM said:

Does it always stop after 20TB? If so, maybe try a different controller? Maybe the one you are currently attached to has a problem with 20+TB.

 

 

Same happens with a different HBA: LSI PCI-E card.
Is there anyway to limit the available disk size to 22000000000000?

I can also try zeroing it on my main machine (the one in my signature).

 

Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: Zeroing: dd output: 22000449880064 bytes (22 TB, 20 TiB) copied, 98245.7 s, 224 MB/s
Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: dd process hung at 22000451977216, killing ...
Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: Zeroing: zeroing the disk started 2 of 5 retries...
Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: Continuing disk write on byte 22000449880064
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: Zeroing: dd output: 
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: dd process hung at 0, killing ...
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: Zeroing: zeroing the disk started 3 of 5 retries...
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: Zeroing: emptying the MBR.

 

  • Author
3 hours ago, Gico said:

Same happens with a different HBA: LSI PCI-E card.
Is there anyway to limit the available disk size to 22000000000000?

I can also try zeroing it on my main machine (the one in my signature).

 

Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: Zeroing: dd output: 22000449880064 bytes (22 TB, 20 TiB) copied, 98245.7 s, 224 MB/s
Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: dd process hung at 22000451977216, killing ...
Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: Zeroing: zeroing the disk started 2 of 5 retries...
Apr 23 14:23:27 preclear_disk_ZGG46T0A_10952: Continuing disk write on byte 22000449880064
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: Zeroing: dd output: 
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: dd process hung at 0, killing ...
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: Zeroing: zeroing the disk started 3 of 5 retries...
Apr 23 14:31:52 preclear_disk_ZGG46T0A_10952: Zeroing: emptying the MBR.

 

At the end of a disk, the write takes longer and the dd write may time out too soon on a very large disk.  I've already extended the time out, but it might need to be even longer.

  • Author
3 hours ago, Gico said:

Same happens with a different HBA: LSI PCI-E card.
Is there anyway to limit the available disk size to 22000000000000?

I can also try zeroing it on my main machine (the one in my signature).

Update UD Preclear and see if it solves your issue.

Tmux is no longer working since updating UD Preclear to 2024.04.23 – it produces the following error:

 

tmux: /lib64/libm.so.6: version `GLIBC_2.38' not found (required by tmux)
tmux: /lib64/libc.so.6: version `GLIBC_2.38' not found (required by tmux)

 

Running the command 

/lib64/libc.so.6

shows that version 2.37 is installed, which is obviously a version behind the version mentioned in the error.

 

I'm on version 6.12.8 of Unraid.

Edited by Rozella
Added line to error message

After upgrading UD Preclear to 2024.04.23 when starting a preclear it offers to resume or start new one,

and what ever I select it goes to "starting" mode and stays in that mode.

Uninstalled and reinstalled the plugin and it's the same. Unraid 6.12.6.

While installing I got the following message, which corresponds with @Rozella's post.

"Checking tmux operation...
tmux is not working properly"

  • Author

Update the plugin and reboot to clear up the tmux issue.  Uninstalling and re-installing the plugin will not work.

8 minutes ago, dlandon said:

Update the plugin and reboot to clear up the tmux issue.  Uninstalling and re-installing the plugin will not work.


Fixed! Thanks for the amazingly fast resolution!

  • Author

I forgot that different versions of tmux require different versions of libc.  The version of libc in Unraid varies by Unraid version, so I have to do a version check to see which version of tmux can be installed for the version of Unraid running.  I can't update libc, because it will break Unraid.

 

It was an easy fix once I remembered what I needed to do.

On 4/23/2024 at 6:40 PM, dlandon said:

Update UD Preclear and see if it solves your issue.

Same. First time it happens below byte 22000000000000.

So if I put the disk in the array as parity, can this be ok? Maybe it's related only to the plugin's zeroing process?

Alternatively if the disk is no good, I'll still will get an error, and then I guess I'll replace it.

 

Apr 25 01:57:41 preclear_disk_ZGG46T0A_10918: Zeroing: dd output: 21998195441664 bytes (22 TB, 20 TiB) copied, 98221.6 s, 224 MB/s
Apr 25 01:57:41 preclear_disk_ZGG46T0A_10918: Zeroing: dd output: 10490310+0 records in
Apr 25 01:57:41 preclear_disk_ZGG46T0A_10918: Zeroing: dd output: 10490310+0 records out
Apr 25 01:57:41 preclear_disk_ZGG46T0A_10918: Zeroing: dd output: 21999774597120 bytes (22 TB, 20 TiB) copied, 98233.6 s, 224 MB/s
Apr 25 01:57:41 preclear_disk_ZGG46T0A_10918: dd process hung at 21999776694272, killing ...
Apr 25 01:57:41 preclear_disk_ZGG46T0A_10918: Zeroing: zeroing the disk started 2 of 5 retries...
Apr 25 01:57:41 preclear_disk_ZGG46T0A_10918: Continuing disk write on byte 21999774597120
Apr 25 02:13:39 preclear_disk_ZGG46T0A_10918: Zeroing: dd output: 
Apr 25 02:13:39 preclear_disk_ZGG46T0A_10918: dd process hung at 0, killing ...
Apr 25 02:13:39 preclear_disk_ZGG46T0A_10918: Zeroing: zeroing the disk started 3 of 5 retries...
Apr 25 02:13:39 preclear_disk_ZGG46T0A_10918: Zeroing: emptying the MBR.
Apr 25 08:01:50 preclear_disk_ZGG46T0A_10918: Zeroing: progress - 25% zeroed @ 270 MB/s

 

Edited by Gico

  • Author
5 hours ago, Gico said:

 

Alternatively if the disk is no good, I'll still will get an error, and then I guess I'll replace it.

I suppose it is possible you have a bad disk.

I've got a similar problem.  I'm trying to preclear an EXOS 20TB drive.  First one failed after somewhere between 1 and 6 hours.  Less than 25% of the way through.  So I'm on the next new 20TB drive.  Fails in less than an 20 minutes.  It tells me to go to UD and clear the drive.  UD has had the dancing vertical lines for the past hour.  I've cleared drives before.  Never had this kind of problem.  Now this drive is 2TB larger than my 2 parity drives. ( I have a 12TB failed drive )  I"M NOT GOING TO SLAP THIS INTO A PARITY SLOT WITHOUT A PRECLEAR.  WTF  HELP   UNRAID 6.12.10  TODAY UD.

  • Author
3 hours ago, Top Gun said:

I've got a similar problem.  I'm trying to preclear an EXOS 20TB drive.  First one failed after somewhere between 1 and 6 hours.  Less than 25% of the way through.  So I'm on the next new 20TB drive.  Fails in less than an 20 minutes.  It tells me to go to UD and clear the drive.  UD has had the dancing vertical lines for the past hour.  I've cleared drives before.  Never had this kind of problem.  Now this drive is 2TB larger than my 2 parity drives. ( I have a 12TB failed drive )  I"M NOT GOING TO SLAP THIS INTO A PARITY SLOT WITHOUT A PRECLEAR.  WTF  HELP   UNRAID 6.12.10  TODAY UD.

Post diagnostics.

OK Here is my latest diagnostics.  Right now preclear IS running on the second drive (75%).  But things are different.  Compared to 2 months ago.  Then everything was very transparent as to what was going on.  Now it is not.  The current status is hidden and is only available by bringing up the log.  That WAS NOT the case 2 months ago.

enigma-diagnostics-20240501-0956.zip

  • Author
45 minutes ago, Top Gun said:

Right now preclear IS running on the second drive (75%).

I don't see any drives that are not assigned to the array - i.e. thare aren't any unassigned disks.  How are you doing a preclear on a disk?

 

46 minutes ago, Top Gun said:

The current status is hidden and is only available by bringing up the log. 

The status shows on the UD device:

Screenshot 2024-05-01 095646.png

 

or on the preclear page:

Screenshot 2024-05-01 095725.png

 

also on the footer:

Screenshot 2024-05-01 100037.png

 

You can also click on the eye icon and you can see the status.  What do you think is missing?

 

Latest update.  New disk 2 has failed at something over 75%  @ 18:42:45

Quote

I don't see any drives that are not assigned to the array - i.e. thare aren't any unassigned disks.  How are you doing a preclear on a disk?

Disk 3 failed (12TB) and is being emulated.  It has been physically removed.  New 20TB drive was physically added to the array.  It appears on the preclear page and has the option to preclear.  Preclear initiated here.  On this second drive I skipped the pre and post reads.

Quote

The status shows on the UD device:

 

 

Status did NOT show on the main page under UD.  There I had the dancing logo.

 

Quote

or on the preclear page:

 

After the preclear started,  I had no information unless I used the eye icon.

 

Quote

also on the footer:

 

The footer on the main page rarely appeared.  But when it did I could find info there.

 

Quote

You can also click on the eye icon and you can see the status.  What do you think is missing?

 

It seems that I had more information as to the progress of the process while it was ongoing.

 

Just looked at the syslog.  It looks like the sean of a crime.  I think I may need an ambulance.  Can you help?

 

IS IT ANOTHER BAD DRIVE OR NOT ?   Thank you.

 

 

image.png

enigma-diagnostics-20240501-1433.zip

  • Author
36 minutes ago, Top Gun said:

Status did NOT show on the main page under UD.  There I had the dancing logo.

Go to Tools->PHP Settings and enable "All Categories", then go to UD page and let it sit there a bit, then go back to Tools->PHP Settings and post any PHP errors logged there.

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...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.