Troubleshooting Sector Removals #8431
TippyFlitsUK
started this conversation in
Tutorials
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Overview
Sector sealing can fail for a number of reasons and may cause various issues. Whilst it is always suggested that miner admin or system maintenance be performed with an empty sealing queue, it is not always possible. Disruptions to the sealing pipeline can cause sector removal or termination difficulties which may in turn negatively impact window posts.
Depending on the nature of the failure you may find that
lotus-miner sectors remove
orlotus-miner sectors terminate
commands do not result in successful removal or termination of the sector in question.Detailed below are a few methods that may help finalize the removal or termination of failed sectors. Please apply the methods in the order listed in order to minimize further disruption to active sealing tasks that you may wish to retain.
Step 1: Initiate a Scheduler Update
It may initially appear that running
lotus-miner sectors remove
orlotus-miner sectors terminate
command fails to have any immediate effect.Just like any other sealing step transition (e.g. PC1 to PC2), remove and terminate requests are queued by the lotus scheduler (FSM). If the sector in question is still actively trying to complete sealing, the remove/terminate command will not actually trigger until the current task has been completed.
Example:
Rather than restarting your worker or miner which will disrupt the other sealing sectors, you can simply run:
lotus-miner sealing remove 1237
lotus-miner sealing abort 1237
This will prompt the Lotus scheduler to cancel the current PC1 job and apply the `lotus-miner sealing remove' request that you have just issued.
Step 2: Terminate With Lotus Shed
Lotus Shed is not installed by default when installing Lotus. Please follow the steps detailed here.
Lotus Shed includes a function to terminate sectors. Using the example data above the correct command to run would be:
lotus-shed sectors terminate --really-do-it 1237
Step 3: Create Dummy Sector Data
You may encounter a sector removal situation where the
sealed
,unsealed
and/orcache
sector files have been deleted but the sector remains in yourlotus-miner sectors list
and/or on-chain.You can repopulate the missing data by either duplicating an existing sector's data and renaming the folder/files or by creating empty files/folders to act as placeholders using
touch
.In the event that the sector sucessfully completed sealing, you will need to create the dummy data in your long-term storage folder as follows:
In the event that the sector failed to complete sealing, you will need to create the dummy data in your sealing folder as follows:
Having created the dummy data you will then need to restart your miner (and worker if applicable) and then run the
lotus-miner sectors remove
orlotus-miner sectors terminate
command again.Conclusion
If you are unable to remove/terminate your sector after following all three steps, please reach out to the Lotus Team in Slack.
Please feel free to add a comment to this post if you would like to share additional methods. 🙏
Beta Was this translation helpful? Give feedback.
All reactions