00:41:01 what was the binary package manager for freebsd 8? 00:41:14 it isnt installed when using memstick 00:44:55 i can try to use a vm once im up and running to figure out how to manage a legacy_install 00:49:09 pkg_add ? 00:49:26 im not sure where it swapped over to 'pkg' 01:19:28 What are the meanings of the -ifa and -ifp options of route(8)? The manpage isn't very helpful 01:28:28 artemist: where you seeing this used? 01:30:01 I'm not seeing them being used, I'm trying to figure out how to force a route to go over a specific interface 01:32:29 sudo route add -net -ifp 01:32:52 artemist: what have you got so far, and how is it failing? 01:33:20 Also, what xa0z writes looks plausible 01:33:39 I tried -ifp and it seems to work, I'm mostly confused what -ifa is for when nothing mentions it 01:34:17 ifp is using the interface, ifa uses the IP of the interface. 01:34:25 Okay, cool, makes sense 01:34:27 Thanks 01:35:00 that paragraph could use some work. 01:36:03 When using -ifp, you specify the interface you want to use. When using -ifa, you specify the IP of the interface you want use instead. 01:36:18 * xa0z shrugs. 04:00:01 hello, i have a dns program listening on 127.0.0.1:9999, and /etc/resovle.conf is set to 127.0.0.1. now i want my local dns request to be redirect to 127.0.0.1:9999. like if i dig google.com, it will first look at /etc/resovle.conf, which is 127.0.0.1, then i want a rule to redirect it to look at 127.0.0.1:9999 , what pf rules should i write? 04:01:44 i tried this : nat proto udp from 127.0.0.1 to 127.0.0.1 port 53 -> 127.0.0.1 port 9999 04:01:55 but it does not work. dig timeout 04:06:02 wow, this works: rdr on lo0 inet proto udp from any to 127.0.0.1 port = 53 -> 127.0.0.1 port 9999 06:23:37 that is a bit odd, eh 07:24:50 emmm. i tried to use route-to , the upload speed is very slow. 07:26:00 pass out eth0 route-to utun6 proto { tcp, udp } all 07:26:10 pass out on eth0 route-to utun6 proto { tcp, udp } all 07:26:43 all up/down go through utun, download speed is ok, but upload speed is very slow. 07:27:12 anything i forgot to run ? 07:38:35 What is the easiest, and safest way to replace all the disks in a raidz array for an SQL server? 07:42:32 xa0z: how else would you do it othr than replace one, resilver, and so on until the pool is complete 07:42:52 what the server is running is immaterial 07:44:36 So you think doing one disk at a time and resilvering 8 times is best? 07:46:09 that's the only way unless you feel like rebuilding the pool, and migrating 07:46:21 I could actually probably do 4 disks at one time, then do the other 4 afterwards. The pool is 4 mirrors, 2 disks per mirror. 07:46:45 so it's a mirror, not raidz 07:47:35 yes, with care you could do multiple drives at once; is there some reason to hurry? 07:47:51 It's a striped mirror pool. 07:48:49 I'm in no hurry. I'm just concerned with more drive failure during the resilvering process. 07:54:01 you could add mirrors before removing the old ones 07:54:07 That should not be a problem if your drives are well at this stage 07:54:08 depending on the space in your chassis 07:54:47 xa0z: it would be something try on a test pool 08:00:25 AmyMalik: just started getting sector errors for one of the disks. 08:00:48 then I would replace that disk 08:00:50 They're all old by now. 85,000 hours. 08:01:11 haha, half my pool is in that neighborhood 08:01:31 AmyMalik: theres 8 disks to replace 08:01:43 oh. 08:01:55 do you have an extra disk or disks that you can run a backup to before you begin the procedure 08:02:03 If I'm going to replace one, I might as well work on replacing all of them, no? 08:02:20 AmyMalik: I have plenty of spares. 08:03:23 Right, yes, it would be good to replace all of them. 08:03:50 I'd probably not do more than two disks at a time.. but this is not based on any evidence really 08:04:01 if you're feeling paranoid, use zpool attach to add a third mirror to all of them, then zpool replace one of the old drives, then remove the othre old drive 08:04:08 rtprio++ 08:04:24 with zpool detach 08:04:27 are the sector errors correctible or uncorrectible? if they've been corrected without data loss, you probably have time before you hit data loss, but 08:04:33 i wouldn't nec rely on that 08:04:58 AmyMalik: so far just got my first one on this server today, 1 offline uncorrectable. 08:05:09 at what, 9 years, probably not worth to wait and see 08:05:32 "time" by which I mean, time enough to get things moved befoe the fan is struck with excrement 08:05:47 but I'd implement rtprio's advice here 08:07:32 ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE 08:07:35 9 Power_On_Hours 0x0032 001 001 000 Old_age Always - 94411 08:08:16 * AmyMalik starts corroding 08:08:38 i know 08:08:46 Since I use mysql on zfs, I was considering sending a snapshot of the pool to another local server's pool. 08:09:03 rtprio: dang, even my server "only" has about 84k hours 08:09:30 and it's been powered on pretty much 24/7 since I got these WD Reds back in 2014 08:10:10 This SQL server has been powered on 24/7 for a long, long time. 08:10:29 I have 1 WD RE4 and 1 HGST Enterprise mirrored in each of the 4 pools. 08:10:30 these are wd blue. the data raidz2 is wd black 08:10:54 xa0z: another backup won't hurt, i guess 08:11:10 but if they could fail at any moment i'd just add mirrors as fast as possible 08:11:33 I just did a full dabatabase dump on MySQL, which wasn't soo bad. It was 3.2 GB. Smaller than I thought it would be. 08:12:05 that's a heck of a lot of drives for a 3gb database 08:12:51 /var/db/mysql is 4G lol 08:13:10 8x 2TB disks. 08:13:31 not sure when I should really start worrying about this drive in my home server. I probably should just get around to a backup even though I somewhat recently backed up the stuff that matters most (~14 years of IRC logs) 08:13:56 tm512: my problem is when i made this pool so long ago, all the drives were 512 sectors. since then some replacements have been 4k which kinda borked up the pool 08:14:01 zroot 7.25T 1.47T 5.78T - - 42% 20% 1.00x ONLINE - 08:14:21 it's just irritating because my external HDD is in a cheap enclosure, and apparently the USB chip in the enclosure uh, cut some corners. it just doesn't support falling back to USB 2.0 data rates, seemingly 08:14:32 and my home server is a bit too old for USB 3 08:15:02 network speeds are pretty painful since my PC is on the other side of a powerline ethernet connection 08:15:15 This SQL server is a 3U Supermicro dual xeon E5540 08:15:20 oh I tried one of those adaptors 08:15:21 it was not good 08:15:37 It's OLD. 08:16:09 AumShivaya: the only nice thing I can say about powerline ethernet is that it's better than connecting to the wifi from this far away 08:16:27 that's not really saying much though 08:16:39 how many feet? 08:16:47 or distance* 08:17:34 * parv guesses 800+ 08:17:56 I'm not sure, wouldn't trust a ballpark guess. it's like completely opposite ends of a 3 bedroom house, multiple walls in the way 08:18:56 And you can't run cat6? 08:19:21 not fibre either? 08:20:02 xa0z: I've thought about it, but it seems like it would be quite an involved process (or expensive, if I paid someone else to run cabling through the walls) 08:20:14 if you can't run cat6, you just aren't handy enough with duct tape 08:20:35 if you think that, you've never lived in an apartment with lathe and plaster 08:20:37 AmyMalik: it's fiber internet, but the fiber stops at the garage, it's then coax into the house from the ONT to the main router 08:20:58 I only have ethernet (cat6) ran to 1 room outside of my server room, and use it with 10gb SFP+ adapter in my 10gbe NIC 08:21:22 all well and good, but what about fibre (SFP+) ethernet? 08:21:24 although in one apartment i used comcast's coax to pull cat5 from the basement to the 2nd story 08:21:45 A buddy of mine lived in an apartment and ran CAT5 behind the baseboard trim. 08:22:26 AmyMalik: seems like the same situation as running cat5/6 08:22:38 not handy enough with gaffer tape eh 08:22:54 rtprio, perhaps not 08:23:00 fiber is too expensive to run, opposed to cat6. 08:23:06 not really willing to hack it up by running cabling through the entire house outside of the walls 08:23:13 ah, yeah. and not kinking either 08:24:13 one thing I have thought about, is that years ago to get TV into this room, we had coax put through the walls 08:24:25 I have 1 fiber sfp+ cable and it goes from my switch to my NAS. It's like 10 feet long and I think it was $40. 08:24:27 I've thought of running ethernet over that, but I'm not even sure where the other end of the cable is 08:25:53 if the coax is not connected to anything, you could probably run wifi? (yes, over coax; yes I know it's a bad idea) 08:26:11 (I just like to advocate for impractical jank whenever I can) 08:26:48 like connect the other end of the coax where an antenna would go on the router? that sounds cursed 08:27:01 yes 08:27:05 exactly like that 08:27:33 and then, idk, vampire tap the cable if you need a network somewhere (don't do that, you'll get all sorts of reflection badness) 08:27:44 this newest router we got doesn't even have an external antenna terminal, it's one of those ones that's entirely internal to look nice and clean or whatever 08:27:47 (you'll also torch the phys) 08:34:36 You mean, people don't use managed APs connected to routers/switches? 15:30:07 so with sendmsg(), either it sends the entire message, or i get EMSGSIZE and nothing is sent... right? or can a partial message be sent? 15:31:05 this is with SOCK_SEQPACKET sockets in AF_UNIX, in case the protocol makes a difference 17:00:45 how do you tell pkg what repository to add pkgs from? 17:01:33 oh, pkg install -r 17:32:22 What are the equivalents of /dev/drm, /dev/dri etc. when using Xorg in FreeBSD? or do you enable linux devfs for using X? 17:32:52 albertus: if you have drm-kmod installed, you should have /dev/drm and /dev/dri, these are literally just ports of the Linux DRI drivers 17:33:17 ah, so is drm-kmod a dependency of the X server? 17:33:36 I installed the X server in a jail, to no avail 17:33:46 no, since X doesn't require DRI/DRM, but if you want accelerated graphics on a supported card (Intel or AMD mainly) then you should install it 17:34:17 what would be used without it? the simple framebuffer thing? 17:34:37 any driver shipped with X that doesn't require DRI. so NVidia, S3, VESA, ... 17:34:38 I'm wondering which devfs-nodes I have to pass into my jail, or what else I would have to do, to make it start 17:35:06 you probably need to pass /dev/dri and /dev/drm into the jail 17:35:13 ... if you're using DRI 17:35:27 ... that's where my question came from 17:35:40 well, is drm-kmod installed and loaded on the host? 17:35:46 you can't run that in a jail - it's a kernel module 17:36:08 I have not installed drm-kmod, and only installed X server components in the jail, so probably no 17:36:25 but I was wondering if DRM is the usual way if I were not using a jail 17:36:45 it depends on the graphics card you're using, if it's Intel (i think yes since you're the person the odroid H3, right?) then yes you need drm-kmod 17:37:08 yes, it's the H3 with integrated graphics on Intel 17:37:29 okay, thanks 17:38:10 oh that pkg brings a lot of firmware pkgs :) 17:38:54 many "lakes" on Intel, but not the right one (Jasper), as far as I can see 17:42:03 albertus: intel tends to be a bit vague about the GPUs on these celeron/pentium chips, try `kldload i915kms` and see what happens 17:46:06 all of a sudden, the screen blanks and the font is a LOT smaller (or... the screen resolution actually uses the WQHD monitor!) 17:46:33 that means it's working (almost for sure... i guess you need to start X to be really sure) 17:47:22 I think I'll need to enable the /dev nodes in the jail first :) 17:47:42 I do have /dev/dri and /dev/drm now 17:48:44 i've never tried X in a jail but i don't see any reason it wouldn't work as long as the appropriate devices are available 17:49:27 also don't forget 'sysrc kld_list+=i915kms' so the module is loaded on boot 17:49:34 I only installed X because Kodi failed to start. but I think I'll just have to specify a devfs-rulseset for the jail and will see how it goes then 17:49:38 (i think drm-kmod tells you to do this when you install it anyway) 17:50:17 it told me, but when I started vim to look inside /etc/rc.conf, it had overwritten that message and I had not written it down 17:57:02 albertus: also re: font size, try this in /boot/loader.conf: screen.font="12x24" 17:57:11 that's about the right size for me on a 27" 4K display 17:58:04 (you might also want 'exec="gop set 0"' but you have to reboot into the loader and run 'gop list' to find out which number is which resolution) 17:59:33 (other fonts are available in /boot/fonts, maybe a slightly smaller one is good for 1440p) 18:02:43 okay, i want to submit a phab review for ports (not src)... do i still use 'arc diff --create main..' like 18:02:43 [00:00:22] Cleaning up 18:02:43 [00:00:22] Unmounting file systems 18:02:48 whoops 18:03:10 okay, i want to submit a phab review for ports (not src)... do i still use 'arc diff --create main..' like https://wiki.freebsd.org/Phabricator says? or do i need to tell it the diff is for ports? 18:03:11 Title: Phabricator - FreeBSD Wiki 18:08:22 welp i did the thing, hope this is right https://reviews.freebsd.org/D43637 ... never used phab before 18:08:23 Title: ⚙ D43637 audio/pulseaudio: convert JACK option to a package 18:58:30 how do i update an older release? pkg: Error fetching http://pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/Latest/pkg.txz: Not Found 18:58:30 hi, I'm trying to run npm with npm-node21-10.2.5 and I get: ld-elf.so.1: /usr/local/bin/node: Undefined symbol "uv_pipe_bind2" (FreeBSD 13.1) 18:58:56 BTW, this is in a 13.1 jail on a 14.0 host 18:59:01 Kobaz: you need to upgrade the OS before packages. try freebsd-update, although i don't know off hand if update from 12 is still possible 18:59:39 hmm, that would be unfortunate 18:59:58 i *think* it still works? 12 was only EOL'd like 2 months ago... but i've never tried it 19:00:10 debian is pretty good like that... even in 2024 I would be able to upgrade from debian 1.0 to the latest via apt 19:00:38 freebsd-update fetch looks like it's going 19:01:09 would you? i mean would it actually work? ... because i used to be a debian maintain and my experience is the upgrade scripts are *definitely* not tested across that sort of timeframe, so it's kind of random if it works or not 19:01:36 io: yeah, debian has every single release on archive.debian.org 19:01:44 lw: I successfully started X :) will tinker some more the next days. thanks so far! 19:02:01 Kobaz: so does freebsd, that doesn't mean upgrading from a 20 years old release to current release actually works 19:02:11 lw: why wouldn't it? 19:02:21 lw: it's the same process anyone else would go through to upgrade 19:02:40 Kobaz: in debian's case, because almost every package includes various pre/post-install scripts which are not tested for upgrading from a release that old 19:03:01 lw: i would assume 12 -> 13 -> 14 will be the same process years ago vs today 19:03:01 like, it's *theoretically* possible, but did anyone test it? 19:03:23 lw: what you mean no tested? 19:03:38 Kobaz: when did someone last test upgrading from debian 1.0 to whatever the current release is? 19:03:43 like, what would it matter if i upgraded from 1.0 -> 2.0 today... or 15 years ago... the script is the same 19:04:02 well, yeah, if you just want to upgrade one release at a time that should work fine in freebsd too 19:04:08 lw: i think you are assuming going from oldest to latest in one step.. which was never a supported operation 19:04:13 it's just the old ports packages aren't kept around for old releases 19:04:36 so you upgrade base to the current release, then update packages to whatever the current version is 19:05:06 (freebsd doesn't keep old ports package around in general because ports doesn't really have releases...) 19:05:14 ah 19:05:56 freebsd-update fetch .... Fetching 28 patches.....10....20.... done Applying patches... done. Fetching 72 files... <-- this part seems to be taking a while 19:06:38 that does always take a while, not sure why 19:06:44 ah, k 19:06:44 pkgbase will fix that i guess 19:07:28 although now i wonder how well pkgbase works if you're upgrading from an EOL base with ports installed... hmm 19:07:44 i always forget the freebsd ways of doing stuff for things like strace and ps auxf (there's no forrest option for *bsd ps) 19:09:29 ah, looks like it's ps -d 19:11:20 there it is... truss... hehe 19:11:31 okay looks like fetching is actually doing stuff (reads/writes) 19:12:05 yeah -d. they call it decendency, not forest 19:16:25 i switched my todo app and started migrating, and the new todo app wiped all my new todos 19:16:50 i need to restore my desktop from backup but now i realized i haven't been checking my backups as much as I should... this hasn't backed up since 350 days ago 19:17:28 and then it turns out email from backuppc hasn't been working since it looks like the default sendmail install doesn't work... so.... ugh 20:32:44 oops