Assuming the FreeBSD is running as a guest VM inside VMWare. And we have just added a new harddisk (virtually) inside VMware – via the VM setting.
This additional harddisk will appear as "da2" inside FreeBSD’s "gpart show" command.
First destroy the harddisk to free up all the partitions and create ZFS filesystem on it:
gpart destroy -F da2
And now add back the harddisk to the system but without partition:
gpart create -s gpt da2
And "gpart show" gives:
After the following command:
zpool create peterpool /dev/da2
Checking status:
Yes, now "peterpool" is running ZFS.
And if you attempt "gpart show" now, the harddisk /dev/da2 is no longer visible to gpart – because the space now belongs to zpool for managment.
Next is to install Samba:
After "pkg search samba", which tells us the exact name to use for installation.
And then "pkg install samba48" (which is specific to this FreeBSD 12.1):
And all the locations of the configuration files:
And oops….samba4.8 does have some problem:
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=239480
And so I did "pkg remove samba48" to uninstall it and reinstall the samba410 instead:
From above, the configuration tool is "samba-tool":
samba-tool domain provision –domain=TEST –use-rfc2307 –realm=test.home –adminpass=Mypassword0987
And then looking at the smb4.conf file:
Time for configuring the Samba.
References:
https://www.davd.io/samba-fileserver-on-freebsd/
https://blog.programster.org/zfs-cheatsheet
https://www.davd.io/samba-fileserver-on-freebsd/
https://www.youtube.com/watch?v=7BO5-3w5v-s
https://www.youtube.com/watch?v=khM4fPzYaUU
https://www.youtube.com/watch?v=7BO5-3w5v-s%20%20%20%20https://www.youtube.com/watch?v=khM4fPzYaUU
You must be logged in to post a comment.