Solved How to migrate zroot/home to another pool?

Hi guys, this week-end I am very active, I apology for making so many questions... 🙏

I am reinstalling again FreeBSD after a critical disaster, eventually I went for this topology:

System 1 NVME single stripe (no redundancy)
Home 2 SSD Mirror

Next I need to create the ZFS mirror, I am still unsure how to prepare the disks, however this is the current zfs data sets:

Code:
# zfs list
NAME                 USED  AVAIL  REFER  MOUNTPOINT
zroot               10.5G   207G    96K  /zroot
zroot/ROOT          8.52G   207G    96K  none
zroot/ROOT/default  8.52G   207G  8.52G  /
zroot/home           102M   207G    96K  /home
zroot/home/$USER     102M   207G   102M  /home/$USER
zroot/tmp            160K   207G   160K  /tmp
zroot/usr           1.83G   207G    96K  /usr
zroot/usr/ports       96K   207G    96K  /usr/ports
zroot/usr/src       1.83G   207G  1.83G  /usr/src
zroot/var           1.18M   207G    96K  /var
zroot/var/audit       96K   207G    96K  /var/audit
zroot/var/crash      100K   207G   100K  /var/crash
zroot/var/log        664K   207G   664K  /var/log
zroot/var/mail       152K   207G   152K  /var/mail
zroot/var/tmp         96K   207G    96K  /var/tmp

Once I created the new pool, for instance zhome, is there any command to import zroot/home & zroot/home/$USER into the new pool?

Otherwise what should I do?

Delete zroot/home & zroot/home/$USER and create new zfs sets: zhome/home & zhome/home/$USER

Thank you very much!!!
 
Why do you need another pool? Is not a separate tank (array) in the same pool enough? For example, zroot/HOME alongside zroot/ROOT

I am not very expert and prone to confuse stuff.

After the installation zroot/home is on zroot pool, I have a new mir where moving zroot/home, I am asking for recommendations...
 
I used the guide above however I stepped into this problem:

Code:
zfs set mountpoint=none zroot/home
cannot unmount '/home/$user': pool or dataset is busy

Is there a way to make an hot swap or do I need to enter with a CD live?

:(
 
Solved I had to deactivate the old mount point in single mode and activate the new ones as regular boot, my only concern is this correct or expected:

Code:
NAME                 USED  AVAIL  REFER  MOUNTPOINT
zhome               95.5M   922G    96K  /zhome
zhome/home          94.6M   922G    96K  /home
zhome/home/$USER    94.4M   922G  84.7M  /home/$USER

Must zhome be mounted in /zhome?

Thanks... 🙏
 
Back
Top