Jump to content

Preclear (preread) for disk failed


Recommended Posts

Hi,

I'm looking to add a couple of used disks to my array.

While trying to preclear the disk, `preread` seems to fail.

 

 dd process hung at 0, killing ...
 Pre-read: pre-read verification started 3 of 5 retries...
 Pre-Read: dd output: 0 bytes copied, 501.851 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 501.853 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 501.863 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 501.873 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 501.875 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 501.885 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 501.895 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 501.898 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 dd process hung at 0, killing ...
 Pre-read: pre-read verification started 4 of 5 retries...
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.505 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.515 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.744 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.767 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.777 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.786 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.796 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 502.805 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 dd process hung at 0, killing ...
 Pre-read: pre-read verification started 5 of 5 retries...
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 503.133 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 503.143 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 503.152 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 503.161 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 503.171 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 503.18 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-Read: dd output: 0 bytes copied, 503.189 s, 0.0 kB/s
 Pre-Read: dd output: dd: error reading '/dev/sdb': Input/output error
 Pre-Read: dd output: 0+0 records in
 Pre-Read: dd output: 0+0 records out
 Pre-read: pre-read verification failed!
 error encountered, exiting ...

 

But if I run preclear skipping preread and postread, it succeeds.

 

Preclear Disk Version: 1.0.30
Disk size: 6001175126016
Disk blocks: 1465130646
Blocks (512 bytes): 11721045168
Block size: 4096
Start sector: 0
Zeroing: zeroing the disk started 1 of 5 retries...
Zeroing: emptying the MBR.
Zeroing: progress - 25% zeroed @ 181 MB/s
Zeroing: progress - 50% zeroed @ 167 MB/s
Zeroing: progress - 75% zeroed @ 139 MB/s
Zeroing: zeroing the disk completed!
Signature: writing signature...
Signature: verifying Unraid's signature on the MBR ...
Signature: Unraid preclear signature is valid!
Cycle: elapsed time: 10:48:23
Preclear: total elapsed time: 10:48:23

 

Does this mean that the disk is faulty ?

Link to comment

Hi @JorgeB,

Thanks, that seems to have worked. I am able to preclear those disks now.

 

However, even after preclearing them, when I add the disk to the array, it still takes hours (15+) to then format the precleared disk.

I thought the whole idea of preclearing was that once preclear is done (which itself takes 12+ hours) adding them to the array should be fast ? Or is my understanding wrong and preclearing the disk simply avoids the need for a parity rebuild ? I don't suppose I should format a precleared disk separately before adding it to the array ? Thanks

Link to comment
6 hours ago, sid said:

when I add the disk to the array, it still takes hours (15+) to then format the precleared disk.

Formatting does not happen at the point you add the disk.   If it was precleared and then nothing was done to the disk it should add virtually instantly.    If it was not still in a preclear state then Unraid would 'clear' it (which can be a lengthy process).   Are you sure this was not what was happening?  Formatting takes place after adding the drive successfully (regardless of preclear) and normally only takes minutes.

 

6 hours ago, sid said:

I don't suppose I should format a precleared disk separately before adding it to the array

Definitely not.   This would destroy the 'preclear' state and force Unraid to go through the 'Clear' process when you add the drive to the array.

 

If you think something else was happening then provide new diagnostics - that  might allow us to work out what happened.

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