• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Solaris11: Permission issues with auto-scrub ZFS pool

taltamir

Lifer
Short version:
Code:
pfexec zpool scrub rpool
fails saying I do not have permission to perform that action. Apparently scrub is not one of the pfexec allowed actions. Any idea on how to get around it?

Long version:
I got tired of manually running scrubs and am trying to set it to happen automatically.
Seems simple enough to set up a cron job for it (once google informed me of the existance of cron 😛).

Wanting to test it out and isolate issues and such, and based on my experience I figured the best way to do so is to use a script.
Simply create a new file /usr/scripts/scrub.sh which contains:
Code:
pfexec zpool scrub rpool
pfexec zpool scrub tank

But that doesn't work, no permissions. I verified it by trying just typing
Code:
pfexec zpool scrub rpool
by itself.

I could modify the script to remove pfexec instances and then I just need to schedule the script to run as an administrator. Which I don't know how to do.

Any ideas / suggestions?
 
Back
Top