Generally "zfs send | zfs receive" works very well. But when we transfer several datasets from one pool to the other only the first mountpoint is set as expected:
Using:
creates correct mountpoint
But the second transfer:
does not change the mountpoint
We can change the mountpoint later, but this seems to be a bug.
Using:
zfs send -R zDataStorage8Backup/datasetShares@auto-20211027-050000 | zfs receive -Fd zDataStorage8
creates correct mountpoint
Code:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
zDataStorage8 315M 13.9T 128K /zDataStorage8
zDataStorage8/datasetShares 311M 13.9T 311M /zDataStorage8/datasetShares
zfs send -R zDataStorage8Backup/datasetVM@auto-20211027-120000 | zfs receive -Fd zDataStorage8
does not change the mountpoint
Code:
zfs list
NAME USED AVAIL REFER MOUNTPOINT
zDataStorage8 2.22T 11.7T 128K /zDataStorage8
zDataStorage8/datasetShares 2.16T 11.7T 2.10T /zDataStorage8/datasetShares
zDataStorage8/datasetVM 62.0G 11.7T 62.0G /zDataStorage8Backup/datasetVM