1
19.1 Legacy Series / Re: Secondary ZFS pool
« on: February 07, 2019, 02:50:50 am »
Since reading my previous post made me realize what a noob I was (less than one minute googling got me the answer), I'm here to help others in the same situation.
Any other zpools are indeed imported when booting, but at least in my case the datasets were not mounted, so I could see the path where it was previously mounted but no files from the dataset itself.
The solution was very (and I mean VERY) simple. Create a script in the /usr/local/etc/rc.syshook.d/start folder with
where tank is the name of the dataset to mount. After rebooting and seeing the dataset not mounted I remembered to add the execute bit
and then it worked.
Hopefully this helps someone out there!
Any other zpools are indeed imported when booting, but at least in my case the datasets were not mounted, so I could see the path where it was previously mounted but no files from the dataset itself.
The solution was very (and I mean VERY) simple. Create a script in the /usr/local/etc/rc.syshook.d/start folder with
Code: [Select]
#!/bin/sh
zfs mount tank
where tank is the name of the dataset to mount. After rebooting and seeing the dataset not mounted I remembered to add the execute bit
Code: [Select]
chmod +x file
and then it worked.
Hopefully this helps someone out there!