03:55:12 <_xor> Is doing a major upgrade from 13 to 14 safe using pkgbase? 04:02:09 _xor: Can you be more specific? I'm not sure I completely understand the question. 04:03:53 "pkgbase" is currently considered experimental 04:03:56 <_xor> If I have a system that's currently running 13.2 and is configured to use a pkgbase repository, which is already built and available, that contains 14.x pkgbase packages, are there any known caveats for upgrading between those two major versions? 04:04:25 <_xor> Yes, been using it for a bit now. Upgraded 13.x minor versions without too many issues. But haven't done a major upgrade yet. 04:05:58 <_xor> As far as I can tell, I should be able to upgrade the packages normally, write the new bootloader + copy new efi image, reboot, and then find/clean any remaining *.pkgbase files. 04:10:25 _xor: If you have a way to snapshot what you currently have, give it a try. 04:24:33 _xor, There is comment 3 here: https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273601#c3 04:24:35 Title: 273601 – freebsd-update fills up /var/db/freebsd-update/files and never cleans them 04:25:04 The wiki page has not been updated since release of 14 so no news means no problems, right? :-) https://wiki.freebsd.org/PkgBase 04:25:06 Title: PkgBase - FreeBSD Wiki 05:11:33 I have two disks: one nvme one hdd. The NVME has my arch linux, the HDD has my recently installed FreeBSD. That means (at present) I have two uefi partitions, and to select between booting linux or FreeBSD I currently have to change the boot order in my BIOS 05:11:57 what can I do so that I have a menu, such as move FreeBSD's uefi data to the Linux disks uefi ? 05:12:08 I really don't know how alll this works tbh 05:12:14 but I'd like a kind of boot menu/loader 05:13:34 Also for bonus question - I would like to know: Why does enlightenment show a dark screen (eg. backlight too dim and it could possibly be frozen also) after the setup wizard 05:27:28 brb 05:27:33 hold that thought 05:31:31 back 05:39:32 hi 05:41:26 :) 06:41:20 I need help getting sound working: I have a Realtek ALC892 onboard sound, running S/PDIF (optical cable) to computer soundbar 06:41:37 I've read the handbook and tried everything to get sound working - mixer channels are at 100 06:42:46 I've set default snd unit to 5 - which corresponds with pcm5 (digital output) 07:00:40 AumShivaya paste some where /dev/sndstat 07:00:51 dpaste.org or somehwere elese 07:24:45 jb1277976, sure thing. Though I have tried all the outputs :/ 07:25:07 !paste 07:25:14 oh wrong channel 07:26:17 jb1277976, https://dpaste.org/O47Am 07:26:18 Title: dpaste/O47Am (Python) 07:29:24 AumShivaya putting kids to sleep but install gtk-mixer open it okay something like YouTube. Switch the outputs in gtk-mixer and whatever one works you can mark it as default 07:29:43 Play* 07:32:52 No sound through any of them, sadly :( 07:39:46 back - computer cord fell out lol 07:40:16 whoa it is working? how? 07:41:21 good thing that cord fell out 07:41:27 must have been something a reboot fixed 07:52:45 Do I still set up virtual channels somewhere for an audio device to have in-kernel mixing? 07:53:24 <_xor> rwp: Yup, but that references /var/db/freebsd-update, which isn't used with pkgbase (afaik; wouldn't make sense anyway). 07:53:47 <_xor> I'm just going to try it. Worst case scenario is that I have to revert back to this boot environment. 07:56:03 <_xor> AumShivaya: Check /var/log/messages to see if there was a pid holding your previous sound device open. That happens to me sometimes (e.g. headphones get unplugged) and I have to SIGHUP them to release the dsp device to let it re-initialize. 07:56:23 <_xor> I have a devd script that does that for me, but it's not always successful. 07:59:59 ok 08:00:04 I'm playing with mixing now 08:02:20 I thought there was a way to just enable mixing in rc.conf or loader.conf before? 08:13:07 ok so mixing isn't working but I have sound ! :) 08:29:35 still dunno 08:31:28 if I set vchans for this card, it won't play at all :/ 08:33:23 brb 08:36:50 back 08:37:00 yeah, I have this in my sysctl.conf 08:37:54 dev.hdac.1.polling=1 hw.snd.default_unit=5 dev.pcm.5.bitperfect=1 dev.pcm.5.play.vchans=0 dev.pcm.5.rec.vcahns=0 08:38:01 line breaks removed to not flood 08:38:19 if I change vchans to 4, sound stops completely, or if I remove that line 09:57:41 gonna try compiling the linux kernel here on my freebsd setup 10:01:30 does it work in bitperfect mode? 10:01:54 not all cards are working, hence the question 10:02:09 hm? 10:02:47 this is for AumShivaya 10:03:01 ah 10:16:46 got this issue as well https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275361 10:16:49 Title: 275361 – php81-pecl-APCu: Undefined symbol "php_pcre2_match_data_create_from_pattern" 10:25:11 Is it a rare bug when xorg mouse pops up on the vt? 10:25:40 Happens really rarely for me 10:27:24 i don't use the xf86-amdgpu driver so xorg should be rendered through drm and not vt framebuffer. Still, happens sometimes. When it does i just get my mouse from xorg on a vt/tty that i can move around but not do anything else with. 10:28:01 Happens mostly when i'm compiling something huge and my system randomly freezes 10:29:05 ...okay i'm bad at explaining things 11:28:46 How can I make a drive avaialble as NFS in freebsd while freebsd is a guest OS inside virtmanager? 11:28:57 in virtmanager, how can I pass a disk from guest OS (accessable to guest only) to the host OS? In this case geli encrypted disk readable by freebsd (guest) and data access given to debian (host) 11:42:31 what do you mean 'pass a disk' 11:43:20 if a GELI-encrypted partition is attached and being transparently decrypted by the FreeBSD kernel, you should not access the underlying device in any other way 11:43:23 not sure how can I get host OS see the disk that guest has acces to 11:43:44 NFS, SMB, scp, rsync, etc. 11:43:51 Remilia: well the device will be access THROUGH freebsd 11:43:57 Remilia: ok. 11:44:06 SMB and NFS maybe but : 11:44:15 Remilia: can I use that remote samba/ NFS to just symlink an existing directory and pose it like the file was local? Can NFS do that? 11:44:48 do you know what NFS is for 11:44:59 (among other things) 11:45:00 network file system 11:45:11 NFS is how you boot diskless clients 11:45:12 well I am a noob at this 11:45:23 ok then Ineed SMB. not NFS? 11:45:37 eventually I want the drive data to be access by debian OS but debain cannot decrypt geli encrypted drives. Only freebsd can 11:45:48 basically NFS is how you make your client use remote directory structure as local 11:46:09 ok then that is what I need? 11:46:21 the whole point of NFS is mounting a remote filesystem over network locally 11:46:47 but setting it up is massive pain 11:47:03 I am not sure why you cannot just use rsync 11:47:04 ok. not in a position to get pain 11:47:20 Remilia: rsync will require another disk. I have only 1 11:48:06 do you seriously plan to run a guest all the time and access its filesystem over NFS just so you do not need to copy 11:48:17 If I have no other choice. sure 11:48:40 I could use advice on how to fool-proof my router startup against 'no link'. https://pastebin.com/raw/BX1iNtAr Power just came back up, and it seems the cable modem or the network is slow, dhclient gave up and took an extra 2 minutes to assign an ip, which made other things fail temporarily. 11:48:48 buy a USB external HDD, dump the encrypted partition content there, reformat the original disk 11:49:54 Beladona: how much content is there even? 11:50:40 (also realized I shouldn't reboot while waiting for an answer...) 11:51:20 Remilia: 3 TB 11:51:26 on HDD 11:51:31 in raid 1 zfs 11:52:47 a 4 TB USB drive costs $100 11:53:40 and will save you incredible amounts of I/O performance 11:53:57 might do via clound instead of $100 11:53:57 you really do NOT want to run NFS or SMB if you can 11:54:07 I see 11:54:21 cloud + rsync. Upload, download. whats say? 11:54:43 whats the most reliable could storage out ther for such operation? 11:54:53 Backblaze maybe? 11:54:56 i think rclone port is worth looking at for a cloud backup. 11:55:06 but it is not very cheap 11:55:07 ok 11:55:18 https://www.backblaze.com/blog/rclone-power-moves-for-backblaze-b2-cloud-storage/ 11:55:19 Title: Rclone Power Moves for Backblaze B2 Cloud Storage 11:55:58 hi! first time freebsd user. as far as i understand all the headers for the base system should be pre-installed. i'm looking for libzfs.sh, but that includes libshare.h which is missing on my fresh freebsd 13 install. do i need to install something else? 11:56:05 I mean, Backblaze is probably the cheapest backup option but fetching data from them costs money 11:56:50 ok thanks 11:56:58 aep: libshare.h is part of /usr/src which is not installed by default 11:57:00 going out 11:57:22 you need the full source tree for that one 11:57:55 /sys/contrib/openzfs/lib/libspl/include/libshare.h 11:58:31 not /sys 11:58:36 it is /usr/src/sys/..... 11:59:04 poudriere% locate libshare.h → /usr/src/cddl/compat/opensolaris/include/libshare.h \n /usr/src/sys/contrib/openzfs/lib/libspl/include/libshare.h 12:00:04 ultramage: https://docs.freebsd.org/images/books/handbook/bsdinstall/bsdinstall-config-components.png the src distribution 12:00:31 aha thanks. going to figure out what that is 12:00:38 you can install it separately if you want to 12:01:23 cd /usr && git clone https://git.freebsd.org/src.git 12:01:24 Title: src - FreeBSD source tree 12:01:28 should do it 12:01:30 fetch -o /tmp ftp://ftp.freebsd.org/pub/`uname -s`/releases/`uname -m`/`uname -r | cut -d'-' -f1,2`/src.txz 12:01:41 oh just like that? hm thanks 12:01:49 aep: do not clone main 12:01:52 was expecting its managed in some way so that it follows system updates 12:02:06 if you are on RELEASE you need to check out the correct branch 12:02:11 that makes sense 12:02:13 or rather tag 12:02:29 use the fetch command I posted above to get the distribution 12:02:49 it will put src.txz in /tmp 12:02:52 then you just tar -C / -xvf /tmp/src.txz 12:03:18 my example needs to be followed by 'git checkout releng/14.0' 12:03:31 Hm I'm looking at the dhclient manual, and it says that it will reuse its saved leases if it times out. Mine isn't doing that. I think the 'no carrier' is at fault, guses it won't try to work with an interface that's down. I either need to force it to do that, or, to wait longer for the link. Currently my timeout is set to '300' (5 minutes), which should be enough (or not?), unless there's a separate 12:03:37 timeout for link wait and dhcp reply wait. 12:04:21 ultramage: you seem to be using Realtek NICs, of the 'lowest end' variety 12:04:25 I urge you to reconsider 12:04:44 Remilia: when installing src from distribution set, will freebsd-update recognize it? 12:04:54 elirco: yes 12:05:00 it analyses your directory structure 12:05:08 good to know, ty 12:05:38 elirco: all the FreeBSD installer does with these is extract them, there is no database of installed distributions afair 12:06:17 makes sense 12:06:57 note that the distribution sets do not contain patchlevel updates, freebsd-update should update those for you 12:08:41 so you can only install src from distribution set, as long as you are on -p0? 12:08:44 basically if you are on -pX and extract src.txz, try running freebsd-update 12:09:14 no, you should be able to update afterwards 12:09:30 I cannot say for sure but could test later (right now I really should get back to work) 12:09:35 ah okay it can handle that and re-implements -p0 to -pX only for src? 12:09:37 cool 12:10:39 I cannot easily test since I am on 14-p0 and probably am to lazy to set up a vm... 12:12:29 I am in the middle of a workday and my job is translation, not IT, so setting up a VM and such would distract me for at least an hour 12:14:29 I am just not curious enough at the moment... 12:17:35 Remilia: it's an intel atom potato pc with a re onboard nic. the other one is re just because the previous one failed. and this issue is not the nic's fault, it's the cable modem taking a long time to bring the link up. I wonder if it waits for its uplink to fully calibrate first... 12:18:29 okay, the linux kernel compiled fine on freebsd 12:18:39 hm looks like i accidently installed freebsd 15, which is CURRENT. does that equal to main in git? 12:19:06 I could try bumping up the dhclient 'timeout' from 5min to 10min, but that feels kinda dumb. Doesn't matter atm since I'm remoting, but during an outage, it delays the startup of sshd and other LAN services. 12:19:12 yes, FreeBSD 15 is git.freebsd.org/src.git main branch 12:19:49 you'll have to constantly git clone it and recompile the kernel probably 12:21:07 yeah just learning things for now, its fine 12:22:13 looks like /usr/src is indeed just the source, not the result of make install, so the zfs headers aren't in the directory structure that it expects. am i supposed to call make install myself? wont that mess up things? 12:23:30 never tried installing freebsd on zfs before, i'm too deep into ufs 12:23:52 but what i do is just rm -rf /usr/src && mkdir -pv /usr/src 12:24:32 then git clone -b stable/14 --depth=1 https://git.freebsd.org/src.git /usr/src 12:24:33 Title: src - FreeBSD source tree 12:25:16 aep: zfs headers should be in /usr/src and they will not be installed elsewhere 12:25:21 aep: afaik, there installing of header/src files per package concept only exists in Linux. I FreeBSD src sits just there in /usr/src. 12:25:46 hm but openzfs itself expects make install to be called. the headers have hardcoded paths that dont match the source 12:26:11 which openzfs? 12:26:29 can you pass the path with the required header to cc via -I parameter? 12:26:31 then i just copy my kernel config into /usr/src/sys/amd64/conf/ and run the make command, updating freebsd from source takes only ten minutes because of how tiny the sources are and how fast the compiler is 12:26:33 FreeBSD comes with it in contrib 12:26:51 elirco: no because the path includes a name that is only created when calling make install 12:27:07 aep: what name? 12:27:21 libzfs/sys/zfs_context.h . there is no libzfs in /usr/src 12:27:24 I am not sure what you are trying to build 12:27:31 and which 'make install'? 12:27:49 > there is no libzfs in /usr/src <- yes there is 12:28:00 in /usr/src/sys/contrib/openzfs/lib/libzfs 12:28:17 ok but thats not where the header is i mean :) 12:28:23 once again: what are you trying to build? 12:28:26 its created on linux when you call make install 12:28:42 FreeBSD is not Linux. 12:28:45 uh just a thing using libzfs 12:28:52 FreeBSD has /usr/src/sys/contrib/openzfs/include/sys/zfs_context.h 12:29:09 so I do not understand your ok but thats not where the header is i mean :) 12:29:39 yes but the header is expected to be in a path named `libzfs/sys/zfs_context.h`. i dont understand (new to freebsd) how this is created 12:30:01 it is already in /usr/src/sys/contrib/openzfs/include/sys/zfs_context.h 12:30:16 thats a different path. wont compile 12:30:17 you are supposed to use that 12:30:32 its #include 12:30:35 are you unable to use the correct path? 12:30:59 are you not aware of the compiler INCLUDES envvars and command line parameters? 12:31:03 oh you mean edit the zfs header that included it? 12:31:20 no I mean use the correct INCLUDES path 12:31:50 i wasnt aware gcc had a way to change directives, no. 12:31:53 see the man page for cc 12:32:02 it does not have a way to change them 12:32:14 do you know the difference between absolute and relative paths? 12:32:55 #include means include libzfs/sys/zfs_context.h found in include paths 12:33:17 it does not mean include /usr/include/sys/libzfs/sys/zfs_context.h 12:34:05 aep: [12:26:29] can you pass the path with the required header to cc via -I parameter? 12:34:10 this was directed at you 12:34:40 clang: -I Add the specified directory to the search path for include files. 12:35:28 but considering the specific path in your case you may need to patch the .h file 12:36:22 also uh just a thing using libzfs <- what thing? are you sure it is not in ports 12:39:03 linuxulator here is amazing. even Microsoft Edge linux binary works on it 12:39:25 (i don't use edge though) 12:39:42 in part that is thanks to Linux keeping its ABI compatibility ha ha 12:39:54 yeah 12:40:19 i switched to fbsd like a month ago and now i can't go back, everything is so snappy 12:40:40 bluetooth works much better than on linux too 12:43:22 that's actually a surprise, bluetooth stack doesn't get much love 13:34:26 quick sanity check: if i have a fileserver (ZFS, serving NFS + SMB) with 16GB RAM, which stores a mix of small files and large files (mostly 4-8GB, some 20GB+) which are only accessed infrequently, sequentially, and almost never more than once every few weeks per file, then it would make sense to set primarycache=metadata on that filesystem... right? since the files will almost never be served from cache, and caching them will evict other, more use 13:36:44 if you hae a fileserver, what other data would be more useful on it? 13:39:38 the small files (which include databases, and easily fit inside available memory), filesystem metadata to improve performance of things like 'find', and the OS itself 16:01:25 is there some e-mail me daemon if say for instance a drive dies for fbsd? 16:06:09 Macer, not sure I understand what you're asking for, but could you setip something like nagios for that ? There's cacti and other similar tools. 16:06:10 Macer, look at monitoring systems like nagios or icinga or zabbix. 16:07:20 mns: Cacti and other rrd tools are great for capacity planning, but threshold and event notifications are secondary. I like nagios for is extendability and simplicity. 16:09:10 Hello, tried to update from 13.2 to 14, and was greeted with an error ( https://pasteboard.co/X3yUquChInqF.jpg ) - all is fine when I reboot on old kernel, but not sure how to go from here... 16:09:11 Title: Pasteboard - Uploaded Image 16:09:49 Say, I'm seeing a lot of "pid 27955 (getty), jid 0, uid 0, was killed: failed to reclaim memory" in my log (other processes tooo of course), and `top` tells me I have most of my RAM dedicated to "Laundry". Any idea what this is? 16:10:01 I prefer nagios as well, its also what a lot of companies use internally. I was just throwing cacti out there as something I've used before and an alternative to nagios. Yes it leans more toward trend monitoring, but you can still do the basic thing of triggering some action below a certain threshold. I've not used cacti in ages though so could be out of date. 16:10:29 '31 16:11:50 Me too. I remember being impressed with how well Cacti's device discovery worked, but much must have happened in 10 years. :) 16:24:09 I'm sure much has happened since then, Its been over 10 for me 17:19:19 <_xor> Macer: Easy setup 1-system setup? Probably something like netdata. 17:20:05 <_xor> Macer: Specific to drives failing and that's it? smartd, and there's also another project who's name I can't remember off the top of my head, but it's dedicated to this exact scenario. 17:21:09 <_xor> Macer: Multi-machine setup that can monitor a lot more than just hdds, has a dashboard, etc? Prometheus (or VictoriaMetricsm) + alertmanager, and grafana if you want a dashboard. 17:35:54 Macer, The only default disk notification I know about is "sysrc -f /etc/periodic.conf daily_status_zfs_enable=YES" which enables a daily email which includes "zpool status" among other things. 17:36:28 I have not found anything similar to mdadm's notification email from Debian-derived systems. But one could be created. 17:38:15 The "logcheck" program will report any unfiltered /var/log/messages entries. But... It's a firehose of data and needs aggressive filtering of uninteresting log data. I use it. But I aggressively adjust filters all of the time. 17:41:04 +1 for smartd and periodic short self tests as well. 18:13:11 https://gemmei.ftp.acc.umu.se/pub/debian-meetings/2023/MiniDebConf-Cambridge/cheri-and-morello.lq.webm 18:30:11 <_xor> All right, pkgbase upgrade time from 13 -> 14. 18:30:14 * _xor crosses his fingers 18:37:04 Good luck _xor! I look forward to your report. 18:37:57 <_xor> Already hit a snag, but probably my own fault. It stopped after "[369/407] Extracting FreeBSD-wpa-man-14.snap20231126144041: 100%", but no error message. 18:38:20 <_xor> Running it again gave me: ld-elf.so.1: Shared object "libssl.so.111" not found, required by "pkg" 18:38:38 <_xor> Not super surprising. Bootstrapping pkg beforehand may have helped, but not sure, yet. 18:39:23 <_xor> oh wait, why is it looking for openssl111? I built everything with 3, including the version of pkg on 13.x. 18:39:37 _xor: good luck 18:40:28 <_xor> I'll get back to this in a few hours, gotta go fix my toilet right now. (no, I didn't destroy it...stupid water supply line is leaking) 18:42:04 _xor, You might need to use pkg-static which is statically linked and created specifically for such issues. 18:56:21 yeah, i always do pkgbase upgrades with pkg-static 18:57:29 _xor: because when you run `pkg`, you don't immediately run the version you built against openssl3 18:57:44 you run the version built against base openssl, which then invokes the version you built from ports 18:57:56 s/version/bootstrap shim/ 20:16:52 rwp yah I’m using periodic for snapshots 20:17:12 But I’ll look into it once I get time to do it. I’m pretty much done with all my little projects. 21:41:15 <_xor> Ok, toilet is replaced. What a pain in the neck. 21:41:17 <_xor> Back to pkgbase. 21:41:39 <_xor> kevans, rwp: Yeah, forgot about pkg-static for a minute there. 21:42:01 i only remember pkg-static when pkg throws an error 21:42:45 <_xor> ABI=FreeBSD:14:amd64 pkg -n -x 'FreeBSD-*' 21:42:51 <_xor> Oops, wrong window. 21:45:55 <_xor> Heh, `pkg install` might have helped there :P 21:47:49 <_xor> meena: How does pkgbase handle merging config files (e.g. /etc/*)? I know it creates {NAME}.pkgsave, but is it currently that merging is handled manually by the admin or is there something I'm missing? 21:48:06 <_xor> I don't mind merging myself, I have my etc files in a git repo, so it won't be too much trouble, but want to make sure. 21:48:25 it should handle it the same way as for ports 21:48:57 <_xor> Dumb question, but is *.pkgsave the new one or the old one? 21:49:17 old one 21:49:49 <_xor> That's what I thought, and just diffed to confirm. Wanted to make sure. 21:51:14 <_xor> It doesn't create *.pkgnew files, right? (I have a few of those, but I want to say I created those a good while back, just don't remember 100%) 21:55:04 <_xor> kevans: What's the main argument against having a single pkg executable that's fully statically linked and not requiring pkg-static? (aside from the whole dynamic libs for updates argument) 21:55:44 <_xor> I'm actually asking btw, as I'm guessing I'm missing the reason as to why it's done that way. 22:00:07 _xor I am right there with you on that question. The usual reasons given for shared libraries are that they save disk space, they save memory pages, they avoid hidden security vulnerabilities, all by sharing components which are separate and shared. 23:50:23 <_xor> What's the command to re-generate /boot/device.hints again? 23:53:58 <_xor> Interesting, so the EFI loader (/boot/loader.efi) shrunk from 886kb in 13.x to 644kb in 14.x?