Messed up a zfs restore
I use zfs for my cache in a zpool named pool. Yesterday for the first time ever I had to restore from a backup.. and I think I messed it up.
I've ended up with a zfs list that looks like this: pool 4.51T 9.86T 96K /mnt/pool pool/restore 4.51T 9.86T 156K /mnt/pool pool/restore/appcache 347G 9.86T 347G /mnt/pool/appcache pool/restore/appdata 511G 9.86T 377G /mnt/pool/appdata
I did a "zfs receive pool@restore" because "zfs receiver pool" didn't work. Now my backup scripts don't work because pool/appdata doesn't exist, only pool/restore/appdata.
Does anyone know how to fix this and move all these subpools from pool/restore/? to pool/?
SOLVED: ThunderousHazard's comment. zfs rename all the subpools, then set mountpoint for pool/restore elsewhere. Do when the array is shutdown.