How to preclear a disk that is assigned to the array?


Recommended Posts

A disk has developed reallocated sectors and I like to check if it will increase the reallocated sector count after a few preclear runs. Can I just unassign the empty disk and then run a preclear on it, without losing parity or should I set a new config anyhow? 

Edited by dikkiedirk
Link to comment

I may have misunderstood your question, but to pre-clear a disk that is already assigned to the array, stop the array and unassign the disk.  More than likely you will need to start the array with the disk unassigned for the pre-clear script to run because disk assignments don't get updated until the array is started.  When the pre-clear is finished, re-assign the disk and let it rebuild the disk from parity (even though the rebuild will be of an empty disk). That's how I would do it.  I suppose if you want to maintain parity through the entire process, you can shrink the array first since the disk is empty.

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.