00:14:39 alepzi: that's wonderful! 01:29:28 so every jail takes a min of 2.5MB ram. looks like thick jail is 2.2 gb on disk for some reason. either way not terrible 01:29:36 the minimal ram is really nice 01:30:16 2.5mb is low overhead enough to basically make jails free for ram 01:44:34 weird. i added the vnet flag and all of a sudden the jail is now running syslogd and sendmail 01:44:50 hmm 01:59:41 jail_reverse_stop="YES" seems pretty useful 01:59:49 any reason to NOT set it? 02:00:09 jail_reverse_stop is perfectly resonable. 02:00:57 If you have set exec.start="sh /etc/rc"; then by default it will start up all of the normal things that a system starts up. 02:01:24 syslog and sendmail can't start on a non-vnet jail because they are already running in the host and can't bind to the sockets they need to bind to and so fail out. 02:01:45 ah, it's the default freebsd env 02:01:50 understand 02:02:00 But once you start a vnet jail then they have their own network stack and the startup for them works. 02:02:05 But you probably don't want them started. 02:02:17 yai'll customize the jail's rc.conf just like i do in the host now 02:02:31 Set sendmail_enable="NONE" to ensure sendmail does not start. 02:03:52 Dan Langille posted this a while back https://gist.github.com/dlangille/ce60ac76b69f267a3f1de33495a338fc 02:03:54 Title: Periodic things to turn off in FreeBSD jails · GitHub 02:04:08 Probably you will want to make similar customizations to turn those off in jails. 02:04:13 nice 02:06:10 why does the handbook say for a jail to: zfs create ... /usr/local/jail and zfs create /usr/local/jail/containers, but not zfs create /usr/local/jail/containers/testjail (1 for each jail)? 02:12:21 I am not looking at the Handbook but isn't that just one example of one way to do it? There are many ways to do it. It's flexible. 02:12:52 but i mean isn't it a good idea to create 1 dataset per thick jail? 02:13:04 Sure. 02:35:07 alepzi: that can become a management nightmare, as it will increase your zfs list output. what would you like to gain by making a set of zfs datasets per jail? 02:35:17 if you delete a jail.. you would have to remember to delete the zfs 02:36:04 more isolation, maybe being able to individually snapshot a jail, set a quota for size, stuff like that? 02:48:52 this is a curiosity question: what do you mean by more isolation? 02:49:04 i have never thought of the situation, the way you are describing it and curious 02:49:23 like being able to set a size quota on 1 jail's dataset instead on all jails 02:49:27 disk size 02:49:48 snapshot the data of a single jail rather than snapshotting all jail's data at once 02:50:10 yeah i get that.. so isolation is not segmenting the jail itself but the management of the disk utilization of the jails? 02:50:33 ya 03:06:41 Also, if a thick jail is from a zfs clone of a base thick jail, it takes no space (initially) 03:14:19 and that clone will make it its own dataset right scoobybejesus? 03:20:24 indeed 03:22:50 a cheating way could be to look at the bastille scripts. they are all /bin/sh. bastille does two datasets, nested. seems excessive. i wonder how many folks use a modified version of bastille https://github.com/BastilleBSD/bastille/blob/master/usr/local/share/bastille/create.sh 03:22:51 Title: bastille/usr/local/share/bastille/create.sh at master · BastilleBSD/bastille · GitHub 03:23:16 lines 288 and 291 03:51:47 ah, i misspoke. well, at least in bastille, they do zfs create for new datasets, and then do a zfs send | zfs receive after taking a temporary snapshot of the base/"release" jail, plus some odds and ends 03:51:57 down at 404 04:44:03 Hello, is there any document describing how to remove components, like debuginfo from an installed environment? I am using binary based install now. 05:39:23 here comes an odd question : is there a way to tell poudriere that it may use a LOT more time to build a package? Because www/qt5-webengine tends to "timeout" and fail. 07:07:54 blastwave: that actually means the build consumed so much ram that your system OOM'd and the OS killed the www/qt5-webengine build. You need to go to /usr/local/etc/poudriere.conf and config it to either use less builders and/or less make jobs per builder. 12:25:41 hi!, in a server with hdd disks, in a ZFS pool 85% full I need to run the "find" command to get a list of the files in many directories containing thousands of files each. I did't measure it, but it feels very slow. How can I start checking for read speed. 12:26:10 Apart from that, is find the right command to do this? 12:27:13 btw, in a first pass I did a find to collect the directory names (I needed only those containing a subdirectory named 2023-" 12:27:56 sorry, "2023-*", so I have a file listing all those subdirectories. Now I can do an "ls" on those or a "find", I'm looking for the fastest way 12:29:48 it seems "ls" is the way to go 12:30:19 anyway it still looks slow, I'm looking forward to speed up zfs reads. 13:03:16 /usr/bin/time -h dd if=/dev/zero of=sometestfile bs=1024 count=10 13:03:25 never mind, they elft 14:21:55 if anyone is a tmux guru, i'm stumped as to why send-keys -M (pass mouse events to panes) only seems to not work on FreeBSD. test case: start tmux with default config, set -g mouse on, then open something like htop and try to click a column header to sort 14:22:38 i've tried enabling the two unselected config options for the port, but no effect 14:26:11 outside of tmux mouse events work fine, and inside tmux mouse events work fine EXCEPT passing through to panes 16:14:18 Hello! I'm using bash as user's default shell in FreeBSD 14.0. I defined some aliases in $HOME/.bashrc, but if I open a new window in tmux the aliases are ignored. If instead I manually run `source ~/.bashrc', then the aliases work correctly. What could it be the reason? 16:24:26 rockyh, does "echo $SHELL" show bash? 16:25:57 for stuff like that .profile or .bash_profile is usually better. i'd read up on the differences between .bashrc and .bash_profile and choose the right one for how you're using it. 16:36:36 martinrame: try fd-find 16:37:10 Find is slow with how it's implememted 16:43:02 markmcb: yes, but it shows `/usr/bin/bash', which is a symlink to the actual bash path, `/usr/local/bin/bash' (I needed to do this due to some other issues) 16:44:35 according to bash(1), the file used for non-interactive shells (as in my case, with tmux) is ~/.bashrc 16:46:56 the alias is correctly active instead if I specify it in $HOME/.profile 16:48:40 sorry, I was not meaning `non-interactive' shells, but shells that are not login shells, as those run by a new tmux window 17:15:43 rockyh: are you sure, the shell tmux starts is a bash? e.g. have you started tmux while SHELL=/usr/bin/bash was set? 17:16:44 rockyh: e.g. what does `ps -fp $$` shown in a fresh window? 17:17:09 ridcully: IIUC yes, tmux is started within a shell where $SHELL is equal to `/usr/bin/bash` 17:17:30 PID TT STAT TIME COMMAND 17:17:32 67339 9 Ss 0:00.01 -bash (bash) 17:17:49 rockyh: is 14 relevant here? as in: did it work before? 17:18:43 I'm not sure, because I was not using bash with 13.1 or similar 17:18:54 so I can not make a comparison 17:21:02 is it some shenanigan with bash being symlinked then? do you see the same problem if you do `SHELL=/usr/local/bin/bash tmux` ? 17:25:00 also is your ~/.bash_profile sourcing the .bashrc? 17:25:34 the alias works if I run tmux as `SHELL=/usr/local/bin/bash tmux`, so yes, it seems related to the symlink 17:25:53 no, my .bash_profile does not source .bashrc 17:26:23 (actually I don't have a .bash_profile at all) 17:29:18 add `set -x` or some echo in your rc-files then to see what is happening. and create a .bash_profile for the sym-link variant just in case 17:36:44 ridcully: putting `set -x' both in $HOME/.profile and $HOME/.bashrc shows that the latter is completely ignored. I also put `source $HOME/.bashrc' in $HOME/.bash_profile (just created). Thanks for your suggestions! 18:18:05 rockyh, Usually in ~/.profile one "protects" the sourcing of .bashrc to only if the shell is bash and not sh since sh also reads .profile. Usually "if [ -n "$BASH_VERSION" ]; then if [ -f "$HOME/.bashrc" ]; then . "$HOME/.bashrc"; fi; fi; Personally I find it easier to use a .bash_profile for all of my bash specific startup. And then leave .profile for sh to use. 18:18:42 Also if one is using an xdm like lightdm or slim or something then use ~/.xsessionrc for the same as that is the equiv profile for xdm sesssions. 20:04:46 rwp: thanks, it's a good alternative! 20:46:17 https://termbin.com/rxix with that rc.conf why does ping 10.0.0.1 fails pls? 20:59:15 folks, greetings... not so quick question but I wonder if you could help me... 20:59:53 I have executed `zpool import something` from one FreeBSD environment I have.. into other.. and I regret of doing so.. 21:00:01 how do I revert this operation? 21:01:55 (e.g.: I'm my laboratory I have two environments, one I boot with "zroot" ZFS pool and other environment I boot with "vnxsystem" pool 21:02:18 ... they are not in mirror, or raid mode, I just came to use two distinct indeed) 21:03:06 but the question remains the same: reverting an zpool-import(8) which seems to have messed with my mounting points. 21:09:52 vinnix, Normally you can only import one pool name at a time. That is to say that if both pools are named "zroot" (the default) then the second import will fail. This tells me that the names are different names. Is that true? And in that case the second one will mount on top of the first one. is that true? 21:10:38 Can you pastebin us a "zfs list" to show the current state of things? 21:11:12 If it is on the network then "zfs list | nc termbin.com 9999" is sufficient and then it will produce a URL back that can be shared. 21:11:54 alepzi, Perhaps you could share the output of "ifconfig" as that would show the current state of things there? 21:12:42 I am not familiar with "autobridge_* configurations at all. I would need to read it. Where are you trying to ping from? From the jail? Or from the host? 21:17:12 rwp, indeed itś true, it seems one mounted on top of each other. we do have two distinct complete pool names, one zroot, and the first one I had the "brilliant" idea of changing it to "vnxsystem" during my setup 21:18:06 rwp, so... to paste I will have to ask for patience and wait me to reboot :P if you dont mind.. we could keep this async comm 21:18:59 rwp, but you got it right, two distinct pools, one one each SSD, mounted on top of each other... odd that was allowed to overlap mounting points. 21:43:33 Honestly I think vinnix's easiest solution is to reboot without the extra vnxsystem pool as that will solve the problem. When they return I will suggest: zpool import -R /mnt vnxsystem 21:53:27 rwp: may I ask the netcat command aqui to share the paste you are looking for? 22:02:28 vinnix_, If you rebooted then all will be okay, right? Because that would have unmounted everything? No? 22:03:00 If you need to mount a second root level zpool on a system with an existing root level zpool then use the -R option to mount to a directory. 22:03:10 zpool import -R /mnt vnxsystem 22:04:12 That will set the altroot propert for that import to /mnt so that mounts will happen there rather than on top of the current directories. 22:06:03 Other than rebooting I would have tried "zpool export vnxsystem" and I think that would have unmounted and exported all okay. Except often things become "busy" and busy mounts cannot be umounted and things get messy. Rebooting was the easier fix. 22:13:06 rwp, my mistake here was not to provide the "-R /mnt" https://gist.github.com/vinnix/2a2e9781455f28cf93e8ece06ad3ac52 22:13:07 Title: gist:2a2e9781455f28cf93e8ece06ad3ac52 · GitHub 22:14:14 vinnix_, Since that was a df and not a zfs list I don't know if you have things figured out or not? 22:14:56 rwp, okay updating here with zfs list, apologize. in my case, I have tried the reboot and it have not fixed.. just in case 22:15:01 When working with zfs one normally needs to see the "zfs list" information rather than "df" information. I know df is the traditional unix command but zfs does more and that additional information is not displayed with df. So one just needs to use zfs list sometimes. 22:16:11 I think "zpool import -R /mnt vnxsystem" should do it. Unless the mount points are "busy" in which case that will fail. 22:17:46 rwp, I have added the `zfs list` to the gist link above if you wanna see it. I got what you mean, indeed more information 22:18:06 I am going to assume that things are "busy" and the umount will fail. Options 1) ps and lsof to find processes holding those mount points busy and killing those to make those mount points not busy. 2) Booting single user mode so that nothing starts and then those will not be busy then 3) setting the altroot property on vnxsystem to /mnt and then once again rebooting so that the altroot will mount to /mnt on the next reboot. 22:19:04 rwp, okay I may trie (re)import again ...? is that what you are saying? I could no problem 22:19:41 No. Importing again would attempt to mount again. That shouldn't work. But if it did it would just create yet another mount layer and not what you want. 22:19:45 man zpool-export 22:19:51 export is the opposite action to import 22:20:35 What's the physical device situation? Can you just shutdown, detach the vnxsystem drive, then boot again? That's the simplest answer. 22:22:33 If the vnxsystem drive is not present then it will not be imported at boot time. But the zroot will be there. So detaching the vnxsystem so that it can't be imported at boot time is the easy way to do that. 22:24:58 If you can't remove the vnxsystem device then of the choices I think of I would boot single user mode and export it from there to unmount it, set the altroot=/mnt property, then reboot normally from there. 22:26:14 Just a by the way because I need to go afk myself for a while but I have done the same mistake myself before. When I did it that's when I learned about the -R /mnt option. So you are not the only one to have made that mistake. I am sure you won't be the last either! But it is not difficult to recover from it. 22:26:22 Good luck! 22:26:50 rwp, got it, sorry my delayed here, trying to think in my next steps while reading. 22:27:08 rwp, I have updated the data with physical information (dmesg, gpart show) 22:27:48 rwp, understood, `zfs export` next steps to try, I read the manual and it was not clear 22:27:59 * DSee thinks FreeBSD is the sexiest OS name ever 22:28:08 Delays are okay. You are hanging around to interact! That's the important point. :-) 22:28:25 small nitpick I notice manuall on zfs-import is duplicated 22:28:35 But I will need to drop offline for a bit. I think you know what you need to do to recover. And if you have other problems one of the other folks will be able to help! 22:28:50 manual duplicated? Which part/ 22:28:52 Which part? 22:29:04 rwp, I'm a bit afraid of detaching physicals from the pool and not being able to boot it again from the other environment 22:29:15 rwp, my setup is those "dual-boot" from BIOS time 22:30:15 (reading detach manual) 22:34:02 rwp, correct if I'm wrong here, but since itś a "dual-boot" and I want to be able to remove one disk and boot in another machine in case I have two 22:34:42 rwp, detaching from the device may break it more? or I missed the point? is detach/attach associated with the environment I'm or the disk itself? 22:35:37 When I said detach it I meant unplugging the cable from the drive. 22:35:50 There is no man page for it. The two man pages of interest are zpool-import and zpool-export 22:36:07 sorry them eheh, I thought we were talking about the commando 22:36:09 What did you do to import it? 22:36:28 In the beginning everything was okay. But then what steps happened that caused things to not be okay? 22:36:36 That's what we want to reverse and undo. 22:40:14 I look at man "zpool-import" and I don't see any duplication in the man page, where should I be looking? https://man.freebsd.org/cgi/man.cgi?query=zpool-import&manpath=FreeBSD+14.0-RELEASE 22:40:15 Title: zpool-import 22:41:59 rwp: so i fixed my desktop yesterday. but i ended up reinstalling brand new 22:42:17 i need to look into those docs and learn more about zfs 22:42:43 It's all a learning experience! :-) 22:44:19 And I must run off as real life is calling. I'll be back in a few hours. Good luck to all! 22:45:01 have a good one rwp 22:46:47 rwp: well, i ended up updating my dotfiles to at least have an environment ready quicker 22:47:22 so i would call that progress. not ideal as all that docs, but its some progress