I have a problem with automounting separate pools, that have nested mountpoints. I am using ZfsOnLinux 0.6.2.
The siuation currently is as follows:
zpool1 ---> /var zpool1/log ---> /var/log zpool1/mail ---> /var/mail
Now I need to add a separate zpool for db. To keep directory hierarchy consistent, I thought about this:
zpool2 ---> /var/db
Now, the problem is that when zpool2 is mounted first, zpool1 fails to mount (this is logical).
Is there a way I can force the mount order of pools to allow mounting of zpool2 inside zpool1, besides using the legacy mount option? Something like zpools dependency? Or should I avoid such nested mounts at all costs?