Error when migrating zfs data

Status
Not open for further replies.

enry

Dabbler
Joined
Apr 10, 2016
Messages
21
Setup is two Volumes.

Volume01 is 4 disks (2x2TB, 2x4TB) - 3.7TB in use
Volume02 is 2 disks (2x6TB)

I want to migrate the data from Volume01 to Volume02. Following the excellent directions I migrated the system data to the boot disk and then tried to do the snapshot and send/receive. Then I get this:

root@debbie:~ # zfs snapshot -r Volume01@migrate
root@debbie:~ # zfs send -R Volume01@migrate | zfs receive -F Volume02
internal error: Invalid argument
warning: cannot send 'Volume01/.vm_cache/boot2docker@migrate': signal received
Abort (core dumped)
root@debbie:~ #


This is a system I've had for a number of years (and migrated through Coral). I'm not using docker at all (two jails and three VMs). So my question is: What now?
 

leenux_tux

Patron
Joined
Sep 3, 2011
Messages
238
It looks to me like the syntax is slightly wrong. Please take a look here (https://docs.oracle.com/cd/E23823_01/html/819-5461/gbciq.html#gbcya) for some excellent examples.

I think you should be doing something like this....

zfs snapshot -r Volume01/FILESYSTEMNAME@migrate

Then zfs send Volume01/FILESYSTEMNAME@migrate | zfs receive Volume02/NEWFILESYSTEMNAME

I send snapshots to another server for archivng purposes so my commands are different than what you are attempting to do, hopefully the above works for you
 

enry

Dabbler
Joined
Apr 10, 2016
Messages
21
The documentation says I can snapshot a volume, which is what I want to do:

Code:
Snapshots are created by using the zfs snapshot command, which takes as its only argument the name of the snapshot to create. The snapshot name is specified as follows:

filesystem@snapname
volume@snapname
 
Status
Not open for further replies.
Top