-
fspkwon
what was the binary package manager for freebsd 8?
-
fspkwon
it isnt installed when using memstick
-
fspkwon
i can try to use a vm once im up and running to figure out how to manage a legacy_install
-
daemon
pkg_add ?
-
daemon
im not sure where it swapped over to 'pkg'
-
artemist
What are the meanings of the -ifa and -ifp options of route(8)? The manpage isn't very helpful
-
meena
artemist: where you seeing this used?
-
artemist
I'm not seeing them being used, I'm trying to figure out how to force a route to go over a specific interface
-
xa0z
sudo route add -net <destination_network> <gateway_ip> -ifp <interface_name>
-
meena
artemist: what have you got so far, and how is it failing?
-
meena
Also, what xa0z writes looks plausible
-
artemist
I tried -ifp and it seems to work, I'm mostly confused what -ifa is for when nothing mentions it
-
xa0z
ifp is using the interface, ifa uses the IP of the interface.
-
artemist
Okay, cool, makes sense
-
artemist
Thanks
-
meena
that paragraph could use some work.
-
xa0z
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.
-
» xa0z shrugs.
-
uuidNuniq
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?
-
uuidNuniq
i tried this : nat proto udp from 127.0.0.1 to 127.0.0.1 port 53 -> 127.0.0.1 port 9999
-
uuidNuniq
but it does not work. dig timeout
-
uuidNuniq
wow, this works: rdr on lo0 inet proto udp from any to 127.0.0.1 port = 53 -> 127.0.0.1 port 9999
-
rtprio
that is a bit odd, eh
-
uuidNuniq
emmm. i tried to use route-to , the upload speed is very slow.
-
uuidNuniq
pass out eth0 route-to utun6 proto { tcp, udp } all
-
uuidNuniq
pass out on eth0 route-to utun6 proto { tcp, udp } all
-
uuidNuniq
all up/down go through utun, download speed is ok, but upload speed is very slow.
-
uuidNuniq
anything i forgot to run ?
-
xa0z
What is the easiest, and safest way to replace all the disks in a raidz array for an SQL server?
-
rtprio
xa0z: how else would you do it othr than replace one, resilver, and so on until the pool is complete
-
rtprio
what the server is running is immaterial
-
xa0z
So you think doing one disk at a time and resilvering 8 times is best?
-
rtprio
that's the only way unless you feel like rebuilding the pool, and migrating
-
xa0z
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.
-
rtprio
so it's a mirror, not raidz
-
rtprio
yes, with care you could do multiple drives at once; is there some reason to hurry?
-
xa0z
It's a striped mirror pool.
-
xa0z
I'm in no hurry. I'm just concerned with more drive failure during the resilvering process.
-
rtprio
you could add mirrors before removing the old ones
-
AmyMalik
That should not be a problem if your drives are well at this stage
-
rtprio
depending on the space in your chassis
-
rtprio
xa0z: it would be something try on a test pool
-
xa0z
AmyMalik: just started getting sector errors for one of the disks.
-
AmyMalik
then I would replace that disk
-
xa0z
They're all old by now. 85,000 hours.
-
rtprio
haha, half my pool is in that neighborhood
-
rtprio
AmyMalik: theres 8 disks to replace
-
AmyMalik
oh.
-
AmyMalik
do you have an extra disk or disks that you can run a backup to before you begin the procedure
-
xa0z
If I'm going to replace one, I might as well work on replacing all of them, no?
-
xa0z
AmyMalik: I have plenty of spares.
-
AmyMalik
Right, yes, it would be good to replace all of them.
-
AmyMalik
I'd probably not do more than two disks at a time.. but this is not based on any evidence really
-
rtprio
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
-
AmyMalik
rtprio++
-
rtprio
with zpool detach
-
AmyMalik
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
-
AmyMalik
i wouldn't nec rely on that
-
xa0z
AmyMalik: so far just got my first one on this server today, 1 offline uncorrectable.
-
rtprio
at what, 9 years, probably not worth to wait and see
-
AmyMalik
"time" by which I mean, time enough to get things moved befoe the fan is struck with excrement
-
AmyMalik
but I'd implement rtprio's advice here
-
rtprio
ID# ATTRIBUTE_NAME FLAG VALUE WORST THRESH TYPE UPDATED WHEN_FAILED RAW_VALUE
-
rtprio
9 Power_On_Hours 0x0032 001 001 000 Old_age Always - 94411
-
» AmyMalik starts corroding
-
rtprio
i know
-
xa0z
Since I use mysql on zfs, I was considering sending a snapshot of the pool to another local server's pool.
-
tm512
rtprio: dang, even my server "only" has about 84k hours
-
tm512
and it's been powered on pretty much 24/7 since I got these WD Reds back in 2014
-
xa0z
This SQL server has been powered on 24/7 for a long, long time.
-
xa0z
I have 1 WD RE4 and 1 HGST Enterprise mirrored in each of the 4 pools.
-
rtprio
these are wd blue. the data raidz2 is wd black
-
rtprio
xa0z: another backup won't hurt, i guess
-
rtprio
but if they could fail at any moment i'd just add mirrors as fast as possible
-
xa0z
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.
-
rtprio
that's a heck of a lot of drives for a 3gb database
-
xa0z
/var/db/mysql is 4G lol
-
xa0z
8x 2TB disks.
-
tm512
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)
-
rtprio
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
-
xa0z
zroot 7.25T 1.47T 5.78T - - 42% 20% 1.00x ONLINE -
-
tm512
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
-
tm512
and my home server is a bit too old for USB 3
-
tm512
network speeds are pretty painful since my PC is on the other side of a powerline ethernet connection
-
xa0z
This SQL server is a 3U Supermicro dual xeon E5540
-
AumShivaya
oh I tried one of those adaptors
-
AumShivaya
it was not good
-
xa0z
It's OLD.
-
tm512
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
-
tm512
that's not really saying much though
-
xa0z
how many feet?
-
xa0z
or distance*
-
» parv guesses 800+
-
tm512
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
-
xa0z
And you can't run cat6?
-
AmyMalik
not fibre either?
-
tm512
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)
-
AmyMalik
if you can't run cat6, you just aren't handy enough with duct tape
-
rtprio
if you think that, you've never lived in an apartment with lathe and plaster
-
tm512
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
-
xa0z
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
-
AmyMalik
all well and good, but what about fibre (SFP+) ethernet?
-
rtprio
although in one apartment i used comcast's coax to pull cat5 from the basement to the 2nd story
-
xa0z
A buddy of mine lived in an apartment and ran CAT5 behind the baseboard trim.
-
tm512
AmyMalik: seems like the same situation as running cat5/6
-
AmyMalik
not handy enough with gaffer tape eh
-
AmyMalik
rtprio, perhaps not
-
xa0z
fiber is too expensive to run, opposed to cat6.
-
tm512
not really willing to hack it up by running cabling through the entire house outside of the walls
-
AmyMalik
ah, yeah. and not kinking either
-
tm512
one thing I have thought about, is that years ago to get TV into this room, we had coax put through the walls
-
xa0z
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.
-
tm512
I've thought of running ethernet over that, but I'm not even sure where the other end of the cable is
-
AmyMalik
if the coax is not connected to anything, you could probably run wifi? (yes, over coax; yes I know it's a bad idea)
-
AmyMalik
(I just like to advocate for impractical jank whenever I can)
-
tm512
like connect the other end of the coax where an antenna would go on the router? that sounds cursed
-
AmyMalik
yes
-
AmyMalik
exactly like that
-
AmyMalik
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)
-
tm512
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
-
AmyMalik
(you'll also torch the phys)
-
xa0z
You mean, people don't use managed APs connected to routers/switches?
-
lw
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?
-
lw
this is with SOCK_SEQPACKET sockets in AF_UNIX, in case the protocol makes a difference
-
lw
how do you tell pkg what repository to add pkgs from?
-
lw
oh, pkg install -r
-
albertus
What are the equivalents of /dev/drm, /dev/dri etc. when using Xorg in FreeBSD? or do you enable linux devfs for using X?
-
lw
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
-
albertus
ah, so is drm-kmod a dependency of the X server?
-
albertus
I installed the X server in a jail, to no avail
-
lw
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
-
albertus
what would be used without it? the simple framebuffer thing?
-
lw
any driver shipped with X that doesn't require DRI. so NVidia, S3, VESA, ...
-
albertus
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
-
lw
you probably need to pass /dev/dri and /dev/drm into the jail
-
lw
... if you're using DRI
-
albertus
... that's where my question came from
-
lw
well, is drm-kmod installed and loaded on the host?
-
lw
you can't run that in a jail - it's a kernel module
-
albertus
I have not installed drm-kmod, and only installed X server components in the jail, so probably no
-
albertus
but I was wondering if DRM is the usual way if I were not using a jail
-
lw
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
-
albertus
yes, it's the H3 with integrated graphics on Intel
-
albertus
okay, thanks
-
albertus
oh that pkg brings a lot of firmware pkgs :)
-
albertus
many "lakes" on Intel, but not the right one (Jasper), as far as I can see
-
lw
albertus: intel tends to be a bit vague about the GPUs on these celeron/pentium chips, try `kldload i915kms` and see what happens
-
albertus
all of a sudden, the screen blanks and the font is a LOT smaller (or... the screen resolution actually uses the WQHD monitor!)
-
lw
that means it's working (almost for sure... i guess you need to start X to be really sure)
-
albertus
I think I'll need to enable the /dev nodes in the jail first :)
-
albertus
I do have /dev/dri and /dev/drm now
-
lw
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
-
lw
also don't forget 'sysrc kld_list+=i915kms' so the module is loaded on boot
-
albertus
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
-
lw
(i think drm-kmod tells you to do this when you install it anyway)
-
albertus
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
-
lw
albertus: also re: font size, try this in /boot/loader.conf: screen.font="12x24"
-
lw
that's about the right size for me on a 27" 4K display
-
lw
(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)
-
lw
(other fonts are available in /boot/fonts, maybe a slightly smaller one is good for 1440p)
-
lw
okay, i want to submit a phab review for ports (not src)... do i still use 'arc diff --create main..' like
-
lw
[00:00:22] Cleaning up
-
lw
[00:00:22] Unmounting file systems
-
lw
whoops
-
lw
okay, i want to submit a phab review for ports (not src)... do i still use 'arc diff --create main..' like
wiki.freebsd.org/Phabricator says? or do i need to tell it the diff is for ports?
-
VimDiesel`
Title: Phabricator - FreeBSD Wiki
-
lw
welp i did the thing, hope this is right
reviews.freebsd.org/D43637 ... never used phab before
-
VimDiesel`
Title: ⚙ D43637 audio/pulseaudio: convert JACK option to a package
-
Kobaz
how do i update an older release? pkg: Error fetching
pkg.FreeBSD.org/FreeBSD:12:amd64/quarterly/Latest/pkg.txz: Not Found
-
martinrame
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)
-
martinrame
BTW, this is in a 13.1 jail on a 14.0 host
-
lw
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
-
Kobaz
hmm, that would be unfortunate
-
lw
i *think* it still works? 12 was only EOL'd like 2 months ago... but i've never tried it
-
Kobaz
debian is pretty good like that... even in 2024 I would be able to upgrade from debian 1.0 to the latest via apt
-
Kobaz
freebsd-update fetch looks like it's going
-
lw
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
-
Kobaz
io: yeah, debian has every single release on archive.debian.org
-
albertus
lw: I successfully started X :) will tinker some more the next days. thanks so far!
-
lw
Kobaz: so does freebsd, that doesn't mean upgrading from a 20 years old release to current release actually works
-
Kobaz
lw: why wouldn't it?
-
Kobaz
lw: it's the same process anyone else would go through to upgrade
-
lw
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
-
Kobaz
lw: i would assume 12 -> 13 -> 14 will be the same process years ago vs today
-
lw
like, it's *theoretically* possible, but did anyone test it?
-
Kobaz
lw: what you mean no tested?
-
lw
Kobaz: when did someone last test upgrading from debian 1.0 to whatever the current release is?
-
Kobaz
like, what would it matter if i upgraded from 1.0 -> 2.0 today... or 15 years ago... the script is the same
-
lw
well, yeah, if you just want to upgrade one release at a time that should work fine in freebsd too
-
Kobaz
lw: i think you are assuming going from oldest to latest in one step.. which was never a supported operation
-
lw
it's just the old ports packages aren't kept around for old releases
-
lw
so you upgrade base to the current release, then update packages to whatever the current version is
-
lw
(freebsd doesn't keep old ports package around in general because ports doesn't really have releases...)
-
Kobaz
ah
-
Kobaz
freebsd-update fetch .... Fetching 28 patches.....10....20.... done Applying patches... done. Fetching 72 files... <-- this part seems to be taking a while
-
lw
that does always take a while, not sure why
-
Kobaz
ah, k
-
lw
pkgbase will fix that i guess
-
lw
although now i wonder how well pkgbase works if you're upgrading from an EOL base with ports installed... hmm
-
Kobaz
i always forget the freebsd ways of doing stuff for things like strace and ps auxf (there's no forrest option for *bsd ps)
-
Kobaz
ah, looks like it's ps -d
-
Kobaz
there it is... truss... hehe
-
Kobaz
okay looks like fetching is actually doing stuff (reads/writes)
-
Kobaz
yeah -d. they call it decendency, not forest
-
Kobaz
i switched my todo app and started migrating, and the new todo app wiped all my new todos
-
Kobaz
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
-
Kobaz
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
-
rtprio
oops