Preclear plugin


3040 posts in this topic Last Reply

Recommended Posts

  • Replies 3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Popular Posts

Hi guys, this is a simple plugin that allows users to clear their disks before add them to the array.   The main characteristics of this plugin are: Modularity: can be used standalon

I think Thanks should be directed at all those members that have been dealing with the mess the last few months. @dlandon and @Squid have been working behind the scenes to try and clean up, and o

Dontlookoverthere over on the unRAID subreddit figured out how to get the plugin running again with a simple edit to the plg:   https://www.reddit.com/r/unRAID/comments/7wjpus/preclear_worki

Posted Images

Sorry for the inconvenience, rick.p, I'm short in time and didn't test all possible scenarios. I'll tweak the code to squeeze a little more speed soon.

 

No worries, I know the feeling, was just so rattling that it just was such an drastic change, like I said I got it running now... but that was a serious suggestion, revise the OP with the CURRENT information and links and tips, lot to search thru and gets frustrating at times :) good work none the less.

Link to post

Sorry for the inconvenience, rick.p, I'm short in time and didn't test all possible scenarios. I'll tweak the code to squeeze a little more speed soon.

 

No worries, I know the feeling, was just so rattling that it just was such an drastic change, like I said I got it running now... but that was a serious suggestion, revise the OP with the CURRENT information and links and tips, lot to search thru and gets frustrating at times :) good work none the less.

 

+1

And maybe tweak the name of the plugin a little to differentiate between the various versions.

Just an idea.

Link to post

Sorry for the inconvenience, rick.p, I'm short in time and didn't test all possible scenarios. I'll tweak the code to squeeze a little more speed soon.

 

No worries, I know the feeling, was just so rattling that it just was such an drastic change, like I said I got it running now... but that was a serious suggestion, revise the OP with the CURRENT information and links and tips, lot to search thru and gets frustrating at times :) good work none the less.

 

+1

And maybe tweak the name of the plugin a little to differentiate between the various versions.

Just an idea.

Now it's just one plugin that handles all the scripts.

 

Enviado de meu SM-N910C usando Tapatalk

 

 

Link to post

Now it's just one plugin that handles all the scripts.

 

Unified PreClear script?

 

Well it handls all the scripts, assuming they have been patched. Pity it can't do the patch, save a patched copy (temporarly) and use that.

 

One other note, if you start it up, then decide to kill it (red X), on the Unassigned Devices Tab it shows it stopped, but it you try to start it again, the actually plug in page shows it still running and you can't start it again, have to reboot the server to clear it.

Link to post

Now it's just one plugin that handles all the scripts.

 

Unified PreClear script?

 

Well it handls all the scripts, assuming they have been patched. Pity it can't do the patch, save a patched copy (temporarly) and use that.

 

One other note, if you start it up, then decide to kill it (red X), on the Unassigned Devices Tab it shows it stopped, but it you try to start it again, the actually plug in page shows it still running and you can't start it again, have to reboot the server to clear it.

Unassigned Devices is only able to clear the current status, not stop a running preclear. I'll talk to dlandon and will integrate them, letting a preclear to be started/stopped from UD. Actually, much of the needed code is already in place. Now I must have the time.

 

Enviado de meu SM-N910C usando Tapatalk

 

 

Link to post

Hi gfjardim,

 

Does the new plugin enable smart for new drives? Most drives have smart disabled when first put into unraid. I believe unraid only enables smart for them when they are added to the array. But when one is preclearing them before adding to the array, smart is disabled and the preclear reports are not very meaningful.

 

I'm currently enabling them with

smartctl --smart=on /dev/sdX

 

Thanks

Link to post

 

Can you tell me what this error message means?

 

Running v6.1.9 and preclear ran to completion

 

??> RESULT: Preclear finished succesfully.

 

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1401: /boot/preclear_reports/preclear_report_WD?WCAU48551976_2016.08.3

1?02:47:53.txt: Invalid argument

root@Tower:/usr/local/emhttp#

Link to post

 

Can you tell me what this error message means?

 

Running v6.1.9 and preclear ran to completion

 

??> RESULT: Preclear finished succesfully.

 

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1401: /boot/preclear_reports/preclear_report_WD?WCAU48551976_2016.08.31?02:47:53.txt: Invalid argument

root@Tower:/usr/local/emhttp#

 

That's is an easy one.  There are "?" in the file name.  Your question should be "Why are there "?" in the file name?" 

Link to post

 

Can you tell me what this error message means?

 

Running v6.1.9 and preclear ran to completion

 

??> RESULT: Preclear finished succesfully.

 

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1401: /boot/preclear_reports/preclear_report_WD?WCAU48551976_2016.08.31?02:47:53.txt: Invalid argument

root@Tower:/usr/local/emhttp#

 

That's is an easy one.  There are "?" in the file name.  Your question should be "Why are there "?" in the file name?"

 

Device model: WDC WD10EADS-00L5B1

Serial number: WD-WCAU48551976

 

Looks like the plugin is attempting to underline the dashes in the serial number and text ?

Link to post

 

Can you tell me what this error message means?

 

Running v6.1.9 and preclear ran to completion

 

??> RESULT: Preclear finished succesfully.

 

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1401: /boot/preclear_reports/preclear_report_WD?WCAU48551976_2016.08.31?02:47:53.txt: Invalid argument

root@Tower:/usr/local/emhttp#

 

That's is an easy one.  There are "?" in the file name.  Your question should be "Why are there "?" in the file name?"

 

Device model: WDC WD10EADS-00L5B1

Serial number: WD-WCAU48551976

 

Looks like the plugin is attempting to underline the dashes in the serial number and text ?

 

After seeing what your drive Model and Serial Number are, I would guess that some part of the file naming procedure has replaced the  dash (-) with a question mark (?).  Of course, that is a forbidden character in a file name!  (The unlined question marks in my original quote was an attempt to highlight what I was referring to. 

 

This is the file name ---    preclear_report_WD?WCAU48551976_2016.08.31?02:47:53.txt    ---  that I am referring to as having the problem.  You can plainly that there are two questions in it.

Link to post

Is your script able to run 2 clears at the same time. I started 2 drives. But the first drive i started didn't seem to be progressing. so i stopped it, and restarted. Then it was running, and the 2nd drive stopped progressing? Still waiting for the first one to finish completely to see what happens.

 

Link to post

Is your script able to run 2 clears at the same time. I started 2 drives. But the first drive i started didn't seem to be progressing. so i stopped it, and restarted. Then it was running, and the 2nd drive stopped progressing? Still waiting for the first one to finish completely to see what happens.

 

I've ran 5+ preclears at once without issues.

 

Link to post

Is your script able to run 2 clears at the same time. I started 2 drives. But the first drive i started didn't seem to be progressing. so i stopped it, and restarted. Then it was running, and the 2nd drive stopped progressing? Still waiting for the first one to finish completely to see what happens.

 

List the amount of RAM and CPU.  Preclear does  require a lot of RAM...

Link to post

List the amount of RAM and CPU.  Preclear does  require a lot of RAM...

 

the machine that's running the clears is 4gb ram and AMD Athlon™ 64 X2 Dual Core 5400+ @ 2800

 

i've had it running 2 simultaneously no problem using bj somethings script the one with the fast postread.

 

But yea trying with this new built in one of gfjardim as i said before is how it's behaving.. I'm curious as to if the 2nd one starts back up after the 1st one finishes or if it's in fact still running but just not updating. I'll see in the morning, and post back what happened. I'm actually using the script atm to clear and test a heap of old drives for work. So I'll put a couple different drives in tomorrow as well and see what happens.

 

btw it's running 6.2 rc4. with the 29/8 version of preclear.

Link to post

gfjardim firstly I'd like to say this is a fantastic plugin. I've used it on 4 drives now and it's worked superbly.

 

However during the preclear of my last drive I updated the plugin to 2016.08.29 version. Admittedly should have waited for the preclear to finish but if i'm honest I forgot it was running! Anways....

 

Preclear finished no problem, but since rebooting my server the preclear icon has disappeared from my settings tab. (V6.1.9). I can get to the settings by typing server/settings/preclear into my browser as a workaround but the icon has disappeared.

 

I also installed the 'fix common problems' plugin before rebooting the server so I was wondering if they aren't playing well with each other for some reason. I have since removed both plugins, deleted the plugin data from the flash, rebooted and reinstalled just the preclear plugin but still no joy.

 

Any suggestions??

 

EDIT: Note to self, read release notes...

 

I have searched the forums and other people are finding this issue, I shall read further but when trying to run a preclear on another disk if I click the eye icon to view the progress I just get

tput: unknown terminal "screen"

tput: unknown terminal "screen"

tput: unknown terminal "screen"

etc,etc

 

I've noticed some people suggesting to use the original scripts but I don't get that option from the drop down when selecting preclear.

Link to post

 

But yea trying with this new built in one of gfjardim as i said before is how it's behaving.. I'm curious as to if the 2nd one starts back up after the 1st one finishes or if it's in fact still running but just not updating. I'll see in the morning, and post back what happened. I'm actually using the script atm to clear and test a heap of old drives for work. So I'll put a couple different drives in tomorrow as well and see what happens.

 

btw it's running 6.2 rc4. with the 29/8 version of preclear.

 

So after the first one finished the 2nd one still didn't budge. so ended up just stopping it and restarting... after that finished. put a couple more drives in, and the same thing started up the first, then started up the 2nd, and the first ones timer and percentage stopped increasing.

 

Link to post

 

I have searched the forums and other people are finding this issue, I shall read further but when trying to run a preclear on another disk if I click the eye icon to view the progress I just get

tput: unknown terminal "screen"

tput: unknown terminal "screen"

tput: unknown terminal "screen"

etc,etc

 

I've noticed some people suggesting to use the original scripts but I don't get that option from the drop down when selecting preclear.

 

Getting the same thing.. Joe. L's works fine as suggested. Not all the options your building in though. Any idea? Looks like it running ok in the status on the pluggin, just the popup windows does not display the working stats.

Link to post

I have just finished a preclear and i got an error msg about the reports location

 

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1401: /boot/preclear_reports/preclear_report_W301AZNH_2016.09.09-00:10:22.txt: Invalid argument

 

I got the folder but no logs.

Link to post

haven't had to preclear a drive in ages. It said it passed but got this.

 

############################################################################################################################

#                                                                                                                          #

#                                        unRAID Server Pre-Clear of disk /dev/sdk                                          #

#                                      Cycle 1 of 1, partition start on sector 64.                                        #

#                                                                                                                          #

#                                                                                                                          #

#  Step 1 of 5 - Pre-read verification:                                                  [14:58:14 @ 74 MB/s] SUCCESS    #

#  Step 2 of 5 - Zeroing the disk:                                                        [7:19:05 @ 151 MB/s] SUCCESS    #

#  Step 3 of 5 - Writing unRAID's Preclear signature:                                                          SUCCESS    #

#  Step 4 of 5 - Verifying unRAID's Preclear signature:                                                        SUCCES/usr/local/emhttp/plug

ins/preclear.disk/script/preclear_disk.sh: line 782: echo: write error: No space left on device                            #

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 807: echo: write error: No space left on device      #

cat: write error: No space left on device                                                                                  #

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1357: echo: write error: No space left on device    #

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1358: echo: write error: No space left on device    #

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1367: /boot/preclear_reports/preclear_report_5000c500742a477b_2016.09.

10-22:33:12.txt: Invalid argument                                                                                          #

/usr/local/emhttp/plugins/preclear.disk/script/preclear_disk.sh: line 1383: /tmp/.preclear/sdk/smart_out: No such file or directory

############################################################################################################################

Warning: file_put_contents(): Only 0 of 545 bytes written, possibly out of free disk space in /usr/local/emhttp/plugins/dynamix/scripts/noti

fy on line 191##############################################################################################################

 

Warning: file_put_contents(): Only 0 of 187 bytes written, possibly out of free disk space in /usr/local/emhttp/plugins/dynamix/scripts/noti

fy on line 192

root@Tower:/usr/local/emhttp

Link to post
  • trurl featured, unfeatured and pinned this topic

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.