I have a mirrored ZFS pool named internal:
On it I have the following datasets
As seen above /usr/home is it's own data set internal/home that I created using:
I would like to have each user's home directory be it's own dataset. The FreeBSD handbook mentions this briefly but doesn't give many details under 20.4.8. Dataset, User, and Group Quotas. It says:
I can not find instructions on the correct way of doing it, so I am guessing that it wants me to do something like:
Is this correct?
Is the mountpoint option redundant?
Code:
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOT
internal 464G 55.5G 408G - - 7% 11% 1.00x ONLINE -
On it I have the following datasets
Code:
# zfs list
NAME USED AVAIL REFER MOUNTPOINT
internal 55.5G 394G 23K /mnt/internal
internal/ftp 53.4G 26.6G 53.4G /var/ftp
internal/home 34K 120G 34K /usr/home
internal/mysql 2.03G 58.0G 2.03G /var/db/mysql
internal/pgsql 152M 19.9G 152M /var/db/pgsql
As seen above /usr/home is it's own data set internal/home that I created using:
Code:
zfs create -o compression=lz4 -o mountpoint=/usr/home -o casesensitivity=insensitive -o quota=120G internal/home
I would like to have each user's home directory be it's own dataset. The FreeBSD handbook mentions this briefly but doesn't give many details under 20.4.8. Dataset, User, and Group Quotas. It says:
Before adding a user to the system, make sure to create their home dataset first and set the mountpoint to /home/bob
.
I can not find instructions on the correct way of doing it, so I am guessing that it wants me to do something like:
Code:
zfs create -o compression=lz4 -o mountpoint=/usr/home/bob -o casesensitivity=insensitive internal/home/bob
Is this correct?
Is the mountpoint option redundant?