00:00:47 you should be able to zpool replace zroot ada2p4 /dev/diskid/DISK-1234p4 00:00:48 aye aye, that's more or less what I was thinking 00:01:14 (Okay, so I did it the hard way....) 00:01:40 maybe a stupid question, but how do you get `/dev/diskid` populated ? 00:01:53 is it not? 00:02:04 doth not exist on this fresh 13.1-RELEASE install 00:02:34 If the drives are not mounted via some other identity, that's automatic? 00:03:54 what's `sysctl kern.geom.label.disk_ident.enable` 00:04:15 oh, that's zero, set in `/boot/loader.conf` I was looking at that recently too 00:04:41 probably reading the same page i was 00:05:48 think that's safe to enable and reboot? 00:06:12 yeah 00:06:19 yolo *reboots* 00:08:03 there `/dev/diskid` is, let's party 00:11:35 I vaguely recall that if you're using gpt partition labels, those work too. /dev/gpt/ IIRC. 00:11:43 hm, rtprio I don't think this replace approach will work properly. The Hard Way that tmp_ tried might be the path. There's no entry in `/dev/diskid` for any of the ZFS owned disks 00:12:11 aw nuts 00:12:23 That's probably why I did it the hard way. I'm pretty sure they only show up if not mounted via some other id. 00:12:39 yeah, I think that's probably right based on the tea leaves from forums.freebsd.org I have seen :) 00:13:14 Same with /dev/gpt/ labels. 00:14:51 what if you offline one of them first? 00:14:57 trying that now :P 00:15:18 offlining doesn't result in any entries showing up 00:15:39 zpool-labelclear(8) ? 00:15:51 i'm spitballing here 00:16:08  /dev/ada5p4 is a member (ACTIVE) of pool "zroot" 00:16:09 womp womp 00:17:18 strawberry# zpool remove zroot ada5p4 00:17:18 cannot remove ada5p4: operation not supported on this type of pool 00:17:19 drats 00:17:56 how fond of this install are you? 00:18:08 it's intentionally fresh, so not at all xD 00:18:55 I had to remove each one. 00:19:22 Which, probably succeed due to being raidz1? 00:19:34 this is raidz1 too fwiw 00:19:49 (Or maybe it was that I had a spare on standby....) 00:19:54 I don't know ZFS well enough to understand why I cannot remove this device since there are four drives here 00:20:05 Did this during the FreeBSD 9 days. 00:20:10 rtprio do you think from bsdinstall I'd be able to get the diskids set up correctly? 00:21:24 boot the installer and check those two loader variables, to see if you can add them via diskid 00:23:31 Alternate: The gpt labels? 00:23:41 or gpt labels 00:30:28 so that setting is certainly enabled, but I cannot select by disk id at least through `bsdinstall`. 00:30:42 Dredging up more memory on this. I think there's something about zpool offline before zpool remove ? 00:30:57 I wonder if I could mount this zpool from the live shell here and do the replacearoo 00:31:10 to blast the old pool? 00:32:36 to IMPROVE the old pool! 00:33:32 I just might work. 00:33:40 s/I/It/ 00:33:43 I'm well out of my area of expertise right now so I'm reading the zpool-import manpage 00:34:47 you'll want to set altroot 00:35:00 that's the big one, and not write to the zfs cache 00:35:00 on the liver system everything is definitely there in `/dev/diskid` 00:35:20 rtprio: altroot being a property on the import? 00:35:33 oh `-R`, I sees it 00:35:47 yes, otherwise it will trounce the current running system and things get very confusing from there. 00:42:16 okay, so I imported the pool with all the disk IDs 00:42:20 _now what_ xD 00:42:46 zpool offline one drive? 00:43:08 now you need to save the cache onto that pool or it will just import with ada next time 00:43:13 and i'm not sure how to do that 00:43:27 Let me check my notes. 00:43:59 the import was done with `cachefile` set to `none` because of the `-R` 00:45:38 zpool set cachefile=/altroot/etc/zfs/zpool.cache zroot 00:45:43 If you're chrooted to the /altroot, something like: zpool set cachefile=/boot/zfs/zpool.cache zroot 00:47:41 good news/bad news. The altroot contains `usr` `var` `tmp` and an empty `zroot` directory . Very confused now 00:48:27 pastebin `zfs list` plz 00:48:54 and you did specify an altroot, right? 00:49:15 I did! `/tmp/altroot`  which is where these are 00:49:33 this is running from a console, so it's not like I can gist the output from this live boot :P 00:50:07 I didn't look at the mounted volumes before I booted into bsdinstall 00:51:00 zfs get mountpoint zroot/root # (you'll need to figure out which) 00:51:30 is it none? 00:52:36 oh, it's probably "legacy" 00:53:41 for lols I rebooted, and those disk IDs persisted on the pool, which means because some things are missing that I've booted into single user mode. How interesting 00:55:17 I have a hunch on what I did wrong, back to the live shell 00:56:00 the pool came back as gpt ? 00:56:06 or ada 00:58:40 when I rebooted back to the installed system the zpool was listing disk IDs, but failed to into multi-user because it was complaining about missing stuff.  I've just rebooted and imported the pool again but this time rather than importing p4 I imported the whole device, which resulted in different behavior but the altroot still is missing 00:58:41 mountpoints 01:05:07 i haven't had a boot pool in a long time; and to think i was missing out on this sort of fun 01:05:21 you definitely are :) 01:06:31 I'm starting a re-install and going to see if I can swap to diskids before I reboot 01:08:15 i think if you had a mirror as your zroot you could have done the `zpool replacing` 01:16:39 Did you try zpool offline? 01:19:54 at which stage? I had tried that on the live system already 01:22:43 Any. Was just wondering how that went. 01:23:15 offline works fine, I cannot replace with the pool 01:24:03 Oh. Okay. I'm pretty sure when I did mine, I used zpool offline before zpool remove. 01:25:32 ... And then add and resilver... 01:33:41 I'm wondering if I'll be able to do that from the live system, because modifying online is causing problems 01:41:19 check NomadBSD 01:41:24 hrm, I cannot remove. It says the operation is not available on this type of pool 01:45:19 Found one of my notes. I did something like offline , add , replace , remove . Looks like you'd need a fifth drive to pull this off. 01:45:45 You're probably right, so this is a four disk raidz1 pool which makes me think I need to find another way 01:47:09 tmp_ would you mind dropping the `zfs list` output (sans any non-standard mountpoints if you'd like). I'm curious if I can do this manual at install time and get it right then 01:50:13 All 22? I mostly got them from https://wiki.freebsd.org/RootOnZFS/UFSBoot 01:50:14 Title: RootOnZFS/UFSBoot - FreeBSD Wiki 01:52:50 thanks 01:55:44 Critical points: The zpool itself "has" a mount point of /zpool, but is set to noautomount. zpool/ROOT mounts on / and then zpool/usr on /usr, zpool/var on /var, etc. 01:56:14 I'm actually really surprised at how difficult this is 01:56:44 I've worked with zfs in an enterprise setting. I'm not. 01:56:50 haha 01:57:19 That was many zpools on multiple versions of Solaris, for the most part. 01:58:46 that was a rocky time 01:59:27 Oracle put their oar in part way through, it got even rockier. 01:59:49 you mean like how oracle does with anything they touch 02:00:28 "We're not restricting you from using that; Oracle didn't provide it. It's not there." 02:01:38 Mind you, that was a set of things that Sun deprecated in 1994. As in, "This will go away someday. Don't make anything new rely on it." Oracle decided it was time for all those things to go away. 02:02:43 Notably, it was the developer teams that had the most problems with that.... 02:07:22 huh, I cannot seem to remove this damn device 02:07:32 I thought maybe I would try raidz2 02:14:15 hrm, I cannot even detach a device from the pool after offlining it 02:19:15 I think the zpool is preserving the place for the device, so replace is the only option when it's offline. But replace requires a new device. 02:19:44 that sounds about right 02:21:02 is there a file floating around somewhere or something like that which I can just edit to change ada5 to the diskid xD 02:25:29 I have a different idea, I'll create the pool with 3 disks in a new install, and use the fourth like you did tmp_ 02:25:52 Have the fourth as a spare? 02:26:27 yeah, there are four disks that are supposed to be there. Maybe I make a three node pool, do the swapping around there, and then grow it with the fourth disk after the shuffling to diskids is complete 02:27:52 I'm drawing a blank on whether expanding the number of active disks in raidz is possible. I'm suspecting not. 02:28:45 The notes I've dug up suggest I used a USB disk as the spare when migrating. 02:29:28 It was kind of unstable. A little. Just a tad. 02:29:42 laffo 03:14:22 Is anyone aware if there are any PRs for "bsdinstall" to create a (GPT one if using GPT for example) label for ZFS root pool? 03:14:45 parv, welcome to the party  ;) 03:14:46 tmp_: no, can grow from 4x 2tb to 4x 4tb but not 8x2tb 03:15:15 rtyler, Hi there 03:17:33 Yeah, I've grown 4x 1tb to 4x 2tb a time or two. 03:17:47 we've already been fighting a lot against ZFS tonight, I'm not sure there's anything planned for bsdinstall 03:18:20 honestly this would be a much less frustrating problem for me if the onboard sata controllers devices were starting at 0 rather than the pcie card's 03:21:19 put the boot pool on the pcie cards? 03:24:32 wait, rtyler are you going to install to 3 +spare and then convert to gpt? 03:24:45 if you're going to install fresh i have a different idea 03:24:59 I've installed fresh a few times tonight, my brain's fried, whatcha got 03:25:44 trying to find the wiki article 03:25:55 basically you shell out and set up the pool, and then exit back to the installer 03:26:56 and since you shell out rather than letting bsdinstall do it, you could add them by the gpt or diskid names 03:27:21 mason's notes on "ZFS and GELI by Hand" : https://wiki.freebsd.org/MasonLoringBliss/ZFSandGELIbyHAND 03:27:23 Title: MasonLoringBliss/ZFSandGELIbyHAND - FreeBSD Wiki 03:30:37 rtprio, Is the one you are looking for listed at https://wiki.freebsd.org/CategoryZfs ? 03:30:38 Title: CategoryZfs - FreeBSD Wiki 03:31:45 the one i followed was installing for dualbooting but the procedure would work 03:31:55 let me spin up a vm quick and see 03:32:14 hmm, 03:34:38 manual -> gpt -> label it -> create pool 03:35:08 rtyler, Since you are willing to reinstall, I propose to use manual ZFS install: (GPT) partition the disk as you like; add GPT labels; install ZFS on root manually on one of the partitions. Note that everything will be dumped directly on the "pool". Then create separate datasets; move stuff out from root pool to separate datasets 03:36:19 but 'shell' was the document i followed 03:36:39 it did it all by hand: When finished, mount the system at /mnt and place an fstab file for the new system at /tmp/bsdinstall_etc/fstab 03:37:01 parv: manual won't create the pools it seems you have to do it by shell 03:37:23 # ls /dev/diskid/ 03:37:23 DISK-BHYVE-DAA9-3899-15E2 DISK-BHYVE-E466-C286-81C7 03:37:32 but there are the disks; create the pool and off you go 03:38:09 rtprio, bsdinstall would create a single root pool & no separate datasets (which otherwise are created in auto mode) 03:38:33 yah, to do what you want, you've got to pick the 'shell' option 03:38:42 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262461#c3 03:38:45 Title: 262461 – bsdinstall: After manual partitioning the disk, installer installs "ZFS on root" directly on the pool not under separate ZFS datasets 03:39:00 https://wiki.freebsd.org/RootOnZFS/GPTZFSBoot is what i follow, it guides you through the shell method 03:39:01 Title: RootOnZFS/GPTZFSBoot - FreeBSD Wiki 03:39:40 rtprio, Thanks for the link (GPTZFSBoot) 03:39:49 parv: i don't recall having that problem 03:49:12 rtprio, Problem, as stated in PR 262461, is that manual partitioning & installing ZFS-root -- all via bsdinstall UI -- does not create different ZFS datasets unlike when auto ZFS is used (which consumes whole disk & no label is created for the root pool) 03:49:37 yeah, so create them yourself 03:49:46 i don't like a few of the ones bsdinstall picks out anyway 03:50:27 *sigh* Yeah that was what I did eventually as clean up 03:51:47 oof 03:51:49 Re default ZFS datasets, I also have the same opinion but that is still far more preferable, workable than dumping everything on the pool dataset directly. 03:53:27 but hey, once you get it working, you won't have to touch it for a while 03:53:34 History for 'wd': 03:53:35 2013-02-16.21:19:45 zpool create wd raidz2 /dev/ada0 /dev/ada1 /dev/ada2 /dev/ada3 /dev/ada4 /dev/ada5 03:55:03 some of those drives had 2 hours on them when i created the pool 07:46:24 "What's the 2022 style of..." <- antranigv: I don't doubt that arcanist can be useful, but I haven't got that far. (I commit without using it.) 07:46:40 grahamperrin really? how? 07:48:03 grahamperrin I'm having a hard time contributing to FreeBSD. All I wanna do is just fork it on GitHub and make a pull request, or maybe use git's mail pull request functionality. 08:29:20 antranigv: I pinged you in FreeBSD in Matrix, continue there? Thanks 09:12:53 grahamperrin I'm in FreeBSD's matrix? hah I didn't know that :D 09:16:53 played with pf today and couldnt get a set of rules working that didnt block me from ssh! im so lame 09:21:03 antranigv: irc.libera.chat private message failed for some reason, do you have a Matrix client handy? (I use , YMMV.) 09:21:04 Title: Element 09:21:32 Ah we're there 10:16:01 hi, I just click on restart Firefox in my BSD and I get this: XPCOMGlueLoad error for file /usr/local/lib/firefox/libxul.so /usr/local/lib/libnss3.so: version NSS_3.79 required by /usr/local/lib/firefox/libxul.so not found Couldn't load XPCOM. 10:16:08 any tip is welcomed 10:19:29 pkg install nss <- fixed the issue 10:19:41 what is the difference between pkg update vs pkg upgrade 10:19:42 ? 10:24:49 pretty sure POWER is not a mainframe architecture 10:25:33 I was scrolled up 10:33:54 uskerine, "update" only "update[s] the local catalogues of the enabled package repositories" (from "pkg-update(8)" manual page) ; installed packages are not changed 10:42:22 uskerine: if you were _without_ an installation of security/nss, you should wonder how the absence occurred. 10:42:52 security/nss is a required library for www/firefox. 10:42:53 Title: FreshPorts -- www/firefox: Web browser based on the browser portion of Mozilla 11:13:05 I am using firefox-esr 11:19:43 uskerine: thanks, there's the same requirement . 11:19:44 Title: FreshPorts -- www/firefox-esr: Web browser based on the browser portion of Mozilla 11:21:11 Reviewing, committing. gives 're' as an example of the name of a team, however (unless I'm missing something) there's no such team in Phabricator. 11:21:13 Title: Committer's Guide | FreeBSD Documentation Portal 11:51:54 the nss was upgraded when I did pkg install nss 11:52:11 maybe I did not run pkg upgrade in a long time (as I see I have 209 packages to upgrade) 12:07:04 "DHCPACK from ... Starting sendmail_submit. sm-mta[814]: My unqualified host name (freebsd) unknown; sleeping for retry". The VM-IMAGES download just hangs at boot for no good reason :( 12:07:32 two minutes of my life - gone 13:10:29 Molnija: POWER is, POWERNV is what you find on anything else. 13:16:23 debdrup: I didn't think either of them was MF. 13:23:00 Well, it's possible I'm misremembering. 13:27:58 https://publibfp.boulder.ibm.com/epubs/pdf/dz9zr010.pdf sure makes it seem separate, so it's probably just me misremembering 13:32:08 yeah, the machine check handling is completely different, so it's gotta be a different thing all together 13:32:57 i mean, it still uses ECC, because pretty much everything does, but it's described entirely differently from how the OpenPOWER spec describes it 18:09:50 anyone: i think you can ^c during that 18:10:24 When I do a "service unbound restart" it works fine. If I do "service unbound reload" I get: " fatal error: Could not read config file: /unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf" 18:10:45 the checkconf retuns no errors. Running unbound -dd shows no erros either. 18:11:51 path to file looks wrong, is it really in /? 18:12:06 No, that is why I am confused. 18:12:14 I am looking at the rc script 18:12:52 so with that path $local_unbound_workdir is not defined, which is why it expands to /unbound.conf 18:13:37 Where is that supposed to be defined? 18:13:51 and there's no local_unbound_reload function; it might be a bug 18:14:14 it's defined one line up, 18:14:43 Which script, sorry. I am not finding in /usr/local/etc/rc.d/unbound 18:15:01 oh, i was looking at /etc/rc.d/local_unbound 18:15:10 Oh, I am not running local_unbound 18:15:14 the real unbound 18:15:35 But I guess that applies workdir 18:22:24 I wonder if it is being borked by load_rc_config "${name}" (like it wasn't save dproperly) 18:22:54 eh? 18:22:58 It calls that twice. 18:23:06 When I do a "service unbound restart" it works fine. If I do "service unbound reload" I get: " fatal error: Could not read config file: /unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf" 18:23:10 That, cpet 18:23:19 is it a ports rc.d? 18:23:31 Yes, pkg install unbound 18:23:45 why do you install unbound if its already in base ? 18:23:57 and why arent you emailing the maintainer rather here ? 18:23:59 Only local_unbound is in base, no? 18:24:13 Because I am trying to see if there actually is a problem 18:24:22 one listen on localhost other listend on all 18:24:26 basically what that means 18:24:39 Right, I need to listen on external ips 18:24:49 And I have it doing void-zones as well. 18:25:27 Is it preferred to use "local_unbound" and change it's conf? 18:26:55 depend son use I personally hate it and wish it uberly death but thats me 18:27:41 Hate what? unbound in general? 18:27:53 I hate bind, and djb is getting very old 18:28:01 it works 18:28:11 but the error is self explainitory 18:28:12 I use djb for lots of stuff, still. 18:28:17 it wants /unbound.conf and cant find it 18:28:30 Of course, but trying to figure out WHY it is looking for that 18:28:39 (where is the bug) 18:28:43 djbdns? 18:28:52 human error ? 18:28:57 I am troubleshooting unbound, but yes, I mean djbdns 18:29:05 I pronounce that "jebdns" fwiw 18:29:13 Likely, but which human, as I don't think it is this one. 18:29:20 lol 18:29:29 well you fail to point configs and errors 18:29:35 so good lukc getting help :) 18:29:52 so start pasting some pastbins 18:29:57 It has something to do with the script installed by the package 18:30:09 * Molnija creates another maildir 18:30:21 (semi-serious) 18:30:24 my car makes a weird noise but without install a ODB scanner on it I can guess it's the belt ? 18:30:55 I kinda figured other people used unbound as well. So they would have the same installed files. 18:31:08 But I guess nobody uses the pkg version ?? 18:31:10 I use bind 18:31:29 After bind 4 bugs I never went back 18:31:45 all software has bugs 18:31:56 Of course. 18:31:57 all sotftware has bugs freebsd is no different 18:32:15 Some developers don't code well. They make more bugs 18:32:17 stoping the use of a program casue it has 4 CVE's wihc arent even remote is well ... 18:33:42 https://cgit.freebsd.org/ports/commit/?id=7b0d6de05baabfbcd7a25fd0440ee3bf1f3bc23e 18:33:43 Title: ports - FreeBSD ports tree 18:33:51 try changing that back 18:33:54 There was also the speed issue. Back then it was old HW. djb was significantly faster 18:34:13 But the issue now is with unbound scripts ;-) 18:34:15 seeing how the root DNS still use NSD,bind 18:34:17 i fint that BS 18:34:26 Erhard: are you trying to turn off Unbound? 18:34:34 hes using the port version 18:34:41 No, I want service unbound reload to work correctly 18:34:42 what? 18:34:45 right 18:35:05 any reaosn why yopu dont email the maintainer ? 18:35:20 Becaue I am trying to find the bug first. 18:35:35 Erhard: how's /usr/local/etc/rc.d/ look with unbound installed from ports? 18:35:40 I just gave you saomething to try 18:36:03 That is what I am looking at Molnija 18:36:14 so... 18:36:18 maybe do `sh -x /usr/local/etc/unbound reload` and pastebin the output 18:36:49 : ${unbound_config:=%%PREFIX%%/etc/unbound/unbound.conf} 18:36:53 default from port 18:36:59 which tells me human error 18:37:31 sysrc unbound_enable=YES 18:37:40 er, nvm 18:37:46 this is too advanced for me 18:39:21 any reason why you dont paste your rc.conf or any other relative items instead of just saying "it doesnt work" 18:39:33 sh -x /usr/local/etc/unbound reload works fine. It is service unbound reload that fails. 18:39:44 Because it's not in rc.conf 18:39:51 bleh 18:40:01 you seem to know more yet your asking here for help 18:40:03 so enjoy 18:40:08 cpet: chill out man 18:40:35 LOL, ok 18:40:38 `sh -x /usr/sbin/service unbound reload` 18:40:41 rtprio: I've had a few tussles with cpet i think 18:41:10 rtprio: Good call 18:41:25 you think ? its either a truse or false statement 18:41:48 + exec env -i -L -/daemon 'HOME=/' 'PATH=/sbin:/bin:/usr/sbin:/usr/bin' /usr/local/etc/rc.d/unbound reload 18:41:52 oh good lord now you're words lawyering 18:42:37 is that it? 18:42:59 I've never been able to work unbound anyway. 18:43:49 it requires a little more than cp .sample to .conf and running it 18:45:51 Erhard: ` env -i -L -/daemon 'HOME=/' 'PATH=/sbin:/bin:/usr/sbin:/usr/bin' /bin/sh -x /usr/local/etc/rc.d/unbound reload` 18:46:25 A friendly question: If you like djbdns, why not use djbdns? 18:48:12 root@vm:/home/chris # service unbound reload 18:48:43 rtprio: That has the same effect. Still debugging. 18:49:01 https://pastebin.com/zwNiSR3w 18:49:02 Title: Nov 19 12:48:26 vm unbound[82204]: [82204:0] info: server stats for thread 0: re - Pastebin.com 18:51:12 Just simply HUPping unbound causes the error 18:51:31 So perhaps the unbound config itself... Checking that 19:17:04 Nothing untoward there, must have to so with unbound being a jail. 19:19:01 Forgot to run "etcupdate extract && etcupdate diff" before source update & world building (https://docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld ). Could|Should I do something else? 19:19:03 Title: Chapter 25. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal 19:27:01 Here root is on a ZFS dataset, along with boot environment, if that would matter 19:29:33 question. say i want to build pkgs from source, can i build them on a beefier machine running a VM and then upload it to a repo and use them on the wimpier laptop? 19:32:32 Answer is "yes". "How?" That I do not know (involved setting up the other 'puter as the package repository) 19:32:43 s/involved/involves/ 19:36:04 i know the how. i just needed the reassurance that i could 19:37:54 Ok then, get building! 19:38:09 not until the holidays. 19:38:44 and i have to set up my diagram for what i want done and what will need to be done 19:45:39 richardbanger: you might want to check out poudriere (if you aren't familiar with it) 19:47:17 i was reading about poudriere which prompted the question 19:47:27 i just wanted reassurance. 19:59:43 parv, and? 20:00:12 cpet, "and?" for what? 20:00:45 etcupdate* 20:02:49 I don’t get zus snapshot and rollback. I create a snapshot of zroot@test with -r, create a file with content, do a rollback of zroot@test and the file still exists. What am I’m missing here? 20:04:02 I had asked: I forgot to run etcupdate extract" before source update & world building per the handbook. Is there anything I could do to have the effect of "etcupdate extract" which would have the effect of running it before (source update & world building)? 20:04:48 s/zus/zfs (damn autocorrect) 20:07:01 parv: probably fine to leave until the next make world process 20:07:32 rtprio, Certainly can do 20:07:39 So, I can rollback a dataset like zroot/usr/home@test, but not the entire zroot@test? 20:08:13 weust: yes 20:09:48 OK. And there is no recursive option like there is with snapshot. So, I need to rollback every single dataset separately? 20:13:14 i believe so 20:14:14 From "zfs-rollback(8)" manual page: The -rR options do not recursively destroy the child snapshots of a recursive snapshot. Only direct snapshots of the specified filesystem are destroyed by either of these options. To completely roll back a recursive snapshot, you must roll back the individual child snapshots. 20:15:02 I overlooked that. I did read the man. 20:15:38 it happens, no problem 20:16:40 But it sucks. Imagine wanting to rollback zroot after a failed system update. Why is there a recursive for snapshot, but not rollback. That last sentence doesn’t say why. At least, to me. 20:16:53 just script it 20:17:32 Yeah, will have too. 20:17:43 zfs list -H -o name -t snapshot |grep 2022-09 |xargs -n1 zfs rollback 20:19:54 Thanks. Will save that. Will come in handy again soon, no doubt. Trying to setup my laptop partially with ansible. 20:36:53 Please make liberal use of the -n and -v flags on all zfs commands unless you use zpool checkpoints. 20:39:04 Liberal as in use whenever possible, you mean? 20:39:48 Sadly for both snapshot and rollback such flags do not exist 20:46:48 What is a "stable" or "current" installation of the OS called: branch, version, other? Not "release", right? 20:46:59 release 20:47:27 Hmm. Ok. 20:47:33 cpet, Thanks 20:47:40 called where? 20:48:35 So for the 802.11s mesh support - is there anyway to make freebsd use ethernet for the mesh backhaul? 20:48:59 If I had installed a "stable/13" from source, what do I tell someone else what "it" is besides being installed from source or snapshot? 20:49:24 stable 20:49:26 you say "13-stable" 20:49:46 (instead of 13.something release) 20:50:02 Right. Thank you 20:50:31 that was interdasting. 20:51:06 What is "stable" in the context, a "version", "type"? 20:51:15 version 20:51:19 Looking for a noun here 20:51:42 dev 20:52:29 non-release-engineered 20:53:25 after running freebsd for 25+ years still puzzles me why release stable and current is so hard 20:55:05 parv, 14.0-CURRENT what version am I running ? 20:55:14 i gave up running stable partly for that reason and have stuck with -current since 5 20:55:50 cpet, "14.0-CURRENT" 20:55:56 14-CURRENT 21:00:09 STABLE denotes the KBI/ABI won't change, CURRENT denotes that it stays current with the head of the tree. 21:00:30 s/won't/isn't meant to/ 21:00:40 That's all there is to it, really. 21:01:09 RELEASE is the product that the FreeBSD project publishes, along with its documentation in the form of the handbook and articles. 21:01:53 If you're not running RELEASE, you're expected to be willing to learn how it works and/or already know. 21:03:18 KungFuJesus: https://docs.freebsd.org/en/books/handbook/advanced-networking/#networking-lagg-wired-and-wireless 21:03:19 Title: Chapter 33. Advanced Networking | FreeBSD Documentation Portal 21:04:34 weust: yeah, liberal as in use it as often as possible. I didn't know zfs-rollback didn't support it though, that seems like an oversight - but it's all the more reason to use zpool checkpoints then. 21:04:40 I understand the purposes of "stable" & "current" branches. It is just that when I was trying to mention elsewhere that one should subscribe to appropriate -(stable|current)@ mailing list, I could not come up with general word to refer to each (regular "RELEASE", STABLE, & CURRENT) 21:06:32 They're branches in the VCS, if that's what you're asking for. 21:06:49 STABLE is branched from main (which is the CURRENT branch), and RELEASE is branched from STABLE. 21:07:15 It's described in more detail here: https://docs.freebsd.org/en/articles/freebsd-releng/ 21:07:16 Title: FreeBSD Release Engineering | FreeBSD Documentation Portal 21:07:53 e 21:08:42 It's not entirely accurate anymore since nowadays even a dot-zero RELEASE involves creating a new STABLE branch. 21:09:15 ..it also still references svn because 12 and 13 are still made using that. 21:25:30 I figure out why cpet got unbound to reload, and I did not. It seems void-zones-tools does not place the zone in the correct location under the config directory. This works fine with s start or restart, but not with a reload. 21:25:52 Not sure if that owuld be considered an unbound bug or a void-zones-tools bug. 21:26:31 Or a bit of both. Seems wrong that unbound would have no problem with starting, but would have a problem reloading. Seemes like a separate issue as to where void-zones-tools put the files. 21:27:00 And I think I found a security flaw in void-zones-tools I will have to address anyway. 21:33:59 probably a good idea to take it up with the author 21:34:34 it's not inconceivable that the problem with file location is an issue that can be solved in the port, either 21:34:41 worth looking into, at least 21:34:43 Yeah, I see why void-zones-tools is puttin ghte files in theother directory. It's because it is designed to work with local_unbound rather than the ports unbound. 21:35:02 So there would need to be a config option for using it with either. 21:36:37 However, I still think the behavior of unbound is a bug in terms of working on startup, but not on reload. 21:36:52 And passing the checkconf 21:37:53 I'm curious why you're using unbound from ports 21:38:01 Not that I think it's wrong by any means, just curious 21:38:14 is there an error in your config that maybe slips by, that causes it to crash in reload 21:38:20 I perhaps incorrectly thought that local_unbound was only for listening on localhost. 21:38:41 Erhard: heh 21:38:57 rtprio: Kinda. There is an include: that doesn't work with the reload 21:39:11 I mean, I can understand making that mistake if you just didn't think about it any more (which is something I'm sure I'd be capable of, too) 21:39:33 Erhard: and if you remove the include does it reload? 21:39:34 debdrup: Can you just as easily modify the local_unbound to listen everywhere? Is it really just unbound? 21:39:49 man local-unbound.conf looks like yes, it will listen on 0.0.0.0 21:39:53 rtprio: Yes, or after I fixed the location to be under /usr/local/etc/unbound 21:40:07 🤷 21:40:20 so its fixed now? 21:40:21 Erhard: src/contrib/unbound is the location of the files 21:40:25 I guess the question is.. what is different between local_unbound and unbound? 21:40:39 it really is just a vendor import 21:40:43 https://cgit.freebsd.org/src/log/contrib/unbound 21:40:49 Title: src - FreeBSD source tree 21:41:06 Hmm. Then I guess I don't need the port version. 21:41:08 Annoying. 21:41:34 https://cgit.freebsd.org/src/tree/usr.sbin/unbound freebsd adds/changes a few things apparently, but i don't think it's major 21:41:36 Title: unbound « usr.sbin - src - FreeBSD source tree 21:41:52 When I saw local_unbound I stupidly assumed it was FreeBSD's answer to the systemd-resolver.. A neurtered local-only resolver that I didn't want. 21:41:57 I guess I was wrong. 21:42:34 Why the heck do they callit local_unbound and set it up like that? 21:42:53 It could just be configured to listen on localhost by default 21:42:59 isn't it? 21:43:04 It is. 21:43:12 But I mean rather than the rename and having a port 21:43:40 I just switched from djsdns a few years back. 21:43:44 djbdns even 21:44:16 How do I set options for ports in batch mode? Like `make -DWITH_MYSQL install BATCH=1` or something like that? 21:44:39 https://cgit.freebsd.org/src/commit/usr.sbin/unbound?id=49cede74eecf425ae72d87eb6e8a4f77eec87a5b has a bit more information it seems 21:44:41 Title: src - FreeBSD source tree 21:45:56 I _think_ it might also be related to being able still install unbound from a package repo and have it not conflict in any way, if for whatever reason? 21:46:20 Well, I think I will stick with the port for now, but good to know it works fine the other way. 21:46:21 my brain is inconceivable 21:46:48 it might also be because local_unbound can be controlled by a socket: https://cgit.freebsd.org/src/commit/usr.sbin/unbound?id=f1b3840c9a9ccc46480c36781e2205ec9565be45' 21:47:04 And there definitely is a security flaw in void-zones-tools. Rudimentary, local only, DoD mainly. But stupid practice nonetheless 21:47:25 * DoS mainly 21:47:52 INteresting, debdrup 21:48:18 I prefer as few vendor patches as possible. 21:48:18 hernan: BATCH is an environment variable, you can either set it for that instance of make or you can set it via setenv (or whichever method your shell uses) 21:49:36 well I'm trying to inject it into a jail with a jexec one-liner 21:51:14 `make BATCH=1` actually works. I'm just trying to set port options non-interactively 21:52:21 like we used to do before dialog allowed us to forget :) 21:52:28 i think you can set them in the environment also 21:53:36 right, but what's the right way to do it? and can I one-liner it as a make argument? 21:54:55 you should be able to; i check the makefile for which options to use 21:55:51 hmmm, `make showconfig` is pretty cool and instructive 21:58:10 ya 22:08:06 anyone here running FreeBSD aarch64 on M1 macOS with QEMU/UTM? I am able to run it, but it uses like 100% CPU on the host. 22:09:39 haroldp: you can also use make.conf to set things 22:10:25 There are multiple ways of doing it, no "right" way as that depends on what in particular you want to accomplish 22:10:29 yeah, or i could inject a /var/db/ports/${NAME}/options, but I don't think I love either option 22:14:50 build the port on the host and `pkg install` it on the guest 22:15:13 antranigv: there's also vmware fusion tech preview for m1, try that 22:15:31 I just remember we used to do this back in the good old bad old days before ports were tricked out with dialog-ed options 22:23:39 got it 22:23:44 make -C /usr/ports/mail/maildrop OPTIONS_SET="AUTHLIB AUTH_MYSQL" BATCH=1 install 22:24:18 OPTIONS_SET and OPTIONS_UNSET 22:25:30 use poudriere! 22:26:25 (I'm _almost_ maybe not entirely possibly perhaps semi kidding) 22:26:42 ... no; poudriere is the hammer used to solve this (thumbtack) 22:28:45 I'd use it but I am too dumb to spell it correctly. 22:31:31 aaa finally 22:31:35 kern.hz=100 22:31:47 ..but why? 22:35:04 according to the handbook: The most important step is to reduce the kern.hz tunable to reduce the CPU utilization of FreeBSD 22:35:27 it also reduces the task switching frequency 22:35:31 for what purpose, specifically? 22:35:40 so, don't do that if you care about response 22:36:18 no, freebsd is closer to soft-realtime in quite a lot of respects, so kern.hz doesn't control nearly as much as it does on other unix-likes 22:36:34 kernel scheduling is controlled by a quanta, a unit in the scheduler itself 22:36:56 Yes somehow, lowering that got my CPU from 350% to 5% 22:37:00 :D 22:37:03 its value can be found in the kern.sched.quantum OID 22:37:14 I assume there's SOMETHING in the system that's using that. 22:37:20 ohh lemme check that 22:37:36 what was using 350% of your CPU, and how did you meassuure it? 22:38:06 debdrup the VM was using 350% CPU, but the guest itself was idle (according to top) 22:38:10 what VM? 22:38:23 "according to top"? 22:38:36 which flags were you using? 22:38:52 debdrup I mean, top(1). the VM is the FreeBSD VM running on QEMU on M1 macOS 22:39:17 I get kern.sched.quantum: 94488; debdrup what do you get on bare-metal? 22:40:07 if memory serves, that's the default value 22:40:37 I wonder what uses kern.hz that affected this change 22:40:40 VM can stand for virtual memory and virtual machine, so it's not exactly easy to know which one people are talking about 22:40:57 debdrup oh, a virtual machine. 22:41:06 the real question is, what happens wne you set kern.hz to 1000 again? 22:42:20 oh I tried that! the CPU goes back to 350% :( and my laptop gets hot! :D 22:42:27 if you run top with the right flags, you should see in particular which kernel thread/or light-weight process is using what 22:42:30 I think it's polling something. 22:42:40 debdrup oh true. I should check 22:43:18 i thought fbsd called lwps threads, not lwps as illumos does 22:45:30 no, freebsd has both threads and lwps 22:46:03 ahhh, I can't believe the pkt server is dead 22:46:12 wHAT 22:46:24 i need to go code diving 22:47:01 Molnija: you don't even need to go code diving, both ps and top will let you see IDs to confirm it 22:47:27 I don't disbelieve you 22:47:39 I mean that I need to go code diving to understand 22:50:49 antranigv: -IqSuZ as root should get you closer 22:52:49 Molnija: if memory serves, it dates back to kernel M:N threading that was eventually backed out, whereas this stayed. 22:53:11 Or maybe it came in with libthr? I don't remember :/ 22:53:39 huh, it's rand_harvestq 22:56:41 so it's something specific to the hypervisor that the qemu frontend is using 22:57:26 I have considered implementing user-level M:N M>N threading before 22:57:31 am I likely to go insane? 22:57:48 seems likely. 22:59:07 antranigv: what's your kern.random.random_sources OID set to? 22:59:32 debdrup VirtIO Entropy Adapter 22:59:36 Yep, I thought so. 23:00:43 mew 23:01:55 antranigv: what version is this? 23:02:51 debdrup FreeBSD 14.0-CURRENT #0 main-n259276-5d42ef55dec1 23:03:10 what should I do? remove the RNG device? 23:03:32 that's probably the easiest 23:03:40 but that isn't really going to solve the issue 23:03:44 i'd suggest you file a bug