-
CrtxReavr
ivy, try also setting the mask width the same as the non alias IP on the same subnet.
-
ivy
CrtxReavr: that's impossible as the non-alias IP is 127.0.0.1/8. but it works fine once i rebooted with a kernel that supports IPv4 :-)
-
CrtxReavr
Yes, I know what the ifconfig manpage says. . . and that used to be a requirement, but it hasn't been for many years.
-
CrtxReavr
I think that requirement went away in the 6.x or 7.x timeframe.
-
ivy
okay, maybe i don't understand your suggestion. there is no non-alias IP in this subnet, it's a /32
-
CrtxReavr
Try an appropriate mask width or subnet mask to a 1918 address then.
-
ivy
the appropriate mask is /32
-
CrtxReavr
Maybe.
-
ivy
no, definitely...
-
CrtxReavr
jb1277976, bluetooth is not something I've ever attempted with FreeBSD before, sorry.
-
hjf
rwp: you know, my terminal supports text attributes such as dim, underline, reverse, blink,... but it seems it only supports one at a time. like, you start a reverse text here, then back to normal, it looks as expected. but then if you want to do a blinking text later, now the text that was bold, is now blinking
-
CrtxReavr
hjf, which terminal software?
-
hjf
-
CrtxReavr
Oh, *THAT* kind of terminal.
-
hjf
heheh
-
hjf
your *THAT* appeared as reverse video
-
CrtxReavr
You have $TERM set to something the terminal supports?
-
hjf
yes i found a terminfo entry for something similar
-
hjf
ADDS 3A+
-
hjf
this terminal is configured to be a 3A+
-
CrtxReavr
That's not one I'm familiar with.
-
CrtxReavr
I've dealth with some vt10x TN3270, TN5270. ..
-
CrtxReavr
And if I go way back, some TVI312.
-
johnjaye
hmm. how would i go about debugging something that freezes the terminal?
-
johnjaye
this is a port causing the problem
-
CrtxReavr
What kind of port?
-
hjf
*posts a picture of a parallel port*
-
CrtxReavr
Is it IEEE-1284 compatible?
-
johnjaye
i've never heard of this
-
johnjaye
this is a real thing?
-
CrtxReavr
It was a cable spec for bi-directional parallel port support. . . wasn't actually well supported until the mid-'90s.
-
johnjaye
it says usb2.0 displaced it.
-
CrtxReavr
You had to look at the cable for 'IEEE-1284'
-
CrtxReavr
Indeed.
-
johnjaye
no loyalty among technology companies
-
ivy
one day i need to sit down and work out Forgejo never starts properly on boot. usually it just fails, this time it started but refused to connect to the database and never recovered, works fine after restart...
-
johnjaye
sounds like fun. can i tag along
-
CrtxReavr
Forgejo?
-
ivy
CrtxReavr: fork of Gitea, think github/gitlab but lighter
-
ivy
it's pretty nice when it works
-
CrtxReavr
Good bet it's a race condition.
-
ivy
well i thought that but the error was really weird
-
CrtxReavr
Tried using /etc/rc.d/netwait ?
-
ivy
2024/10/18 02:32:17 cmd/web.go:194:serveInstalled() [I] PING DATABASE postgres
-
ivy
2024/10/18 02:32:17 routers/common/db.go:36:InitDBEngine() [E] ORM engine initialization attempt #9/10 failed. Error: dial tcp: lookup postgres-1.svc.eden.le-fay.org on [::1]:53: server misbehaving
-
ivy
it's not a DNS problem and it's not a Postgres problem, and after restarting it works... so maybe it's cached some failure condition
-
CrtxReavr
Local DNS server?
-
ivy
yes, unbound (from ports) on localhost
-
CrtxReavr
I've not used unbound. . .
-
ivy
but the system gets its default route via BGP so sometimes networking isn't available early in startup even if rc thinks networking is up
-
ivy
(this causes problems with some other things, but usually i've been able to fix/work around them)
-
CrtxReavr
But I've had issues with bind giving me startup errors basically saying that IPs weren't (yet) bound on NICs it was set to listen on.
-
ivy
i might just move it to a VM, i've been meaning to do that anyway, maybe that'll work better
-
CrtxReavr
Or just add a 'sleep 10' to the startup script in the right place.
-
ivy
that is too hacky for me :-) for Kerberos (kdc) i wrote a new rc.d script that waits for openldap to be available before it starts, might need something like that here
-
CrtxReavr
I would edit this section of the startup script:
-
CrtxReavr
#!/bin/sh
-
CrtxReavr
# PROVIDE: named
-
CrtxReavr
# REQUIRE: NETWORKING ldconfig syslogd
-
CrtxReavr
# BEFORE: SERVERS
-
CrtxReavr
# KEYWORD: shutdown
-
CrtxReavr
And yes, those lines are supposed to be commented - rc.subr parses the, despite them being comments.
-
xxy
after adding HDD disk to a existed zfs Pool (ssd disk), how to save some file on HDD (/dev/ada1), and another in ssd(/dev/ada0)?
-
ivy
xxy: you can't do that, if you added the disk as another vdev (a stripe) zfs will automatically distribute the data between all disks
-
xxy
ivy: could i create multiple pool in one Os? each disk give one
-
ivy
xxy: yes, you can have (more or less) unlimited number of pools if you want
-
ivy
you can also use the ssd as a cache for the hdd (l2arc/zil) but this does not improve performance in all workloads, in a desktop/laptop type of system it's probably not very helpful
-
xxy
ivy: HDD is used to store big files like videos, after executing "zpool add zroot /dev/ada1" and followed execute "zpool remove zroot /dev/ada1" it prompt "out of space",
-
ivy
xxy: i've never tried removing a disk from zpool so not sure what's going on there, sorry
-
gewt
so i'm like, way-behind on upgrading a machine i've got (12.2-RELEASE behind) is the safest upgrade method still rebuild world from source, reboot, etc?
-
gewt
the packages i imagien would be quite messy being that behind, i imagine
-
ivy
gewt: you should be able to freebsd-update to 12.4 then 13.4 then 14.1 (do not skip 13.4 as you will run into a freebsd-update bug) but if you normally upgrade from source you should be able to go straight to 14.1 that way
-
ivy
i *think* the 12.4 freebsd-update files are still online even though the release is EOL... although i'm not 100% sure about that
-
gewt
seems that way
-
gewt
it didn't complain about specifying that release
-
ivy
after you've done those upgrades, pkg will be broken, use pkg-static to update the pkg package, then do a normal pkg upgrade
-
gewt
ah, dang. i think the host failed in a different way so this upgrade might be moot lol
-
gewt
seems the disks may have died
-
ivy
that could perhaps cause a problem with the upgrade
-
gewt
i can't ctrl/c ping and top won't launch
-
rwp
hjf, That matches my memory of those terminals. There were often several attributes available. But only one at a time.
-
ivy
how do you turn off the green text attribute
-
rwp
You turn off the green text attribute by removing and replacing the CRT with an amber one. :-)
-
ivy
amber is prettier than uranium, so that sounds like a win
-
rwp
In my museum piece collection I am keeping my amber 13 inch CRT monitor. You never know when you might need it.
-
ivy
i saw an amusing news story recently that a nuclear power plant had a failure of their Honeywell control computer, so they replaced it with the backup PDP-11
-
ivy
wonder if HPE still sells parts for those
-
rwp
It's good to have spare backup minicomputers.
-
rwp
Minicomputers that can be easily simulated on a Raspberry Pi these days.
-
ivy
i'm not sure rpi is approved for controller nuclear reactors though
-
gewt
boot drive is toast but my VM drive is intact
-
gewt
so i need to buy a new ssd lol
-
ivy
gewt: or two new SSDs, so you can set up a root mirror and a failed disk doesn't break your computer :-)
-
gewt
true!
-
gewt
i think i am out of drive caddies in the server tho
-
gewt
eh, 2'll be here tomorrow and i can take a trip to the datacentre and swap 'em in
-
rwp
I mirror everything possible these days. It's just so much less hassle for when something fails. Just replace it and keep going.
-
gewt
guess i don't need to upgrade the OS after all. :P
-
gewt
yeah
-
gewt
it's possible the raid card failed...but the other virtual drive's intact so i think it's just the boot drive
-
rwp
If it is just the boot drive and the rest of the data is intact then you should be able to replace the boot drive, install a new system, and mount the data and be good to go.
-
johnjaye
ivy: i once read a website claiming in the nuclear apocalypse the z80 would be the dominant computing device due to its sheer amount of mass production
-
gewt
did an `fsck` of the vms virtual drive without issue
-
gewt
rebooted and the raid card finally failed the boot ssd out
-
rwp
The Z-80 might do acceptably well in a large radiation environment due to the large geometry transistors used in it too. Not radiation hard by any means. But as compared to this year's silicon? Yes.
-
ivy
kevans: ran into a weird issue where ever time i type 'kevin' on the serial console (ttyu0) the kernel panics, any idea what's up with that?
-
ivy
just says 'panic: you sneaky shit'
-
darwin
i installed FreeBSD UNIX years ago on a virtual private server (VPS) with a company that says they 'support' that, maybe starting with v11. I upgraded every version since then, and asked them to allow newer .ISOs, which they said they would then never did. Now they say people can't 'afford' newer .ISOs (they're not English speakers, the VPS is in Moldova) despite all the .ISOs are free. FreeBSD 14.1 barely fit on this VPS because I used the full DVD ISO.
-
darwin
next time can I use the CD or USB or mini-USB ISO and have it not take so much space?
-
ivy
darwin: not really cler what you're asking -- using the 'full DVD ISO' has nothing to do with how much space freebsd takes up once it's installed
-
darwin
so the other methods just download a lot of stuff and install the same amount of software?
-
ivy
yes
-
ivy
the 'full' image is not a bigger version of freebsd, it just includes more stuff on the distribution media
-
darwin
then I guess I'll be stuck not upgrading or switching VPS or installing something else on it. OpenBSD UNIX still fits on a CD.
-
ivy
a base installed of freebsd is something like 200MB, which would also fit on a CD if you wanted to install the OS on a CD for some reason
-
ivy
i just installed a new VM here and it's using 1.5GB (with a bunch of ports installed), if your VPS has less than 2GB space it really might be time to upgrade
-
darwin
it's taking up 8.2GB on mine, but I only installed binutils, gcc, gcc13, gettext-runtime, gmp, indexinfo, liblz4, mpc, mpfr, nano, pkg, screen, tcl86, tcltls, zstd, and compiled eggdrop. I don't think any of this even takes up 1GB nor close
-
ivy
so, have you tried to use 'du' to find out what's taking up the space?
-
darwin
/usr, var are almost 4GB+ each
-
darwin
a lot is /usr/src
-
ivy
okay, so freebsd itself definitely doesn't put 4GB of data in /var, you have something using up the space there, use du to find out what it is
-
ivy
and don't install /usr/src if you're on a tiny VPS
-
darwin
can I uninstall /usr/src ?
-
ivy
if you're not using pkgbase (you would know if you were) you can just rm -rf /usr/src
-
darwin
/var/db is almost 5GB, which I don't use
-
ivy
ok, so look in /var/db and see what's using the space there
-
darwin
/var/db/freebsd-update is 4.4GB
-
ivy
you can simply delete everything in there, assuming you aren't in the middle of upgrading
-
darwin
excellent
-
ivy
it only stores some files there in case you want to rollback to the previous release
-
darwin
great; now I got it down to 2.3GB so can keep using it years/decades... still 800GB larger than yours but I guess a few things I installed could be bigger (I also have just cleared all the compressed logs)
-
|cos|
Today
bugs.freebsd.org/280186 hit me, again. Would anyone feel up for suggesting how to either improve my patch or suggest some other path to make that part of the handbook more helpful?
-
ivy
|cos|: usually if people ignore your patches the best option is to mail the appropriate mailing list to attract attention -- for src, i would also suggest github, but i don't think doc is using that (yet?)
-
|cos|
ivy: that seems like a good idea. thanks!
-
luke_jobless_sb
my jail system blew up again
-
luke_jobless_sb
hate this webchat
-
ivy
luke_jobless_sb: you know you don't need a webchat to be here right? you can use a normal irc client
-
luke_jobless_sb
ivy: i mean it is a pretty interface. well-made client but I just like traditional way
-
luke_jobless_sb
ivy: my bouncer is lost in his(her) jail
-
ivy
ah i see
-
Pionat
Hello, if I have a server running jails, can I build ports in one jail and in another jail just install the resulting software (i.e. not having to build in the second jail)?
-
dh
Yes
-
ivy
Pionat: you probably want poudriere for this
-
Pionat
dh: is there any guide on how to do this?
-
ivy
it can build packages to a pkg(8) repository that you can serve from any http server
-
ivy
although it's a bit fiddly to get it running in a jail since it uses jails to do the build, i've never tried that (but i know it is possible)
-
ivy
basically everyone who builds from ports source uses poudriere nowadays, except the 3 people who still use portmaster
-
ivy
and those people have grey beards and live in strange huts in the middle of the forest
-
dh
Well, simple way would be 1) build and install packages in one jail 2) run "pkg create -a" on that jail 3) copy created package files to other jail 4) install packages in the other jail
-
Alver
Spent two hours tinkering with podman on FreeBSD inside a jail, to find out it can't run inside a jail because it uses jails itself. Poo. :°)
-
ivy
Alver: i don't know anything about podman but nested jails are a thing, just not enabled by default
-
ivy
(if you know that and it still doesn't work, no idea)
-
Alver
ivy: I did not know that (apart from a vague suspicion based on a single comment on a forum) but I don't think I'm in any position to dive into that :)
-
Alver
podman on FBSD is already pretty experimental from what I read, so adding another level of complexity wouldn't be a smart thing to do I think
-
Alver
Podman already requires the host server to have the various linux-compat kernel modules loaded which makes me uneasy enough as it is
-
ivy
oh is that for running linux containers? i thought podman was freebsd native but maybe i'm thinking of something else
-
Alver
Yes, it allows to run unmodified Linux container images
-
Alver
Which would be a nice thing to have - but not if I have to do it straight on the host that also runs the jails with my "important" services
-
dch
podman does not need to load the linux kmod unless you want to run linux containers
-
jbo
maybe one day I'll know how to use xargs without looking up the man page every single time
-
dch
darwin: make sure you empty /var/cache/pkg/ in particular (IIRC its `pkg clean -a` but I just `rm -rf` it) this can waste a lot of space
-
Alver
Hmhm. So nested jails are a thing, and I'm trying to get podman to play inside one. I cannot get my jail to be able to manage a ZFS dataset, though.
-
Alver
I've added the mount.zfs and related options; statfs=1; devfs_ruleset=4.
-
Alver
Still getting permission denied when trying to zfs create something inside the jail.
-
Alver
zfs jail myjail path/to/dataset too in exec.created.
-
dch
Alver: post your config? I think you need to have devfs expose /dev/zfs* stuff or similar too
-
Alver
dch: yes, that's through the devfs_ruleset=4
-
Alver
But I think I've got a lead (mounted status preventing jailed=on to be set, possibly)
-
dch
no thats not required
-
dch
-
dch
this is what I use in production
-
dch
and look at the end of
git.sr.ht/~dch/ansible-jails/tree/main/item/README.md for how the datasets are created
-
dch
IIRC you can create them ready jailed, `doas zfs create -o jailed=on -o mountpoint=/var/db/eden zroot/jailed/eden` for example
-
dch
Alver: just make sure that you actually have devfs mounted inside the jail(s)
-
Alver
dch: yeah, that was done. It appears that bastille isn't keen on doing jailed=on on datasets
-
Alver
If bastille sees the jail, the dataset is mounted and I can't set jailed=on. If I set jailed=on manually, bastille forgets the jail exists.
-
Alver
Guess I can try with a separate dataset.
-
ivy
kevans: our lord and saviour Sir Mark Johnston fixed my vtnet bug
bugs.freebsd.org/bugzilla/show_bug.cgi?id=282168
-
kevans
ivy: woot
-
ivy
but as usual the fix came while i'm in the middle of a ports build so i can't test it
-
ivy
wonder why poudriere is building qt6
-
johnjaye
when you have pourdriere build ports do you build them all?
-
johnjaye
i had this idea. if you could somehow create a graph of like "most used packages" in ports. So then you could build those packages only, that way building most packages would be fast
-
mzar
johnjaye: you can build small amount, or only one port with poudriere, but all the depencies will be built too, so it won't be one pakcate
-
mzar
*package
-
johnjaye
ah right.
-
johnjaye
i guess my idea was like. common libraries everything uses and just build those
-
ivy
johnjaye: why would you build "most used packages" when you could just build the packages you want?
-
johnjaye
is there no command to build the deps of a project?
-
johnjaye
linux has something like that called build-dep weirdly
-
johnjaye
ivy: to make it fastest to build a random package i suppose.
-
mzar
johnjaye: I don't know what are you going to do, but poudriere wants just a list of ports. If one of them was dependent on for example devel/cmake-core, then extending this list by another port requring this tool will use already built devel/cmake-core
-
johnjaye
right. i was thinking of a pkg type command from linux land that installs prereqs
-
johnjaye
so basically for package X you get all the prereqs you need to build package X
-
mzar
hm... are we talking about pkg(8) command or poudriere builtds ?
-
Tenkawa
mzar: what he is trying to explain is a function of apt & dpkg in the debian world
-
Tenkawa
build-dep is a build dependency step of package building
-
Tenkawa
it is not "linux" specific as much as it is dpkg/apt
-
Tenkawa
So it sounds like to me poudriere already has that depemdency functionality built in when building a package
-
Tenkawa
s/depemdency/dependency
-
Tenkawa
(I haven't used poudriere in years so I can't remember personally)
-
mzar
Tenkawa: I am not much Linux user, but it works for me. Thank you for the explanation
-
mzar
johnjaye: yes, with poudriere you can build and commit to the repo all the dependencies but not package itself using command poudriere testport. Does it fulfil you needs ?
-
ivy
kevans: am i doing phabricator wrong, i had to download the raw patch and apply it to my source tree using patch(1)?
-
ivy
i mean that's okay but this is an odd workflow when git is involved
-
ivy
i do like how quickly bhyve+nvme writes crash dumps
-
kevans
ivy: there's arcanist and some tooling that markj wrote around it called git-arc that might be helpful here
-
kevans
devel/freebsd-git-devtools
-
ivy
oh i know about that but i didn't know it could do this
-
ivy
i only used it to submit phab reviews
-
ivy
can't we just use github smh my tree
-
kevans
you're specifically looking for arc-patch/git-arc-patch
-
ivy
patch is broken
-
ivy
/data/build/src/freebsd/lf/main/sys/kern/subr_bus.c:2579:20: error: incomplete definition of type 'struct prison'
-
ivy
2579 | CURVNET_SET_QUIET(TD_TO_VNET(curthread));
-
ivy
| ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~
-
ivy
(updated the PR)