Preclear plugin


Recommended Posts

7 minutes ago, wgstarks said:

What happens when you click the red X?

I believe that when I clicked the red X a day or so ago, it never showed that the drive was precleared and all attributes on that line had a dash -.

 

But at that time I don't remember whether or not I stopped the array or not.

 

I can run the preclear again, but it will take a while.

 

Link to comment
On 1/20/2018 at 1:12 PM, Melocco said:

I was told that 6.4.0 has issues and I see here what's going on..   But I removed the preclear plug in and I'm getting this in my logs, over and over again.. 

 

HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "localhost", referrer: "http://localhost/Main"
Jan 20 14:07:21 WHS nginx: 2018/01/20 14:07:21 [error] 10083#10083: *1239641 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 127.0.0.1, server: , request: "POST /plugins/preclear.disk/Preclear.php 

 

Any Idea what it may be about? It's filling my logs and giving me errors that my log is full..  Thanks in advance...

 

On 1/20/2018 at 1:25 PM, dlandon said:

Reboot your server.

Does anyone know anything more about this error? I had an issue after upgrading to the latest stable verision where the gui kept showing "array undefined" and "array started". I removed the preclear plugin and unassigned devices. After removing those and rebooting, it looks like my array is staying started but I am seeing this same error multiple times a second in my system log.
 

Jan 22 21:15:30 HomeNAS nginx: 2018/01/22 21:15:30 [error] 5610#5610: *2916 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.252, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.1.251", referrer: "http://192.168.1.251/Dashboard"

I've attached the diagnostic file generated by the system as well. Any help is greatly appreciated.

homenas-diagnostics-20180122-2105.zip

Link to comment
7 hours ago, ElBurrito said:

 

Does anyone know anything more about this error? I had an issue after upgrading to the latest stable verision where the gui kept showing "array undefined" and "array started". I removed the preclear plugin and unassigned devices. After removing those and rebooting, it looks like my array is staying started but I am seeing this same error multiple times a second in my system log.
 

Jan 22 21:15:30 HomeNAS nginx: 2018/01/22 21:15:30 [error] 5610#5610: *2916 FastCGI sent in stderr: "Primary script unknown" while reading response header from upstream, client: 192.168.1.252, server: , request: "POST /plugins/preclear.disk/Preclear.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/php5-fpm.sock:", host: "192.168.1.251", referrer: "http://192.168.1.251/Dashboard"

I've attached the diagnostic file generated by the system as well. Any help is greatly appreciated.

homenas-diagnostics-20180122-2105.zip

Several things:

- Be sure you have all browsers closed that may be accessing your unRAID webgui.  A preclear still open in another computer?

- Your flash has had some errors.  Check it in a Windows computer and be sure there are no problems with the flash.

/boot
total 158352
drwxrwxrwx 3 root root     8192 Jan 12 20:23 EFI-
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0000.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0001.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0002.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0003.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0004.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0005.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0006.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0007.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0008.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0009.REC
-rwxrwxrwx 1 root root   434176 Dec 31  1979 FSCK0010.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0011.REC

 

  • Upvote 1
Link to comment
On 2018-01-22 at 1:04 PM, Limy said:

I'm currently running the stable release 6.4.0 and I have only one problem with the Preclear plugin.

 

After I preclear the drive in the unassigned devices section, It says that the preclear completed successfully, but I have the option to cancel currently running preclear as can be seen in the attached screenshot.

 

5a66429b18ec5_ScreenShot2018-01-22at12_35_04PM.thumb.png.b10251b2d966a454bb23c2e6e694aff0.png

 

I cannot get that message to disappear unless I stop the unRAID server and reboot the server, which then gives me this attached screenshot.

 

5a66429c063f9_ScreenShot2018-01-22at12_39_18PM.thumb.png.a47d4197a27cd055183ef67112a2b509.png

 

Is this normal behaviour with this plugin?

 

Here is a followup of my testing to try to get to the bottom of this.

 

So I re-ran the Preclear (1 Cycle).  After the preclear, the unassigned shows this:

 

5a679668150fd_ScreenShot2018-01-23at12_55_24PM.thumb.png.305751045842305d21b3b7d03b961866.png

 

Clearly it shows the it's completed and the e-mail notification indicate that as well.

 

So I pressed the Red X and I was presented with the following screen:

 

5a679668eb770_ScreenShot2018-01-23at12_55_42PM.thumb.png.8e07e7afaaaf5ece1f4717d7c0a5510a.png

 

As you can see, the drive does not show the status as precleared.  It does not change even if you refresh the screen.

 

So I shutdown two VM's that I was running and then went back to the Main tab and now the screen shows this:

 

5a6796670377d_ScreenShot2018-01-23at1_03_51PM.thumb.png.411ecb743793485d48807358c46b6478.png

 

All I can say, is that I really am baffled by this.  I would be happy to hear from anyone else that has noticed this behaviour.

Link to comment
2 minutes ago, wgstarks said:

I’m not sure there is such a status. What you are seeing is that the drive can either be precleared again or formatted. Not sure what behavior you’re expecting. Maybe I’m missing something?

 

Sorry wgstarks, I should have been more clear.  What my issue is I guess is that the FS column in the Unassigned Devices did not show the drive as precleared until I stopped the VM's that I was running.

 

Personally I think that after you preclear a drive, it should update the information in the Unassigned Devices section when it is completed.  Currently on my install that is not occurring.

 

I guess I expected a different behaviour.

 

Thanks for responding.

Link to comment
35 minutes ago, Limy said:

 

Here is a followup of my testing to try to get to the bottom of this.

 

So I re-ran the Preclear (1 Cycle).  After the preclear, the unassigned shows this:

 

5a679668150fd_ScreenShot2018-01-23at12_55_24PM.thumb.png.305751045842305d21b3b7d03b961866.png

 

Clearly it shows the it's completed and the e-mail notification indicate that as well.

 

So I pressed the Red X and I was presented with the following screen:

 

5a679668eb770_ScreenShot2018-01-23at12_55_42PM.thumb.png.8e07e7afaaaf5ece1f4717d7c0a5510a.png

 

As you can see, the drive does not show the status as precleared.  It does not change even if you refresh the screen.

 

So I shutdown two VM's that I was running and then went back to the Main tab and now the screen shows this:

 

5a6796670377d_ScreenShot2018-01-23at1_03_51PM.thumb.png.411ecb743793485d48807358c46b6478.png

 

All I can say, is that I really am baffled by this.  I would be happy to hear from anyone else that has noticed this behaviour.

VMs have nothing to do with this status.  It's probably because you left the UD web page and then came back.  You can probably accomplish the same thing by refreshing the page, or clicking the Rescan icon in the upper right corner of the UD web page.

Link to comment
2 minutes ago, dlandon said:

VMs have nothing to do with this status.  It's probably because you left the UD web page and then came back.  You can probably accomplish the same thing by refreshing the page, or clicking the Rescan icon in the upper right corner of the UD web page.

 

Thanks dlandon for that tip.  I totally forgot about the Rescan Disks icon.  Thanks for pointing that out.

Link to comment
12 hours ago, dlandon said:

Several things:

- Be sure you have all browsers closed that may be accessing your unRAID webgui.  A preclear still open in another computer?

- Your flash has had some errors.  Check it in a Windows computer and be sure there are no problems with the flash.


/boot
total 158352
drwxrwxrwx 3 root root     8192 Jan 12 20:23 EFI-
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0000.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0001.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0002.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0003.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0004.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0005.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0006.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0007.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0008.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0009.REC
-rwxrwxrwx 1 root root   434176 Dec 31  1979 FSCK0010.REC
-rwxrwxrwx 1 root root     8192 Dec 31  1979 FSCK0011.REC

 

So this error in the log is related to the web gui being open in a browser and not the preclear plugin? I will shut down my server and check the flash drive in my windows PC.

Link to comment
8 minutes ago, ElBurrito said:

So this error in the log is related to the web gui being open in a browser and not the preclear plugin? I will shut down my server and check the flash drive in my windows PC.

No.  It appears you have multiple issues.  I didn't see any reason for the preclear errors, but did notice you had some flash issues.

  • Upvote 1
Link to comment
9 minutes ago, dlandon said:

No.  It appears you have multiple issues.  I didn't see any reason for the preclear errors, but did notice you had some flash issues.

Gotcha. I shutdown my server and put the flash drive in my windows laptop. When I initially inserted it, it prompted me with message that stated "errors where found on drive, click to repair". When I click to scan it, it then completed and told me no errors.

Link to comment
23 minutes ago, dlandon said:

No.  It appears you have multiple issues.  I didn't see any reason for the preclear errors, but did notice you had some flash issues.

 

11 minutes ago, ElBurrito said:

Gotcha. I shutdown my server and put the flash drive in my windows laptop. When I initially inserted it, it prompted me with message that stated "errors where found on drive, click to repair". When I click to scan it, it then completed and told me no errors.

 

Okay, so after putting the drive in my windows laptop and scanning, once the server booted back up, I am no longer seeing the errors in the log. Thanks for the help.

Link to comment
8 minutes ago, AnnabellaRenee87 said:

Didn't mean to come off as rude, feeling under the weather today. It's installed, I assume once it's updated it will start working again.

Sorry ?

 

The reason that I asked about what you are seeing is that it was installed on my Test Bed server and I am currently running 6.4.1-rc1 and the plugin initializes when the icon is clicked in the Tool tab.  (I don't have a disk available for testing the actual preclearing at the present time.) 

Link to comment
4 minutes ago, Frank1940 said:

 

The reason that I asked about what you are seeing is that it was installed on my Test Bed server and I am currently running 6.4.1-rc1 and the plugin initializes when the icon is clicked in the Tool tab.  (I don't have a disk available for testing the actual preclearing at the present time.) 

You've probably got the errors in your syslog since Preclear was installed prior to your upgrade.  This problem will require an update to the plugin by @gfjardim

Link to comment

given that the preclear plugin has not been updated for 6.4, I need to turn to WD data lifeguard to preclear a new disk I purchased to replace my existing parity. I dont really want to risk my server not booting

 

Im looking at the options in the program: Quick test, extended test, erase

 

Which option would be equivalent to running the preclear plugin for 2-3 passes? Would it be running erase 2-3 times?

Link to comment
20 minutes ago, Nem said:

Which option would be equivalent to running the preclear plugin for 2-3 passes? Would it be running erase 2-3 times?

I don't think you can assume any of the options are equivalent to preclear, though they may serve the testing function in some way.

 

The original purpose of preclear was to write all zeros to the disk so that it could be added to a new slot without invalidating parity.

 

Even if WD writes all zeros, it is unlikely to write the preclear signature that unRAID looks for to know that the disk is clear. So in the end, after you test a disk with WD, unRAID will still want to clear it if you add it to a new slot.

Link to comment
5 hours ago, John_M said:

 

The plugin needs to be updated for compatibility with unRAID 6.4.x (see some of the other posts on this page).

In order to limit the amount of support requests regarding this, Preclear (and Advanced Buttons) are now marked as being incompatible with 6.4.1 until such time as someone lets me know otherwise

  • Upvote 1
Link to comment
  • Squid unpinned 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.