Menu Close

How to move ZVol or Dataset to another pool

To move a ZVol, you would first create a snapshot of the ZVol, then use the zfs send and zfs receive commands to transfer the snapshot data to the target pool. For example:

Move a zvol called myVol from pool aaa to pool bbb

zfs snapshot -r aaa/[email protected]
zfs send aaa/[email protected] | zfs receive -v bbb/[email protected]

 

Move a dataset called myDS from pool aaa to pool bbb

zfs snapshot -r aaa/[email protected]
zfs send aaa/[email protected] | zfs receive -v bbb/[email protected]

It is important to note that the zfs send and zfs receive commands can be used to transfer datasets and ZVols between pools on the same system, or between different systems over a network. This allows you to easily move data between pools, whether they are on the same system or on different systems.

Leave a Reply

Your email address will not be published. Required fields are marked *

%d bloggers like this: