Aborted "Clear an Array Drive" Script Keeps Running


Recommended Posts

So after a day and a half of running the above script (array disk clearing) I calculated how long it will take, and it's more than a month, so I aborted it. 

Thing is the "WRITES" column in MAIN screen show that it's still active. Nothing access the drive and it's still empty.

No "Abort" button for the script anymore.

2021-06-01_10-12-44.jpg

Edited by Gico
Link to comment
  • Gico changed the title to Aborted "Clear an Array Drive" Script Keeps Running

So apparently "if the script called a long running command at the time of abort (something like find) then that command will run to completion."

Can I kill this script? How do I identify the relevant process?

The disk would probably be unmountable. How can I format it while preserving parity?

Link to comment

To return to the state before running the script : disk18 is part of the array and working normally.

 

Anyway I managed to solve the issue:

Found the running process of the script through: ps -axjf

Killed the script process through: kill -9 <process-id>

Stopped the array, started it and formatted disk18 which was unmountable.

 

Thanks.

Link to comment
6 hours ago, Gico said:

To return to the state before running the script : disk18 is part of the array and working normally.

I asked because running that script is normally a precursor to removing a drive, and the best way forward depended on a whole bunch of factors, especially since you said

22 hours ago, Gico said:

while preserving parity?

So, given that you just wanted to go back to using the drive in the array, you did exactly what was needed.

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.