NFS & ZFS: how to export whole FS hierarhy to mount it with one command on client?

Rick Macklem rmacklem at uoguelph.ca
Sat Aug 1 11:21:27 UTC 2015


Lev wrote:
> Hello FreeBSD,
> 
>  I had "/usr/home" UFS exported to several hosts (all of them are FreeBSD),
> and it worked as intended: remote host mounted "server:/usr/home" and got
> all user home dirs.
> 
>  Now I converted "/usr/home" to ZFS and created one FS per user (so, here is
> FSes "zhome/lev", "zhome/sveta", etc., on pool "zhome").
> 
>  When client mount "server:/usr/home" now it gets all user directories, but
> all of them are empty, because NFS sees every user home dir as different FS!
> 
>  How could I export all this tree in one piece now? I don't want to have
> multiple NFS mounts (one per user) on each host which needs home
> directories.
> 
To mount multiple file systems as one mount, you'll need to use NFSv4. I believe
you will have to have a separate export entry in the server for each of the file
systems.

rick

> --
> Best regards,
>  Lev                          mailto:lev at FreeBSD.org
> 
> _______________________________________________
> freebsd-fs at freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-fs
> To unsubscribe, send any mail to "freebsd-fs-unsubscribe at freebsd.org"
> 


More information about the freebsd-fs mailing list