GUI Shell - retrieve sg_format status

Hi, I’m fairly new to the inter workings of Truenas, but I’m am comfortable in the terminal, although I made a mistake when running sg_format.

First the backstory: I rand into an alert with one of my drives that it has the Data Integrity Feature turned on and it’s not supported. I came across a posting on how to disable it with sg_format (couldn’t post link in forum)

The process went:
Make that drive offline in the RAIDZ3 array, and run the command:

sg_format -v -F /dev/sdj

I forgot to run it in tmux, and I left the shell.

My question, is there a way to get a status of the currently running command IF it’s still running.

I’ve attempted to get the status with:

sg_readcap -l /dev/sdj     

The output says the Read Capacity failed and sg_readcap failed “Device not ready”

Any help with this would be appreciated.

sudo ps -ef | grep sg_format It will show you any running jobs with that name, or you can run top and watch running processes.

Thanks, that was fruitful.

I’m dealing with a whole new issue where the disk drive is “not Ready”. I finally figured out how to identify it, and I’m hoping a GUI wipe saves my bacon.

1 Like