Decrypt Pool on command line

jostr

Cadet
Joined
Feb 9, 2023
Messages
1
I can decrypt a pool on command line:

zfs load-key -r "pool name"

I can also mount the pool:

zfs mount -a

So I can write data to the mounted pool, but the samba shares aren't accessible.

Also restarting the smbd service does not help:
systemctl restart smbd

I have to login on the web gui and toogle the samba share.
Shares -> Windows (SMB) Shares -> Name -> "my share" and toogle the activiation button.
After this I can access the samba share from the network.

Does anyone know how to make the samba share accessible on the command line?
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,700
If the actions performed in the GUI are effective, you should be able to get the same result with API calls on the command line.

I'll let you wrangle with the API peculiarities for this as it's frustrating as hell, but for the unlock, it will go something like this: midclt call pool.dataset.unlock <properties>

For SMB restart, it's simpler:
midclt call service.restart cifs
 
Top