00:42:02 im trying to update and got this message 00:42:03 Waiting for data... (^X or interrupt to abort) 02:54:31 what's /var/db/mergemaster.mtree 02:56:04 https://jrgsystems.com/posts/2022-04-20-802.11ac-on-freebsd-with-wifibox/ 02:56:05 Title: JRG Systems - 802.11ac on FreeBSD with wifibox 02:56:30 Oops. Replying to the wrong channel. Sorry for the non-sequitur. 03:14:36 nmz, I guess I could answer your question though. mtree(8) is a command that scans a directory hierarchy and stores the result in a file. Then on a later scan mtree can compare the current files to the saved db of them and report if any have changed. 03:14:58 mergemaster(8) uses this to know which files need to be prompted for merging. 03:42:56 should I erase it? 03:43:08 more like can you? 03:44:23 i just ran a 14.1 unattended bsdinstall. i got 2 nvme drives i wanna mirror and i want a mirrored swap. install finished but there's no swap? https://termbin.com/t6j0. system boots too. just swapinfo returns nothing, top shows no swap 04:04:16 in /etc/fstab there's 2 lines. 1 for efiboot0 and 1 for /dev/mirror/swap.eli none swap sw 0 0 04:33:11 is it a bsdinstall bug? 06:10:44 zfs problem in 14.1 unattended bsdinstall. i got 2 nvme drives in mirror and i want a mirrored swap too. install finished and it boots fine. but there's no swap? https://termbin.com/t6j0 swapinfo returns nothing, top shows no swap 06:24:05 why have a zfs dataset mounted in /zroot/ instead of directly off /? 06:30:34 polyex, this depends how you use bsd 06:31:19 if you use beadm - it creates additional mounting weirdness just to keep you safe in cases of bad upgrades 06:31:36 this lets you switch between snapshots during a boot 06:32:57 i dont like this way of solving the system integrity, couple of times i had an issue with zfs, and this type of mounting becoming a big pain in the ass during recovery 06:33:15 what's safer about mounting zroot/bhyve at /zroot/bhyve/ instead of /bhyve/? 06:33:53 in case to change that you have to prior using partition the zfs in a different way, (manually) 06:34:10 and then you have to control the snapshots by hand 06:34:51 if you new to zfs and bhyve - then is is better to say in the "recommended" zfs partitions 06:35:02 read about beadm 06:35:34 modern openzfs become very stable and you probably do not need to recover anything.. 06:37:28 polyex, man bectl 07:43:41 zfs problem in 14.1 unattended bsdinstall. i got 2 nvme drives in mirror and i want a mirrored swap too. install finished and it boots fine. but there's no swap? https://termbin.com/t6j0 swapinfo returns nothing, top shows no swap. in /etc/fstab there's 2 lines. 1 for efiboot0 and 1 for /dev/mirror/swap.eli none swap sw 0 0 07:44:21 how do i get ISA x86-64-level on FreeBSD? https://en.wikipedia.org/wiki/X86-64#Microarchitecture_levels. on linux one car run /lib64/ld-linux-x86-64.so.2 --help 07:44:22 Title: x86-64 - Wikipedia 07:55:33 jesus christ you and this unattended install 07:55:47 just install it and start using it instead of fucking around 07:55:56 unless you're going to do the same install on 1000 other systems 07:56:29 relax i think i found a bug in 14.1 bsdinstall. or atleast a hole in the man page 07:56:49 does the non-interactive install create the swap properly? 07:57:07 and how does it do it 07:57:15 eli? 07:59:14 what im saying is from man bsdinstall, https://termbin.com/t6j0 should be enough to create a zfs mirror with a mirrored swap. it does everything except making a swap 08:00:26 does mdconfig -l show anything? 08:01:23 no 08:01:54 <|cos|> rtprio: euhm. one (1!) system is an appropriate minimal number of systems to install with automation, because it gives documentation and reproducibility. 08:06:22 ... disagree. you use config management for that, not automated install 08:06:44 polyex: so yeah, i suspect it gets confused when you do both encrypted and mirrored 08:07:05 you could test this theory trying only one and then the other 08:35:21 rtprio k commented out the swap encryption line. reinstalled. on startup, says swapon: /dev/mirror/swap: no such file or dir 08:45:00 ok, then looks like you found a bug 08:45:35 can anyone who knows more than me confirm it's a bug pls? 08:51:19 how good are you at reading shell scripts 08:55:41 not 09:17:12 Is there a reason that D35694 was never merged? 09:17:20 It just seems lost in the aether 09:17:25 https://reviews.freebsd.org/D35694 09:17:26 Title: ⚙ D35694 Add ts(1) command 09:17:53 polyex: wonder if there is possibility its get mounsted later than something try access it ? 09:27:22 try what drathir_tor? 09:27:31 it doesn't take 15 min to start swap up heh 09:33:36 polyex: yes true, but more thought about hierarchical steps of encryption script maybe its happens before swap location get mounted... obviously its only just idea... 09:34:14 anyone have unattended bsdinstall end at rm: /mnt/tmp/installscript: no such file or dir? 09:45:50 i commented out any of the swap env vars and it seems a swap partition was made for me 09:45:57 how do i check if it's a mirror swap? 09:50:14 polyex: normally df -h or lsblk -fs but need admit them from linux not sure if present under freebsd... 09:50:56 didn't show me if swap is mirrored 09:53:20 hi, I want to set up a small "homelab". I have been looking for potential servers and found some recommendations for Dell 320-420-620-720 , or the subsequent generation Dell 330-430-630-730. 09:53:36 I would like to know if someone has practical experience on FreeBSD support for this one or can recommend alternatives 09:53:44 these ones* 10:03:26 polyex: fast search " zpool status " maybe from https://docs.freebsd.org/en/books/handbook/zfs/ 10:03:27 Title: Chapter 22. The Z File System (ZFS) | FreeBSD Documentation Portal 10:04:14 that shows the main mirror but nothing on the swap 10:07:54 polyex, why dont you partiton disk as you want and then extract bsd files there 10:08:02 it is very simple to do 10:08:19 because i'm bug hunting in bsdinstall 10:08:30 ah ok then 10:09:58 nerozero do you know how to check if my swap is mirrored or not? 10:10:36 if your swap is placed on a mirror device - it is there 10:10:48 if you have 2 swaps on 2 different drives - it is not 10:11:04 what command output would i look at? 10:11:20 cat /etc/fstab ? 10:11:25 swapinfo -h 10:11:44 or that one 10:11:59 looks like it's not mirrored. the swaps are 2G in size, with 4G total 10:12:02 so can't be a mirror 10:12:03 but this is depending on how you mounting your swap 10:12:28 since new ppl are here now: 10:12:32 zfs problem in 14.1 unattended bsdinstall. i got 2 nvme drives in mirror and i want a mirrored swap too. install finished and it boots fine. but there's no swap? https://termbin.com/t6j0 swapinfo returns nothing, top shows no swap. in /etc/fstab there's 2 lines. 1 for efiboot0 and 1 for /dev/mirror/swap.eli none swap sw 0 0 10:12:42 you can do that by using gmirror against yor drives then put the swap on the gm device 10:12:48 but why ? 10:12:59 look 10:13:04 you do that wrong 10:13:16 how am i doing it wrong? i just followed man bsdinstall 10:13:36 why you need your swap data in a mirror ? 10:13:37 first 10:13:54 so i don't lose swap with a disk failure and lead to a crash 10:14:07 second swap partitions is separate of zfs once 10:14:20 what? 10:14:34 then make a volume partition on zfs and add is as a swap 10:15:04 how about you just let me find bugs in bsdinstall and get them fixed? why the pushiness 10:15:49 zfs create -sV2T -o volmode=dev zyourpool/zyourvolume 10:16:27 ok i forget that you are looking for a bugs .,.. sorry 10:17:44 I'm not using bsd installer for ages .... (>15y or so ... its too restrictive for me) 10:19:34 my turn to ask question. what is the best way to check if drive is mounted or not ( in scripting ) 10:20:37 also better approach to find mount_dir is used already by parsing `mount` output 10:28:43 polyex: but isnt You loose ram anyway and swap is incomplete on crash ? to have full dump the system need to migrate all ram into swap file/device to being able resume from it... ? 10:29:07 sorry i dont understand what you say 10:31:26 polyex: like in meaning when system crash before Your all ram is stored into swap file/device You will be unable to resume the system bc of incomplete swap data... at least if im not wrong... 10:31:52 dunno bro i just want mirrored swap 10:32:25 polyex: oh i see... 10:35:28 nerozero: not sure if best (probably not), but grep "df -h" for mountpoint handle or "lsblk -fs" for partition uuid could works i guess ? 10:38:54 meena gone? 10:42:23 what's better, swap on zfs, or no swap? 11:25:53 polyex: no swap. Swap on ZFS can lead to kernel problems. 11:26:38 vortexx ok then very best option is swap the way bsdinstall sets it up, where it's separate from zfs? 11:29:47 polyex: if you really need mirrored swap, you do create a raid 1 device and tell the swap config that that is the partition to swap to 11:29:55 you don't involve ZFS in this 11:30:01 ya 11:30:11 that's how bsdinstall sets it up right? parallel to the zfs config 11:30:23 not mirrored, i gave up on that 11:30:48 never used bsdinstall 11:35:39 but https://docs.freebsd.org/en/books/handbook/geom/#geom-mirror-two-new-disks <-- how to set up raid1 with two partitions, shouldn't be hard to add to bsdinstall 11:35:40 Title: Chapter 21. GEOM: Modular Disk Transformation Framework | FreeBSD Documentation Portal 12:03:08 polyex: get swap even if unused always safe approach... You at least notice slowdown and start investigate when swap kick in... (assume no monitoring present to mail scream first) 12:16:44 yeah processes will get randomly killed if no swap and you run out of ram 13:13:48 vortexx: Not fully randomly, and see protect(1) 15:37:00 15:46:43 ok, i wanted to buy a DVD of freebsd 14, and a few physical copies of the freebsd mastery books (ensuring the author gets paid), but i want to do that in EU 15:47:14 where could i do that? 16:20:24 Demosthenex: https://www.freebsd.org/where/#distribution 16:20:25 Title: Get FreeBSD | The FreeBSD Project 16:20:34 Demosthenex, see https://docs.freebsd.org/en/books/handbook/mirrors/#mirrors-disc for getting installation media. 16:20:35 Title: Appendix A. Obtaining FreeBSD | FreeBSD Documentation Portal 16:22:49 yeah, i found a french vendor of the discs, i'll order one there 16:22:58 but the cool books, physical prints seem to be a problem 16:23:17 There's a German one, too, there: http://www.hinner.de/linux/freebsd.html 16:23:18 Title: Hinner EDV: FreeBSD und Linux 16:23:54 I'm guessing that you're looking for EU-based vendor, not just shipping? If shipping is not a problem, you'll find the books on amazon.de 16:24:41 the german one says no eu sales on the site, weird 16:24:55 ugh, i have to give money to bezos? 16:25:07 Demosthenex: https://mwl.io/faq#buying 16:25:08 Title: Frequently Asked Questions – Michael W Lucas 16:26:49 regis: yeah, i was on that page. 16:27:09 tiltedwindmill, bookshop.org, etc were all US specific 16:27:15 really, i need a US credit card to order there. 16:28:23 looks like it may only be amazon in EU to buy a physical copy with local currency 16:34:40 *sigh* ideally he still gets paid if i buy it from that sleazy seller 16:39:40 https://www.donner.nl/freebsd-mastery/michael-w-lucas/9781642350005 HA Donner had it, screw you bezos. 16:39:44 Title: FreeBSD Mastery, Michael W Lucas Allan Jude | Donner 16:39:58 I am surprised tiledwindmill requires a US credit card. You might email him and suggest an alternative payment method allowing you to "tip his rats". 16:47:19 well, he'd have to do EU shipping too, which is a PITA. i do understand 16:47:29 i'm just trying to buy them from EU, and see that he's fairly paid too 16:47:40 and i just don't get the same value from ebooks 17:03:15 I agree that I don't get the same value out of ebooks. I am much better with the physical paper books. 17:05:27 Finally now I know how Daemon sounds like https://www.youtube.com/live/uW9iEWv_UIE 17:05:28 Title: Interview with Beastie, the BSD Daemon - YouTube 17:05:28 His Treat the Rats item though does not ship you anything. It's just a little extra cash to send to him directly. 17:05:46 Heh, I got a flashback from Blank Reg: https://youtu.be/dZ4qli_1C48?t=33 17:05:47 Title: Some Blank Reg moments from Max Headroom - WIlliam Morgan Sheppard - YouTube 17:06:26 DanDare, Excellent. Hahaha! 17:06:41 :) 18:38:45 Hi, what could be the reason for dhclient to say "No working leases in persistent database - sleeping." at startup, when there are valid ones? (it happens after an outage when the ISP's infrastructure is not fully up yet) 18:39:39 I'm revisiting a cascade of failures that happens in this scenario, that used to be fine in freebsd 12.0. I originally posted it in https://forums.freebsd.org/threads/slow-modem-results-in-dhclient-no-link-giving-up-ignores-timeout-setting.91250/ 18:39:40 Title: slow modem results in dhclient 'no link, giving up', ignores timeout setting | The FreeBSD Forums 18:41:39 yay, i bought about 100eur of books today 18:45:51 I have found that 13.0 dhclient only waits 10 seconds for link (hardcoded). I have patched that. I have realized that I need to have dhclient 'timeout' at least 120s to wait for the ISP to prevent the abovementioned "No DHCPOFFERS received, Trying recorded lease. No working leases in persistent database" scenario. I still want to understand why it's doing this though (is it verifying the lease by 18:45:57 pinging a host?). Finally, I have identified an ancient mistake in the pf 'nat' rule where I learned to make the rule dynamic by adding parentheses, but I didn't put them into the 'from !($ext_if)' part. Freebsd 12 and 13 seem to have autocorrected this, but 14 takes it literally and rejects the entire rc.conf file if ext_if isn't ready. 19:08:23 ultramage: Hi, you could try if simply using dhcpcd instead of dhclient works for you if you have issues with dhclient. That worked for me many many times in the past with very different issues. 19:09:23 ultramage: If you receive no DHCP offer, it looks if there is some DHCP assignment that is locally cached, at least that's my understanding of what a recorded lease is in that context. 19:12:51 armin: yes it's supposed to use dhclient.leases - which it has, and there's a valid non-expired lease in there. Prior to freebsd 13 it had no problem binding to it. Now it gives up instead. 19:14:38 I have the source code open. There have been no obvious changes to dhclient.c, but I do see that instead of just doing stuff, it crafts a short 'script' and then executes it, and only performs the binding if the script succeeds. So now I need to study the internal scripting engine to understand this change in behavior. 19:17:07 ultramage: oh cool, interesting! 19:44:58 how is if_wg_load="YES" in freebsd 14 used? i currently use wireguard-tools on freebsd 13. 19:45:51 it works in the same way 19:46:41 well no it doesn't because i kept all the same config as 13 and wireguard didn't magically work 19:48:04 man wg, I guess? 19:50:08 ya i read that. it doesn't say where to put the config file 19:50:28 with 13 wireguard-tools, i put wg0.conf in /usr/local/etc/wireguard/ 19:50:47 yeaaaa. driver src doesn't seem to either. I'm trying to locate the userland 'wg' component atm 19:50:59 wg showconfig might reveal something 19:51:08 you still need net/wireguard-tools package 19:51:32 so why bother enabling if_wg_load if it doesn't add anything? 19:54:33 I don't know why you were bothered 19:54:48 that's interesting, man has a 'wg(8)' page, implying it comes built in 19:54:49 that's not what that means 19:55:00 ya it's weird 19:55:43 other BSDs have native tools for management, ours lacks the tool yet 19:55:46 polyex: my first guess is that having a kernel driver reduces the syscall / buffer i/o overhead. 19:55:47 but no worries 19:56:08 wg-tools will load it 19:56:20 is wg-tools the same as wireguard-tools? 19:57:03 yes 19:57:34 pkg install net/wireguard-tools 19:57:35 ok so keep everything the same with wg for 13, just enable the kernel module in boot loader for more efficient operation? 19:57:48 no need 19:58:18 it will delay boot, that's only benefit/drawback 19:58:46 no need to if_wg_load="YES"? 20:00:34 * ultramage will probably bake it into the kernel later 20:01:48 polyex: yes, please dd this line 20:05:28 polyex: how do you like FreeBSD ? are you considering migration to another BSD or other variant of Unix ? 20:12:23 no i like freebsd good enough. you? 20:13:20 same here, I got used to this OS 20:21:22 I am upgrading my desktop from 13 to 14.1 and it happens to have /usr/src/ populated and the upgrade has been runnning doing installs on /usr/src for the last FOUR hours. 20:22:47 I am about ready to kill it, snapshot things back to the previous state, and then do something different. Maybe remove all of /usr/src and associated and then try the upgrade again. It is just crawling slowly through /usr/src/ and this is taking forever and a day to get through it. 20:23:01 Any wisdom hints from the group? 20:23:40 rwp: what is it hanging on? 20:23:55 If you press ^T a bunch, what wait channel is it usually in? 20:25:31 The prompt is just "Installing updates..." but in another terminal I am running ps auxdww and looking at what it is doing in a loop and it is running "install -S -o 0 -m 0755 [long hex hashish] ///usr/src/tools/test/stress2/misc/mkdir.sh" and just crawling through every file in /usr/src/ 20:26:14 I am quite confused. Are you doing a source or freebsd-update update? 20:26:16 I don't care about freebsd-update updating /usr/src/ and but it seems insistent. 20:26:36 I would just blast /usr/src and try again, as you suggested 20:26:48 It's running "freebsd-update install" after having run "freebsd-update -r 14.1-RELEASE upgrade" 20:27:29 I don't recall it taking so long to update /usr/src in past upgrades. And the other systems I have upgraded don't have /usr/src populated. 20:28:29 I am going to do it. Interrupt it. The worst that happens is that I have to revert to a previous Boot Environment and I am well practiced with that recovery. 20:28:31 freebsd-update often does weird shit for me. The machines I use it on usually don't have src present. 20:28:53 I had forgotten that /usr/src/ was populated on my desktop. 20:29:41 Another weird panic for y'all. https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=279899 20:29:43 Title: 279899 – pf_unlink_state mutex unlock page fault panic 20:29:53 I started this at 10:43 and it is now 14:30 so it has actually been running almost 6 hours now. It's just taking way too long. 20:31:26 amigan, That panic does not look like fun. 20:32:21 Yeah. I went through commit log trying to brain-bisect it and can't see anything obvious. 20:40:17 rwp: do you happen to run the os off of an usb2 thumbdrive? it reminds me of how portsnap destroyed the one I was using way back when 20:44:19 ultramage, Nope. This one is a mirrored pair of 3TB SATA spinning drives. 20:45:07 I've seen etcupdate do something similar. In fact, is etcupdate in the process tree? 20:45:16 Might be too late now, of course 20:46:01 I have already interrupted it. I am cleaning out files now. Surprised by there being 120k files in /usr/obj for example. Quite a few. 20:46:33 I am purging out /usr/src and /usr/ports and /usr/obj as this is not a source upgraded machine. 20:47:11 But being as this is giving me trouble I might take this as motivation to simply copy over a good system from one of my other machines that I have already upgraded. 20:48:09 166k files in /usr/ports 20:49:15 In 42876 directories. 20:50:32 yea no, after that incident I use a sparse git checkout. a pain to manage since portmaster fails hard on missing subdirs, but it's much easier on the filesystem 20:51:18 and my usr/src is a md mount of a 4gb .img file with a git checkout inside, to keep all that crap boxed in. 20:54:05 Okay. Have all of that cleaned up. Will a "freebsd-update install" be idempotent enough to restart successfully from here? I guess there is only one way to find out. freebsd-version -kru says 14.1-RELEASE 14.1-RELEASE 14.1-RELEASE-p1 so it feels like it should be mostly done but cat /etc/os-release still shows 13.3 so it hasn't been updated yet. 20:58:21 At least it's installing files in /etc /usr/bin and so on now. Seemingly at no faster than a couple per second though which still seems like it is incredibly slow for some reason. 20:59:13 OMG! It uses install -S and the -S forces an fsync() after every action. No wonder it is crawling along so slowly! It's being forced to run at slow disk speeds. 21:00:15 That's got to be new damage with 14 as I do not remember it running that slowly in 13. 21:06:26 installworld j1 from 13 to 14 only took a few minutes on a single sata drive. that package-based os update must be weird 21:09:06 I edited /usr/sbin/freebsd-update and hacked out the -S from "install -S" and am running it again and now it is moving along much faster. 21:09:20 This is not the pkg-base that everyone has been talking about. Not yet anyway. 21:10:25 It seems from experimental evidence that interrupting and restarting freebsd-update is idempotent and it picks up where it left off okay. That's good anyway. 21:11:40 This is running on a fairly fast ten year old desktop with 16GB of RAM and two Toshiba 3TB spinning SATA disks. It's not a slow system normally. 21:19:02 freebsd 14 unattended bsdinstall throws up a "rebooting" gui when it's done. 13 didn't do that. how can disable? because now every bsdinstall takes 10 seconds longer out of nowhere. not documented in bsdinstall man page 21:30:36 why does bsdinstall show mouse cursor during unattended install? should be hidden or off to the side lol 21:31:11 polyex maybe moused is enabled? 21:35:41 well ya prolly but still 21:36:03 i type a key and mouse hides. no reason unattended bsdinstall can't hide mouse cursor too 21:38:33 Hiding the mouse pointer is a terminal feature, not a bsdinstall feature. It would need bsdinstall to add code to talk to the terminal. And then there is hte problem of which type of terminal. 21:39:03 ok then just unload moused? 21:39:13 Right. I would disable moused. 21:40:20 ya 21:42:27 moused_nondefault_enable="NO" 21:48:14 Hmm... Even though I purged /usr/src the freebsd-update is putting it back now. I must not have gotten the source freebsd-update is using to reference and it still thinks it needs to be there. 21:48:50 /etc/freebsd-update.conf Components lists only world and kernel and does not list src. 22:26:21 when will the wifi adapter be supported on the PI Zero W1.1 ? https://wiki.freebsd.org/arm/Raspberry%20Pi 22:26:22 Title: arm/Raspberry Pi - FreeBSD Wiki 22:26:37 WEN� 22:26:37 WEN�� 22:26:37 WEN�� 22:26:37 WEN� 22:43:41 why does the file i set for /etc/COPYRIGHT get overwritten now? 23:10:37 psionic: when someone who cares enough works on it 23:10:48 be the change you want to see in the world :-) 23:16:08 Because software patents suck. 23:25:35 testbox with xorg / fluxbox setup https://usercontent.irccloud-cdn.com/file/lJyqT8YQ/freebsd_14_instance_testenv_22_06_2024_09_18_10.png 23:36:05 kevans know why unattended bsdinstaller sits there for 10 seconds at the end before doing automatic reboot? that's different from 13 behavior 23:52:30 polyex: I hope you're relaying to a bugs mailing list all your complaints about bsdinstall 23:52:43 just dumping here isn't going to cover it 23:57:53 hi circuitbone 23:58:09 hello