How to amend scrub tasks using SSH

GiBgeeks

Cadet
Joined
Jan 9, 2024
Messages
4
I need to amend my scrub tasks by using the SSH is there a way to do this?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194
Maybe through the API, but why not use the GUI?
 

GiBgeeks

Cadet
Joined
Jan 9, 2024
Messages
4
Maybe through the API, but why not use the GUI?
My Scrub GUI stopped working about 2 weeks ago all other widgets work fine. And nobody replied to my query about how too get the GUI working. So rrealy desperatly need to amend the scub taks times I previously set up Hence looking at SSH as an option Do ytou have any ideas?
 

Ericloewe

Server Wrangler
Moderator
Joined
Feb 15, 2014
Messages
20,194

GiBgeeks

Cadet
Joined
Jan 9, 2024
Messages
4
That's very weird. In a nutshell, if you scrub the boot pool and there are no errors, definitely file a bug report for that. In the meantime, the API should allow you to do this (https://www.truenas.com/docs/scale/23.10/api/scale_rest_api.html - search for pool.scrub) and the TrueNAS CLI might have something too.
I am not getting errors on the boot pool, but 1 error on a pool which is 6 wide (Z2) 2 driives are showing errors so the pool has degraded. Otherwise, Thanks for the info you sent I will read through it and try to make sense of it as I have not used the 'API' before. I am new to truenascale all I reallly need to do is change the scrub times to around 8pm to avoid an auto shutdown script.
 
Top