4
1
So, I've been told that ZFS for Linux has the ability to automatically mount a zpool on system startup in Ubuntu 12.04, but it doesn't work for me and I can't find any documentation on how to make it work.
I have a 5 disk raidz zpool mounted at /zstorage. Currently, when my server starts, I have to type sudo zfs mount zstorage
in order to get it to be accessible, which is a bit of an issue as I have a number of programs that start automatically and look for folders in there.
In the case of on, SabNZBD+, if it doesn't find the folders it needs it will revert to the default. This is especially a problem as the default folder is in a tiny SSD which is meant for nothing but as a boot volume.
I'm using 'ZFS on Linux': http://zfsonlinux.org/
– dougoftheabaci – 2012-08-08T17:26:18.9371Have you tried running
zfs mount -a
on startup? – Lars Kotthoff – 2012-08-08T17:29:13.717I imagine that would work but how do I automate it? Sorry, I should clarify, this is my first real experience with Ubuntu and I may have just dived in at the deep end. – dougoftheabaci – 2012-08-09T18:05:21.550
The easiest way is probably to add the command to
– Lars Kotthoff – 2012-08-09T18:21:50.283/etc/rc.local
. Also see http://en.kioskea.net/faq/3348-ubuntu-executing-a-script-at-startup-and-shutdownFinally had a chance to give this a try. Works great. Thanks! – dougoftheabaci – 2012-09-11T03:10:30.407