Rebuilding pools - cannot find migrated files

raspino

Dabbler
Joined
Jun 9, 2019
Messages
10
I have added a new drive to my freenas box so I can increase an existing pool of 3 10TB drives (zpool one) to 4 10TB drives . I also have a second pool that has two 10TB drives (zpool two). I took a snapshot of the data in the zpool one and sent it to zpool two which appeared to have worked but I cannot find the data in zpool two because when I cd into the pool, I don't see the data I sent. It appears the send command worked because when I attempt to send the snapshot to zpool two again, I get the following error:

root@freenas[~]# zfs send -R zpoolone@migrate | zfs recv -Fv zpooltwo
cannot receive new filesystem stream: destination has snapshots e.g. zpool@migrate) must destroy them to overwrite it warning:

How do I confirm that the send command work if I cannot find the files in the zpool two ?
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I have added a new drive to my freenas box so I can increase an existing pool of 3 10TB drives (zpool one) to 4 10TB drives . I also have a second pool that has two 10TB drives (zpool two). I took a snapshot of the data in the zpool one and sent it to zpool two which appeared to have worked but I cannot find the data in zpool two because when I cd into the pool, I don't see the data I sent. It appears the send command worked because when I attempt to send the snapshot to zpool two again, I get the following error:

root@freenas[~]# zfs send -R zpoolone@migrate | zfs recv -Fv zpooltwo
cannot receive new filesystem stream: destination has snapshots e.g. zpool@migrate) must destroy them to overwrite it warning:

How do I confirm that the send command work if I cannot find the files in the zpool two ?
You should be able to see the directory tree and all the files. Check zfs list to see if there is data on the pool
 

raspino

Dabbler
Joined
Jun 9, 2019
Messages
10
I checked zfs list and unfortunately I don't see it in the directory. zfs list shows only the top level name of the pool and other system paths but not the data files I copied. When I cd into the pool, I am able to see all existing files that were already in the pool but not the new ones I sent. Puzzling.
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
I checked zfs list and unfortunately I don't see it in the directory. zfs list shows only the top level name of the pool and other system paths but not the data files I copied. When I cd into the pool, I am able to see all existing files that were already in the pool but not the new ones I sent. Puzzling.
You did the replication wrong. Try again and remove the snapshot on the destination
 

SweetAndLow

Sweet'NASty
Joined
Nov 6, 2013
Messages
6,421
Do you mean, this is wrong ?
root@freenas[~]# zfs send -R zpoolone@migrate | zfs recv -Fv zpooltwo ?
Well it's wrong because it didn't work. No clue what you did wrong. Try giving it a pool/dataset for the recv side, not just the pool.
 

raspino

Dabbler
Joined
Jun 9, 2019
Messages
10
how do I specify the data set. Perhaps start from where I create a new dataset.
 

raspino

Dabbler
Joined
Jun 9, 2019
Messages
10
I created the new data set so I just have to specify it in my send/receive command.
root@freenas[~]# zfs send -R zpoolone@migrate | zfs recv -Fv zpooltwo ?
 

raspino

Dabbler
Joined
Jun 9, 2019
Messages
10
I think I found out how to do it. I will check to see if the files transferred correctly after the send/receive is finished.
 
Top