02:12:36 I was running a webserver in a jail, following directions in the FreeBSD Handbook. I did a 'zfs umount' of the dataset thinking that I wanted to change the mount point. I changed my mind and kept the same mountpoint. I remounted the dataset, but my data is not there. There should be a jail located at /usr/local/jails/containers/lighty but there is no such directory anymore. What am I missing? 02:12:53 well besides the obvious thing of missing the data :-) 03:11:35 mns: Hidden mount. Does it show as mounted? 03:17:30 mason: not sure about hidden mount. How do I look for that? 03:17:48 what does "mount" say about it? 03:18:56 mason: doing 'mount' gives me this: zroot/jails on /usr/local/jails (zfs, local, noatime, nfsv4acls) 03:20:53 oh I did a 'zfs mount -a' and that brought everything back. What's the different between 'zfs mount zroot/jails' and 'zfs mount -a' ? 03:21:27 mns: So, you can have a mountpoint that sits on another mountpoint, so if the first one is missing the second one can't mount. 03:22:23 Alternately, if you get mounts in the wrong order, you can hide something that's already mounted. 03:23:35 after doing 'zfs mount zroot/jails', I did a 'ls /usr/local/jails' and it would show me the subdirectories that should have been there, but nothing underneath those directories. 03:23:59 mns: Sounds like you've got one dataset per jail perhaps, which is fine. 03:26:29 mason: I followed the Handbook when I set this up last year. https://docs.freebsd.org/en/books/handbook/jails/#creating-thin-jail-nullfs 03:26:45 Ah, bit more complex than I like. 03:30:18 mns: Sorry, so, in this case, zfs only controls some of the mounts, but not the nullfs mounts. 03:30:25 Try "mount -a" and see if that helps. 03:36:51 "zfs mount -a" worked. "mount -a" I don't think makes a difference in this case since I'm using ZFS. 03:37:13 mason: how do you manage your jails if the handbook is complex? 03:37:29 mns: You're doing nullfs with ZFS? 03:37:55 yes 03:38:40 zfs to create the template jails, nullfs to mount ports and ssl certs inside the jails 03:40:41 Anyway, to answer your question, I just have a dataset per jail. The duplication isn't huge. 03:41:26 so what they call thick jails ? 03:41:40 Relative to thin, yes. 03:42:56 might have to look at that. you have to update each dataset separately when updating your jails though, yes? 03:44:54 yes 03:45:59 Plus side to that, I can schedule things more easily. 03:47:42 I think mns is thinking that mount is recursive down the tree of possible mounts that might possibly be mounted below. But that would cause problems so it isn't done that way. One might have two datasets such that they only want one of them mounted at a time but both on the same mount point for example. So mounting is not automatically recursive down the tree. 03:48:10 Seems reasonable. 03:55:43 I'll also note that if one wants to change the mount point of a dataset that I never umount it first. Not necessary. Instead just change the mount point "zfs set mountpoint=/jails/foo zroot/jails/foo" or whatever and zfs will handle moving/umounting/mounting the mount point from a previous location to the new location. Pretty sure that works even if the mount point is busy as it moves it rather than umount'ing it. 04:17:13 rwp: I would just have to make sure that the mount point exists prior to setting the mountpoint yes? 04:18:55 mason: yeah that's a fair point about scheduling the upgrades 04:20:21 out of curiosity, how many jails do you run on your system, mason? 04:20:41 ooh, I'd have to check. Multiple systems. 04:21:11 Five on one box here. 04:21:25 Three on another. 04:21:47 ok so multiple jails on multiple systems 04:21:48 That said, more before long as I migrate some LXC containers. 04:24:50 you use anything to manage them? appjail, bastille, cbsd, etc? or roll your own scripts? 04:24:56 Just the base tools. 04:25:30 I have a dataset with the base set in it and minimal config, and I zfs send/receive that to new jails. 04:27:55 interesting. I may have to look into that sort of thing. 04:28:25 If you're happy with what you've got, stick with it. But I do like this. It's quite simple. 04:33:24 I'm just doing this because I was following the handbook. I just have one jail right now. Will have more down the pipeline. Main goal for now is to learn about jails and vnets 04:35:05 thanks for the help and explanations mason and rwp. 04:35:23 mns: Sure. Sorry my explanations were a little incoherent at first. Distracted this evening. 04:47:17 mns, zfs will create the mount point for you automatically. I don't think it will create parent directories so the parent directory must exist. But zfs will manage the mount point completely. Happy to help! I am also incoherent often too. 05:57:06 how do you set multiple 'sharenfs' lines in zfs? 07:25:56 rtprio, Set all of the options for a dataset in one sharenfs property. 07:28:31 The sharenfs property is documented in the zfsprops(7) man page. 10:33:03 IIUIC you can create a custom property. Maybe sharenfs within that? just guessing though. e&oe. 11:36:25 I just got my WayPonDEV youyeetoo X1 and can confirm that FreeBSD runs (unsurprisingly) perfectly fine on it. :) 17:18:48 well 21:40:39 Fuck. 21:41:33 cut(1) has a fatal flaw. 21:42:10 what's that 21:43:20 It drops the double quotes from double-quoted fields. 21:43:54 whatever you do with cut, you could do with awk 21:45:25 CrtxReavr: it doesn't: echo '"foo","bar"' | cut -d, -f1 prints "foo" with the quotes 21:47:34 echo '"foo,bar","fubar"' | cut -d, -f1 21:48:00 why would cut know to group that together 21:48:07 it's returning the value of the first ','-separated field, which is '"foo' 21:48:16 No shit? 21:48:21 that's how cut works, it's not a CSV parser and doesn't understand quoting 21:48:29 not a flaw in the command, it's just not intended for that use... 22:19:07 CrtxReavr: cut does what I expect in your example, it gives me "foo 22:35:49 if you're trying to work it that way, you'll need to use another delimiter 23:00:00 `tr -d '"'` would remove the quotes 23:00:08 (and stay posix) 23:02:41 CrtxReavr: So, realize that the shell eats quotes most of the time. 23:02:56 Your programs never see quotes or redirection.