Janus Ng
Explorer
- Joined
- Apr 10, 2016
- Messages
- 63
I have just cloned my FreeNAS 11.1-U5 to a Synology NAS to free up space for other usage.
I share those files as a SMB share from the Synology NAS.
I would like to mount the SMB share in FreeNAS and put them into the storages for the jails.
Here is what I have done:
Unfortunately, I have found that a post-init task is too late. The jails have already started with the storage assigned before the task completes; hence, the jail storages fail to mount.
I have tried a pre-init task instead but it is too early. The mount point was not there yet.
Please enlighten me on how to accomplish it.
Thank you!
I share those files as a SMB share from the Synology NAS.
I would like to mount the SMB share in FreeNAS and put them into the storages for the jails.
Here is what I have done:
- Put the SMB credential and related settings into /conf/base/etc/nsmb.conf.
- Create a directory /net/synology
- Create a script like:
Code:
mount_smbfs -N -E UTF-8:UTF-8 -I 192.168.0.100 //freenas@synology/data /net/synology
- Add a post-init task to running the above script
- Add the mount point to the jails
Unfortunately, I have found that a post-init task is too late. The jails have already started with the storage assigned before the task completes; hence, the jail storages fail to mount.
I have tried a pre-init task instead but it is too early. The mount point was not there yet.
Please enlighten me on how to accomplish it.
Thank you!
Last edited: