move zvol to new pool

dealy663

Dabbler
Joined
Dec 4, 2021
Messages
32
Hi, I have a dataset and zvol which act as the drive for an Ubuntu VM on TrueNAS-SCALE-22.02-RC.2. I need to move that over to a different Pool, but so far haven't figured this out. I've already created a snapshot of the DS and Zvol. But cloning seems to only work on the same Pool (at least in the UI). I've found a few references from TrueNAS core about using zfs send/receive commands, but the zfs command is unavailable on scale.

What is the best way to get the DS and ZVol over to the new pool?

Thanks, Derek
 

Tony-1971

Contributor
Joined
Oct 1, 2016
Messages
147
Hello,
The zfs command is available for root user (ie from System Settings / Shell or you can create a user with ssh and sudo access).
Best Regards,
Antonio
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
If you're under the absolutely false impression that the zfs command is missing under SCALE, perhaps you were looking for a way to move a ZVOL in the GUI?

Under Data Protection | Replication Tasks, create a new task with the source of the ZVOL and the destination on the desired new pool.

Once completed, destroy the original... move complete.
 

dealy663

Dabbler
Joined
Dec 4, 2021
Messages
32
Hmm, where specifically is the zfs command? It is not on the path when I login as root.

I was using ssh. I've found it when connecting via the console/shell in the UI. I typically don't use the console, maybe I need to start doing that.
 
Last edited:

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
Code:
root@scale3[~]# which zfs
/usr/sbin/zfs
 
Top