Solved Jail NullFS Mounts: Two Mounts For One Jail

Hey folks -

I think this belongs in "Storage" but won't be offended if it gets moved. :-)

I'm setting up a couple of jails on my fileserver and I'm running into a fun little challenge with one of them. Config:

Code:
exec.start = "/bin/sh /etc/rc";
exec.stop = "/bin/sh /etc/rc.shutdown";
exec.clean;
mount.devfs;
mount.fdescfs;
mount.procfs;
allow.raw_sockets = 1;
allow.sysvipc = 1;

path = "/local/jails/$name";
media {
    host.hostname = "media";
    ip4.addr += "lagg0|192.168.10.6";
    mount = "/local/export/music /local/jails/media/music nullfs rw 0 0";
    mount = "/local/export/movies /local/jails/media/movies nullfs rw 0 0";
}

The first nullfs filesystem gets mounted. The second one does not. If I reverse them, the same thing: first one mounts, second one doesn't. The mounted filesystem works perfectly; all of the filesystem structure shows up in the jail as expected.

The really funny thing is, I have another jail with two different null filesystem mounts (different than the two above). Both mounts kick in when the jail starts and unmount when the jail stops.

I'm not sure where to check for logs. There's nothing in the messages file on the host. Nothing in the least. When I start the jail, I don't get an error on STDERR, either. Nothing at all.

Any ideas? Thanks.
 
Odd that I didn't have to do that for the other jail with two mounts.
It needs it. So that one was wrong too. It either gets mounted through some other means or just isn't mounted at all.

Code:
     Other parameters may have more than one value.  A comma-separated list of
     values may be set in a single statement, or an existing parameter list
     may be appended to using "+=":

           ip4.addr = 10.1.1.1, 10.1.1.2, 10.1.1.3;

           ip4.addr = 10.1.1.1;
           ip4.addr += 10.1.1.2;
           ip4.addr += 10.1.1.3;
See jail.conf(5)
 
Back
Top