00:38:21 hi 00:40:13 How can I give permission to an user to execute 'at' queue? 00:41:24 "at: you do not have permission to use this program" 00:44:04 Found! 00:58:11 ferz: tell us what you found! 01:18:08 Guys, does anyone know how FreeBSD's `struct link_map` work? I'm iterating through it on my program by doing the following: 01:18:08 - Call `dlopen` with `filename` set to `NULL` (returns the head of the linked list) 01:18:09 - Loop through the link chain using the `l_next` field. 01:18:09 It's weird though - the last value of the linked list is not null - it is `0x10000000` and I don't understand why. 01:18:10 Also, the `l_addr` is always NULL for all the modules loaded 01:18:10 Where can I find more info about this? 01:29:25 I'm also having problems with: `Note type: 0x1 is not supported for owner: 'FreeBSD'` after `ptrace` calls 01:29:28 I don't even know what that means 03:47:28 does anyone know how wireguard (if_wg) is supposed to work in FreeBSD 14.0? there doesnt appear to be a way to get it to start via rc.conf and the old wireguard package doesnt work on 14.0 either 03:59:13 do you not configure it like any other ifconfig_wg0 04:03:21 no it doesnt use inet/netmask parameters 04:05:18 the existing pkg uses wireguard_enable="YES" & wireguard_interfaces="wg0" which loads all of the settings from /usr/local/etc/wireguard/wg0.conf 04:07:26 it can be done manually using: ifconfig wg0 create && wg addconf wg0 /usr/local/etc/wireguard/wg0.conf 04:07:45 surely this should be integrated into rc.conf though? 04:15:05 mjp: have you tried having the kernel module wg load on boot? 04:15:22 oh scratch that.. i missed the sentence above 04:15:44 yes its already loaded... not that its needed, it can be loaded after boot with kldload wg_if 04:16:33 I feels like FreeBSD 14.0 may have left eveyone in a position where they have to write their own rc.d/init scripts for wireguard? 04:26:15 maybe i am missing it.. you ahve the kernel loaded but you can not configure wg module? 04:28:48 i can configure it after boot by hand... but i'm trying to configure it in rc.conf so the interface (and all its settings) are loaded on each boot 04:30:33 its like just the if_wg module was included in 14.0 but none of the associated scripting for rc.d to make it work on boot 04:31:32 I'll continue to play around with rc.conf and see if i can find any documentation that will enable it to work, but so far its not looking promising 04:32:15 meh, i just use the rc script still in ports 04:33:08 > 22:07 < mjp> it can be done manually using: ifconfig wg0 create && wg addconf wg0 04:33:18 that's not quite a match for what the script in ports does 04:33:31 i am reading some forum posts and confir with kevans 04:33:38 is this a fresh 14.0 install or an upgrade from 13.2? 04:33:43 there's some sugar added atop for, e.g., DNS and stuff that it strips out 04:34:11 it wasn't feasible to bring wg-quick into base, but it's still in the wireguard-tools package that's compatible with base kmod 04:37:08 fresh 14.0 install 04:39:07 my first challenge was just to make wireguard bring up the interface and show the pub/priv keys, listen port etc. once that was done i was going to look at routing/forwarding/nat/pf etc. but i'm currently stuck even making wireguard load on boot 04:40:13 I did try using the wireguard (and deps) pkg but it did not bring up the if so assume it was broken on 14.0 04:44:25 the wireguard package actually has this notice on install: This port is deprecated; you may wish to reconsider installing it: Only useful for FreeBSD 12 which is EoL soon. It is scheduled to be removed on or after 2023-12-31. 04:44:56 i'm off for now but will be back on in ~4 hours to continue troubleshooting 04:45:04 net/wireguard-tools isn't deprecated, just the other ones 04:45:18 should be just fine on 14, I've been using it since before stable/14 branched 04:45:21 i will see if i can find any notes but it does not look to be deprecated.. notes state it is valid 04:46:15 net/wireguard is a meta-port that brings in wireguard-tools and wireguard-kmod, wireguard-kmod and the metaport are both going away 04:46:50 kevans: i do not have experience with wireguard but maybe "sharing" how you get it to load on boot may help? 04:47:35 nothing special, just set wireguard_enable=YES and wireguard_interfaces=wg0 in rc.conf 04:47:42 i see a lot of ways to load it on 13.2 which with a little "leap" could work on 14.0, one would think 04:48:22 it mentions those modules.. maybe mjp retrace your steps and see if there is a miss? 04:48:34 the only change from ports perspective is that the kmod moved into base, the binary interface remained exactly the same pretty much since we added the new version of the kmod to ports in the first place 05:59:07 got it partially working using wireguard-tools, thanks 05:59:56 I just found I had an incorrect Address in /usr/local/etc/wireguard/wg0.conf which caused a 'ifconfig: ioctl (SIOCAIFADDR): File exists' error when I first tried using the script 07:02:30 Hm, that nickname seems familiar.. 08:51:48 meena: man at :-) If there is any /var/at/at.[allow|deny].file only root can use at. 08:52:38 s/is/isn't/ 10:16:39 all working now :) 10:17:59 all ZFS users should #> sudo sysctl vfs.zfs.dmu_offset_next_sync=0 ASAP 10:18:39 mage: Why? What happened? 10:19:17 there is a currently silent data corruption bug 10:19:50 it looks serious https://github.com/openzfs/zfs/issues/15526#issuecomment-1823737998 10:19:54 Title: some copied files are corrupted (chunks replaced by zeros) · Issue #15526 · openzfs/zfs · GitHub 10:19:54 15526 – [NEW PORT] security/pgpgpg: a wrapper for GnuPG to emulate PGP 2.6 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=15526 10:20:15 mage: Done. Should I add it into sysctl.conf file as well? For next boots. 10:20:55 I would, until an EN is issued 10:22:08 mage: thank you for this information 10:24:48 https://l2tp-it.reddit.com/r/zfs/comments/1826lgs/psa_its_not_block_cloning_its_a_data_corruption/ 10:24:49 Title: PSA: it's not block cloning, it's a data corruption bug on reads in ZFS 2.1.4+, set zfs_dmu_offset_next_sync=0 : zfs 10:25:05 18 months with a silent corruption bug in ZFS. 10:26:08 but does it actually affect FreeBSD specifically 10:26:25 also guess I will ask here too: 10:26:28 Good question. 10:27:04 does anyone know what changed in periodic in 14.0 so massively that my load averages jump to 2.0 for 2+ hours? 10:27:29 comparison between Nov 18th, 13.2-RELEASE-p5, and Nov 23rd, 14.0-RELEASE: https://i.koumakan.jp/2023-11-24/1700820947.png vs https://i.koumakan.jp/2023-11-24/1700820981.png 10:28:04 I think this is somewhat abnormal 10:28:37 (the load jump has happened every single run since the upgrade) 11:13:11 Remilia: May I ask, what's the name of that interface? 11:13:59 tercaL, what do you mean? 11:14:17 Remilia: The software that you check your CPU loads 11:14:49 oh, that's just grafana with Prometheus storage and data from node_exporter, haproxy exporter, and php-fpm exporter among others 11:15:38 Thank you 11:24:29 Remilia: my first instinct is to look what has changed in the code, and I'm not seeing anything exciting in the periodic scripts 11:24:31 i'm updating from 13.2 to 14.0 (on amd64), but the kernel config failed because: 'unknown option "IMAGACT_BINMISC"'. has this option been renamed? or is it no longer available? i use it to build ports for arm64, so i hope it hasn't been removed... i couldn't find anything in the 14.0 release notes 11:24:44 makes me wonder if it's a ZFS thing 11:25:14 it says 'I'm a Gackt' 11:25:19 * Remilia hides 11:28:07 unixwitch: wasn't it the default since 2014? 11:28:30 Remilia: as in, it's included even if not in the config? 11:32:59 ah... apparently it was renamed to IMGACT_BINMISC at some point 11:34:37 https://github.com/freebsd/freebsd-src/commit/eb6f48854df20441b384ca36b6b31558ada087c9 11:34:38 Title: Fix a typo in the binmisc option name · freebsd/freebsd-src@eb6f488 · GitHub 11:34:44 at this point, it seems 11:35:41 unixwitch: the GENERIC kernel from 14 has it btw: /root/GENERIC/kernel/boot/kernel/imgact_binmisc.ko 11:35:51 so it really seems to be the default 11:36:03 yeah, i just prefer to build things i want into the kernel rather than using modules 11:36:33 (except for vmm.ko because the maintainer has some objection to doing that :-) 11:36:37 are you sure it really becomes built in 11:36:53 sometimes stuff stays a module 11:36:57 pretty sure, because it works even though i never loaded it as a module 11:38:50 (hm... maybe i'll check though) 11:42:20 Remilia: yes, it definitely seems to be built in, binmiscctl works even though the module isn't loaded: https://bsd.to/2796 11:42:21 Title: dpaste/2796 (Plain Text) 11:42:52 I see 13:52:11 seeing a weird issue on 14.0-RELEASE where starting jails causes a kernel panic (although it looks ZFS-related)... just me? https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275306 panic: VERIFY0(0 == spa_do_crypt_abd(B_TRUE, spa, &zio->io_bookmark, BP_GET_TYPE(bp), BP_GET_DEDUP(bp), BP_SHOULD_BYTESWAP(bp), salt, iv, mac, psize, zio->io_abd, eabd, &no_crypt)) failed (0 == 5) 13:52:14 Title: 275306 – 14.0-RELEASE: starting jail causes panic 14:01:33 mage: that OID doesn't exist on FreeBSD 15-CURRENT. 14:03:10 Oh, nevermind, I typo'd. 14:07:20 o/ 14:58:22 I cannot get my YubiKey to do show up for my 2FA, it works fine with the Touch interface and that key, but the Yubi dekstop app doesn't show it. The Yubi config app does. I have search and tried all the things I could. Anyone have any suggestions? 15:11:48 How to flush disk cache? echo 1 > /proc/sys/vm/drop_caches; does not work 15:15:38 FreeBSD isn't Linux. 15:17:11 from my recent investigation, the only way is to try unmounting. even unsuccessful (in-use) unmounts will flush cache 15:17:23 however I think this doesn't work on root filesystem, it bails out too early 15:18:00 so how do I flush on freebsd? 15:18:09 sync(1)? 15:18:13 The question is, what are you trying to accomplish? 15:19:25 debdrup: my postgres query is using cache and I want to test performance without it 15:19:38 meena: I did `sync`. It still uses it. 15:20:04 sync(8) or zpool-sync(8) will flush outstanding writes to disk, but "flush disk cache" is ambiguous when you're using Linux terminology because it can either mean "ensure what's in-flight has been written), or it can mean invalidating the unified buffer cache 15:21:10 simply `sync` by root? 15:21:36 If your postgres database is on ZFS, you can set sync=always to force all writes to always be synchronous - but since postgres is a RDBMS, so it does basically everything via synchronous writes unless you set sync=disabled on ZFS. 15:22:17 What do you mean "postgres query is using cache"? 15:22:31 debdrup: https://pastebin.mozilla.org/xh6uE6f2 see `memoize` 15:22:33 Title: Mozilla Community Pastebin/xh6uE6f2 (SQL) 15:23:38 So set enable_memoize=false. 15:24:07 https://www.postgresql.org/docs/14/runtime-config-query.html#GUC-ENABLE-MEMOIZE 15:24:09 Title: PostgreSQL: Documentation: 14: 20.7. Query Planning 15:25:40 debdrup: i don't think postgres uses O_DIRECT/O_SYNC? 15:27:28 Hello71: it uses fsync and, rather famously, fdatasync. 15:28:34 debdrup: thank you! that worked 15:28:36 It can use o_sync for the WAL if memory serves, but by default it's using f_sync. 15:29:12 do you really need to be root to be able to use sync though 15:29:41 It's in section 8 of the manual pages.. 15:31:20 I think disabliing memoize fixed. No need for sync tamper now 15:31:24 Hello71: it uses whatever wal_sync_method says, fsync is default for the port 15:32:16 though the configuration file says 'fdatasync (default on Linux and FreeBSD)', I think the port defaults to fsync? 15:32:41 or was it during the Bug Times 15:33:31 FreeBSD did the right thing, I remember that much. It might've been changed for things not FreeBSD, but since that didn't affect me, I wasn't paying a lot of attention. 15:35:05 What is freebsd best for? only servers? I think I am trying to mix it with server and desktop usage. But even as in servers, there are issues with puppeteer, node versions, 15:35:37 I stand corrected, it is fdatasync 15:35:46 checked run-time configuration 15:36:17 Beladona: it is typically best for what you have good knowledge of 15:36:51 also please do not taint FreeBSD by running node on it 15:36:54 * Remilia hides 15:41:29 Beladona: that question comes off as being incredibly troll-ish, so I'd kindly ask you to refrain. 15:42:53 debdrup: ok sure but I am genuinly disturbed. I don't want to switch. Surely I am doing something wrong. I can refrain if you want from this topic (just because you think its trollish). 15:44:42 Beladona: You really don't need to free up that 15:46:45 HIA: free up what ? 15:56:56 is there a way to label disks for zfs replacement similar to the way linux uses /dev/disk/by-id/MODEL-SN? 15:57:22 it would be a lot nicer to be able to easily identify broken disks in my nas 15:58:16 is that something bsdlabel would do? 15:58:39 use smartctl to get model and s/n? 15:58:46 bsdlabel is not for that 15:59:09 there is glabel, though, and you can also set labels for GPT 15:59:50 rwp: i am officially off linux for synology work and installed freebsd 14.0 on the machine.. now time to get the 3 drives setup in a pool for awesomeness :) 15:59:55 CueXXIII: yes. that i can do. but what if you're in a situation where a disk completely dies? 16:00:03 and smartctl doesn't work on it to identify it? 16:00:17 Macer: set GPT labels 16:00:21 it would be nice if it showed information in zpool status for easier identification 16:00:24 look at all other disks and don't replace those? 16:00:41 CueXXIII: I have 30 disks in it 16:00:50 ok… 16:00:53 process of elimination would be a bit much vs just finding a way to label them 16:01:00 Remilia: ah ok. i'll take a look at that 16:01:02 zfs allows you to use GPT labels for the pool members 16:01:20 Remilia: yeah i really wish i had them. can these be changed after the fact? 16:01:39 or is this something that can only be done during creation? 16:01:45 that would probably involve ejecting a member from the pool :\ 16:02:07 yeah that's what i'm doing now just because a disk died. 16:02:18 the pool was imported from elsewhere so i guess it is what it is now 16:02:49 for imported pools, if the GPT partitions *had* labels, zpool import should probably have picked that up 16:03:27 they didn't heh 16:03:50 i'll see what i can do with the disk i'm about to replace and see if maybe i can find a way to actually label them. 16:04:40 it seems like if maybe you label all the disks, export the pool, then import again it shoudl use labels vs dev/daxx 16:07:21 who knows :| 16:07:31 but generally I would not rely on tyhat 16:07:33 that* 16:18:07 ok. i have the new disk in and i copied the partition table to it.. just need to sort out how to label p2 16:22:39 HIA: I didn't understood 16:31:55 gpart modify -l R03-01_Seagate_Ironwolf_SERIAL /dev/da14p2 16:31:56 gpart: Option 'i' not specified. 16:32:05 hm... not really sure what to do with that -i it is asking for 16:34:50 * HIA is potentially away for several weeks ... 16:38:28 ah ok. it's the index of the partition table. 16:39:08 ls /dev/gpt/ R03-01_Seagate_Ironwolf_-------- 16:39:25 so i should be able to treat that like a partition when replacing the partition in zfs right? 16:40:44 the label? yeah you can just use use /dev/gpt/label as a device 16:44:29 isley: thanks. i started the replacement / resilver now ... seems to be doing stuff so i'll see how it goes 16:45:44 so if i label all the disks one by one... and replace them with the label. would that essentially resilver each one with the new label even if it's the same disk? 17:34:38 \l/ 19:08:17 i am going to throw it out there, has anyone tried using openzfs and time machine backups netalalk in particular 19:49:01 voy4g3r2: Last time I had to use Netatalk for Time Machine, ZFS wasn't a think, or was just starting to be a thing but wasn't in FreeBSD. Seems like a match made in Heaven. 19:49:08 a thing* 19:49:53 Time Machine would occasionally corrupt itself and require a full back-up again which obviously isn't ideal, and ZFS snapshots would have been an amazingly pleasant solution to it. 19:53:50 mason: yeah, i am struggling with afp:// to see shares 19:55:24 voy4g3r2: It was quite literally a couple decades ago here, but it *did* work at the time, and the back end shouldn't matter much. That said, I believe Time Machine might also work over Samba, and that might offer a more pleasant experience nowadays. 19:56:56 hrm.. let me give that a try 19:57:08 because mac os x just says i can not find shares.. 19:57:16 voy4g3r2: It's worth exploring anyway. Last I heard, Netatalk was on life support, if that. 19:58:03 voy4g3r2: Ah! And I'm wrong about that. I see fairly recent commits here: https://github.com/Netatalk/Netatalk 19:58:05 Title: GitHub - Netatalk/netatalk: Netatalk is a freely-available Open Source AFP fileserver. A UNIX, Linux or BSD system running Netatalk is capable of serving many Macintosh clients simultaneously as an AppleShare file server (AFP) 19:59:00 why didn't i try that.. it has documentation :) 19:59:12 i was using old tutorials to figure out how to setup /usr/local/etc/afp.conf 20:31:14 Someone knows why opie(4) was removed from FreeBSD 14 base system ? 20:38:29 devnull: it was old and unmaintained 20:38:59 and ssh keys generally preferred to telnet. 20:39:57 https://reviews.freebsd.org/D17118 20:39:58 Title: ⚙ D17118 Add OPIE deprecation notice 20:49:38 rafe: it was removed, with very little ceremony 21:36:06 I was very occasionally using that.... Like, once a decade. 21:52:57 rtprio and rafe, thanks for information 22:26:51 I'm new to freebsd and am trying to debug some assembly code that uses SSE2 instructions (and the XMMn) registers. I have an odd failure were a multiply fails consistently, but when I debug it and single step the instruction it works. Any clue? 23:10:38 Cheyenne: reminds me of the job interview questions I got at a large DJ gear company in Berlin. 23:31:40 voy4g3r2, Then I assume the data recovery was complete? Cool! Glad to hear you were successful. Persistence and tenacity will always triumph in the end. 23:36:36 Macer, Look at man zpool-import the -d dir|device option. One can change a zpool from one device naming to another device naming at import time by using -d /dev/gpt to force finding the gpt labels first. 23:37:15 The downside of that is that one needs to boot rescue media or other live boot media and then import the pool there in order to change to the labels. 23:38:21 Otherwise the only way I know how to do it is to replace each disk one at a time with the new label and let it sync each disk. Not terrible for a small number of disks but more tedious for a large number of disks. 23:44:44 For ZFS hot swap arrays I always use a combination of drive bay location and drive serial number in the gpt label to identify the drive. 23:47:00 https://pastebin.com/Ny2s6ZWU 23:47:01 Title: borked zfs pool - Pastebin.com 23:47:04 have my own data recovery going on lol