How can I change a ZFS mountpoint from legacy to be handled by ZFS
2
votes
1
answer
3138
views
Currently using ZFS on ArchLinux. I have two datasets that I originally setup with legacy mountpoints:
# zfs get mountpoint tank/data/home
NAME PROPERTY VALUE SOURCE
tank/data/home mountpoint legacy local
# zfs get mountpoint tank/data/home/kevdog
NAME PROPERTY VALUE SOURCE
tank/data/home/kevdog mountpoint legacy local
I have corresponding entries within /etc/fstab for these mountpoints
I'd like to change these mounts to be handled by zfs rather than mount
I logged in as root, and then did the following:
umount /home/kevdog
umount /home
zfs set mountpoint=/home tank/data/home
zfs set mountpoint=/home/kevdog tank/data/home/kevdog
I went ahead and commented out the corresponding fstab entries for these mounts
At this point I rebooted system however ran into a problem,
the dataset tank/data/home/kevdog was mounted at /home/kevdog, however the directory was totally empty. After undoing what I just described above (setting legacy for management of these datasets) the /home/kevdog directory was no longer empty.
Just curious to know why the process didn't work. Did I have to export/import pool again to make this work? Did I forget to do something else?
Asked by KevDog
(51 rep)
Feb 1, 2020, 10:16 PM
Last activity: Jun 26, 2025, 03:04 AM
Last activity: Jun 26, 2025, 03:04 AM