-
rtprio
unixwitch: i was told turn off things on my bridge'd nic, but can't recall why now: "-tso4 -rxcsum -txcsum"
-
Ellenor
i had to do something like that on a linux to resolve/work around an issue where the nic (an intel nic) would periodically bounce
-
Ellenor
networking is dark magic
-
meena
-
VimDiesel
Title: The correct way to configure bridges in FreeBSD for IPv6 (and IPv4). — blog.rlwinm.de
-
Ellenor
... is the output of `pw usershow` intended to be stable (unchanging from version to version)?
-
meena
Ellenor: if you want stable output, try getent passwd
-
meena
Also, the easiest way to know if the output is stable is to look at the git history of the file that's generating that output
-
meena
if it's been stable for >5 years, breaking it would be considered bad form
-
Ellenor
meena, that doesn't give the user's login class, which VVD needs for some reason. (`pw usershow` does)
-
meena
what other things can getent query?
-
Ellenor
ethers, group, hosts, netgroup, networks, protocols, rpc, services, shells, and utmpx, per its man page
-
Ellenor
I wrote a C program that breaks out the specific field, rather than needing to use `pw usershow` and `awk`, but I suspect that's a capital-W Wrong solution to the problem.
-
meena
somebody should add libxo output to pw
-
Ellenor
I'd rather become an alcoholic
-
meena
yeah, there's definitely more fun things to do with life
-
meena
I really badly want libxo for ifconfig
-
meena
but i also don't wanna actually poison my brain with the API
-
Ellenor
(-:
-
jbo
hmm, maybe it's because I'm the weird one but adding libxo to ifconfig and pw sounds like a fun little side project
-
meena
it's really mostly cuz other things were more important
-
meena
Also, i need to look into making pw work without root, so that build/install world can better work without root
-
jbo
meena, how about adding 802.11v support? :>
-
nimaje
jbo: you would make people happy by adding libxo support to commands
-
jbo
I wish I would have known about libxo before I wrote my own thing for that a couple of years ago :/
-
jbo
last time I checked the libxo docs it seemed fairly easy to use. I assume that adding libxo support to ifconfig and pw is mostly an exercise in patience and endurance
-
babz
Won't that double the size of the code?
-
nimaje
meena: regarding that bridge post, why would the bridge interface have an ip? shouldn't a bridge be just like a layer 2 switch?
-
meena
babz: it's one very thin c library why would it double the size of ifconfig?
-
meena
nimaje: i don't know, ask crest
-
jbo
meena, without knowing any details I assume that it will inflate the code size considerably
-
jbo
(code size from the memory segments perspective)
-
babz
I was talking about the source code
-
nimaje
hm, I expect libxo support to be mostly replacing printf and similar calls to be replaced by libxo functions plus some call to some init function at the start
-
babz
But maybe it's just link against this lib an now all the text output is automatically converted to xml :)
-
meena
wouldn't that be nice
-
meena
no, you do have to replace the printfs
-
jbo
it's gonna be xo_emit() all over the place :D
-
nimaje
ah, I think the use case where you want the bridge to have an ip is when you bridge multiple physical interfaces, so the bridge is your computer and the use case I had in mind was to connect vnet jails to the outside, so the bridge is only internal
-
kevans
yeah, libxo conversion can be a bit dirty unfortunately
-
jbo
kevans, would it actually wrap existing printf() calls?
-
jbo
wrap as in: replace printf() with xo_emit() ?
-
dstolfa
jbo: yes, but there are edge cases sadly
-
jbo
understandable
-
jbo
the thing I dislike about this sort of thing is that the XML output is basically a "meta output". that was the whole reason why I wrote a very ugly serializer once.
-
dstolfa
for the most part it works though. the biggest things to pay attention to are when things are flushed (because this can mess up the interaction between xo_emit() and printf output) and that you're actually producing valid data
-
jbo
that sounds like somebody would have a fun time reviewing any potential contribution along those lines :)
-
jbo
unixwitch, ping
-
zwr
ugh I just ran fastboot(1) thinking it was the android command
-
jbo
adventerous
-
zale23
Howdy, I have a failed upgrade to 14.0. My kernel is 14, but userland is 13.2. I have updates pending, which if I install using freebds-update install, I get a missing library when executing lots of things and the system fails to boot. Is there a way to complete the upgrade, or is a reinstall necessary? Also, future me is wondering if a boot environent would help.
-
jbo
+1 for using boot environments
-
jbo
having the kernel on 14.0 while userland is still 13.2 is actually part of the regular procedure
-
jbo
what exactly is failing?
-
jbo
did you follow the update guide that shipped with the release notes?
-
jbo
also, technically you should update the bootloader AFTER installing the new kernel but BEFORE booting into it.
-
zale23
I think I lost shell on one of these boxes during the upgrade. ld-elf.so.1: Shared object "libcrypto.so.30" not found, required by "sshd" is the error. I'll double check the release notes.
-
jbo
pro tip: when updating remote systems always use a tmux session (or similar). this way you can jump back into it after loosing the connection
-
jbo
if the system still boots I'd try to re-install the kernel just to make sure that everything is dandy there
-
zale23
Yes, remembering to use mosh+tmux again :)
-
zale23
Well, I'm booted on it now, but nothing is usable. zfs binary fails to execute.
-
zale23
frebsd-update rollback seems to cure the missing libs.
-
zale23
ld-elf.so.1: Shared object "libcrypto.so.30" not found, required by "zfs"
-
jbo
but... what
-
zale23
Those instructions look like what I've been using for years, so I think the lost shell in the middle is to blame. freebsd-version -kru shows 14.0 14.0 13.2
-
rwp
If it were me I would definitely use the Boot Environment to boot back to the previous which is guarenteed to be consistent.
-
zale23
I dont think I've eve setup boot environments. So unless that's done for me, not sure.
-
jbo
zale23, libcrypto.so.30 would be part of the kernel AFAIK. are you sure that you installed it successfully?
-
rwp
Try: bootctl list
-
zale23
libbe_init("") failed.
-
jbo
is this even a ZFS system?
-
rwp
It's automatically configured if the system is using zfs and freebsd-update
-
zale23
jbo: ah okay, I thought that was part of the sytem.
-
zale23
Definately a zfs system.
-
jbo
but if it's a ZFS system then you should have a boot environment automatically created for you with freebsd-update
-
zale23
but now I go freebsd-update rollback and I can zfs list again.
-
jbo
I think that feature was added in 13.x or something
-
jbo
rwp, bootctl list? isn't that bectl list?
-
zale23
Yeah, the output above is from bectl list
-
zale23
(after the rollback)
-
zale23
So can I completely restart the upgrade to ensure a clean kernel etc?
-
zale23
Jail are working fine :)
-
jbo
is rollback using BEs under the hood? I usually just select the BE in the loader
-
zale23
I'm almost never in front of this system while its booting unless it doesn't.
-
jbo
if this was a source update I would just re-install the kernel. not sure how you do that with freebsd-update
-
zale23
Future me will read
wiki.freebsd.org/BootEnvironments unless there is a better doc for understanding.
-
VimDiesel
Title: BootEnvironments - FreeBSD Wiki
-
jbo
zale23, there are two ways to use BEs: create a new BE, boot into it and then do work there and stay there if it works out. choose previous BE if it doesn't. The other option is what I usually do: create BE, but stay in the current one. Only use the newly created one if something failed.
-
jbo
AFAIK the latter option is also what freebsd-update does automatically nowdays
-
zale23
I don't mind compiling a kernel, I'm only using generic. If I started the compile for the kernel, would I also need to compile userland? Currently already have a ports tree with poudriere on 14 and 13.2.
-
jbo
I dunno I would personally try to fix the binary udpate
-
jbo
I never had one fail so I don't know how :D
-
zale23
Sounds like I should have a be currently, but don't. Hmm.
-
jbo
if it's definitely a ZFS system I would check whether you have the BE and boot into that.
-
jbo
how do you now that you don't have one if libbe is failing?
-
zale23
Yeah I guess I don't. The rollback fixed the rest of the commands which were failing for libcrypto reasons. Are you thinking that I'd be able to see the boot environments from the loader?
-
jbo
yes, the load shows the available BEs
-
zale23
By default?
-
jbo
yes
-
jbo
it's an option in the menu
-
jbo
where you select multi-user mode, single-user mode etc.
-
zale23
I don't think it was present. I had a rough go geting this thing to boot. Single user -> remount root, rollback but took a bit to learn that's what I needed.
-
jbo
now you make me doubt whether I'm talking shit
-
zale23
Dunno :)
-
zale23
I can reboot, but its like a 10 minute boot before I get to the loader prompt.
-
zale23
Okay maybe like 6 minutes.
-
zale23
Yeah, so no updates pending, fetch -> install -> ld-elf.so failing for libpcap, libcrypto and other reasons. Further fetching fails and rollback required.
-
kevans
if they exist there will be a submenu, but it shouldn't show you anything bectl list doesn't
-
jbo
zale23, you made me boot a machine... it is definitely listing the boot environments if you have more than one.
-
jbo
in the loader menu that is. entry 8.
-
jbo
BEs without being able to specify one in the load would be half as useful :D
-
zale23
Okay, I'll reboot tomorrow and check it out.
-
zale23
Makes sense, that's what I thought BEs were for.
-
jbo
yes
-
jbo
and afaik since 13 freebsd-update auto-creates BEs on install or something
-
zale23
So, the goal is to boot the environment before I started the upgrade, then start the upgrade again from 13.2 -> 14.0, correct.
-
jbo
I don't trust it so I always create one myself explicitly.
-
jbo
yes.
-
kevans
lol
-
zale23
Just bectl create?
-
jbo
yeah. I usually do bectl create 20230102 and move on
-
zale23
And what is that, a zfs snapshot?
-
zale23
/usr/local is still only one copy?
-
jbo
afaik it's not just a snapshot
-
jbo
it's a clone
-
jbo
or maybe it just becomes a clone once you activate it - not sure.
-
zale23
Okay, but a specific filesytem version for the kernel specifically or other filesystem paths also?
-
kevans
it creates a clone unless you specify the create param like default@snapname
-
jbo
yeah that makes sense. if it weren't a clone it wouldn't be all that useful
-
jbo
reason as I understand it: a snapshot is read-only. that wouldn't be particularly fun to boot from :D
-
jbo
man zfsconcepts :)
-
zale23
Thanks for the pointers.
-
jbo
good luck!
-
kevans
you might be intrigued to hear that loader semi-recently learned how to boot from a snapshot, too
-
rwp
jbo, Yes, sorry.
-
Axman6
If you have two zfs pools on the same machine, is there a better way to transfer the data from one to the other than using zfs send | zfs recv? it feels like there should be a more efficient mechanism
-
rwp
Shouldn't native file system transfer using send|recv be expected to be the most efficient?
-
darwin
what do I need to install to mount NTFS?
-
Axman6
it just feels like there'd be overhead from linearising the data on the pool just to unpack it again, when everything is already in memory in the same kernel
-
rwp
-
VimDiesel
Title: Chapter 20. Storage | FreeBSD Documentation Portal
-
darwin
thanks; I found it
-
darwin
what do I need to do to set 1280 2MB huge pages and enable 1GB huge pages? I've seen a script do this on GNU/Linux but don't know it'll run for FreeBSD (the script is by the xmr-stak-rx programmer)
-
darwin
yeah, that doesn't run on *BSD
-
darwin
i followed a similar page but only could enable mounting NTFS on one of the Lenovo X1 Yoga ThinkPad 20s (FR, UB) (the UB)... the other said fuse doesn't exist even though I installed fusefs-ntfs which got the dependencies
-
darwin
fuse: failed to open fuse device: no such file or directory
-
darwin
directory to mount in is there
-
darwin
okay, I fixed mounting the second NTFS
-
darwin
i'm so shocked fstab uses one SSD/M2/NVMe name and gpart uses something totally different
-
AumShivaya
as a thing, how long should chromium take to start from a HDD?
-
AumShivaya
I think things should be a little quicker
-
darwin
probably not long unless you have many tabs
-
AumShivaya
nah, after a reboot for example
-
AumShivaya
it has to load everything, takes about 15 - 20 seconds :/
-
AumShivaya
I remember on Linux you had to tell hdparm to do some thing
-
AumShivaya
and it would speed up read writes a lot on HDDs
-
AumShivaya
I do not know about a similar thing in FreeBSD
-
danel1_
Hi there :) Anyone maybe has an idea, what the minimal size for autotrim was before OpenZFS (e. g. with FreeBSD 12.4)? Currently it's 32kb (vfs.zfs.trim.extent_bytes_min: 32768)
-
kfv
danel1_: It was the same 32Kib back in that time.
-
kfv
Well, let me check, I might be wrong.
-
danel1_
I was searching in the code but wasn't able to find something.. the only stuff i found was in
cgit.freebsd.org/src/tree/sys/cddl/…fs/zfs/trim_map.c?h=releng/12.4#n79
-
VimDiesel
Title: trim_map.c « zfs « fs « common « uts « opensolaris « contrib « cddl « sys - src - FreeBSD source tree
-
danel1_
but there is no minimal limit set as far as i can see
-
Remilia
danel1_: what is the old sysctl variable name for that?
-
danel1_
i haven't found one..
-
Remilia
are you sure it had auto trimming
-
Remilia
danel1_: I have a nagging suspicion that autotrim was a new pool property in 13.0 introduced with openzfs
-
danel1_
i am - "vfs.zfs.trim.enabled: 1"
-
danel1_
it was just controlled by a sysctl knob
-
danel1_
-
VimDiesel
Title: Solved - How to enable autotrim for zfs? | The FreeBSD Forums
-
danel1_
-
VimDiesel
Title: src - FreeBSD source tree
-
Remilia
danel1_: sorry, I am just unsure it refers to automatic trimming
-
miko
has anyone managed to get the freebsd 14 installer booting on the pi4 with edk2? the few times i've tried the entire system resets early on in kernel boot
-
drobban
made changes to pucdata.c and compiled a module. When running kldload puc.ko it fails and suggests its already loaded or in kernel. When trying to do a kldunload it complains about finding the file. Do I need to build a custom kernel to incorporate my changes in pucdata.c?
-
Remilia
drobban:puc is built into GENERIC
-
drobban
oki doki. thanks for clarifying Remilia. What would the simplest way forward be, if I want to "try" my changes out.
-
Remilia
make kernel
-
drobban
Will I need to make a complete build and boot the new kernel, or is there a way to compile a module and try loading it?
-
Remilia
you can use INSTKERNNAME to give it a different name
-
drobban
ooh thanks
-
Remilia
you cannot unload the kernel
-
drobban
hehehe =)
-
drobban
Naively tought I might me be able to build a "submodule" loading a "different" module doing the almost same thing but just adding my extra to it
-
Remilia
drobban: `make -jX kernel INSTKERNNAME=kernel.custompuc` would give you /boot/kernel.custompuc which you can then use in the boot loader
-
Remilia
X = number of jobs
-
Remilia
that would be a bad idea in my opinion
-
drobban
thanks Remilia
-
Remilia
you could also make a custom kernel configuration based on GENERIC with `nodevice puc` and then test modules
-
Remilia
drobban: for convenience you can edit /boot/loader.conf to include something like kernels="kernel kernel.old kernel.custompuc", this will let you choose the kernel through the loader menu
-
Remilia
kernel="somekernel" would default to kernel named somekernel
-
meena
or MINIMAL, then there's every chance that it's just built as module
-
meena
but getting MINIMAL to actually boot might be more fun than some people would actually like to have
-
Remilia
ahaha
-
drobban
Remilia: thanks for the heads up on the -j flag =)
-
drobban
-j24 made some difference =D
-
drobban
ooh nice.. done =)
-
Remilia
drobban: using parallel jobs sometimes can break the compilation process so if you encounter inexplicable build failures try without but last time this happened to me was like 10 years ago
-
drobban
o it seems to be done without errors
-
Remilia
hopefully they will be able to choose the default kernel if stuff breaks
-
mane
anyone familiar with NIS?
-
mane
really need my freebsd client auth with NIS
-
mane
i made linux clients connect but bsd gets rpc failure
-
mane
second thing, i need to configure my tcp connectivity, i get low tcp transfers over my tun device
-
mane
# ypwhich -d vlepy.nis.local 10.8.0.1
-
mane
ypwhich: host is not bound to a ypmaster
-
mane
# domainname
-
mane
vlepy.nis.loca
-
mane
l
-
mane
i just can't bind my freebsd client to the nis master, the linux client i have works well
-
drobban
hummm. that sucked. copy pasting internet doesnt seem to be 100% solution =D
-
nimaje
maybe ypbind ?
-
drobban
will have to read datasheet
-
» drobban in the future
-
mane
nimaje i have ypbind running
-
mane
i have ypbind running but it's not binding
-
mane
ok
-
mane
i made that working
-
mane
:DD
-
mane
i made ypbind to bind :)
-
» mane gives himself a cookie
-
mane
the problem was the nis server works in a remote network that can't make broadcasting work
-
mane
so i had to specify -S and -m as ypbind settings
-
mane
now i have to start openvpn right after networking starts
-
mane
i appreciarte any hints for that
-
nimaje
the rc script doesn't work for you?
-
Soni
we would like to run ipv4-only apps on an ipv6-only freebsd (kernel) build
-
Soni
with an ipv6-only network that supports NAT64, obviously
-
nimaje
(why would you do an ipv6-only kernel build?)
-
jbo
unixwitch, ping
-
mane
nimaje it does work but it needs to run earlier, it needs to run before ypbind
-
polyex
so i read around on BE (boot envs) and i wanna start testing it out. but if i check freebsd-update and pkg upgrade, and there's none available, how can i test BE? because i think i have to create a BE, then do an OS or pkg upgrade, then set BE as active, then reboot and select the new BE and see the system as it was before the upgrade
-
meena
bectl list
-
Demosthenex
polyex: you can make a new be anytime
-
polyex
tried that and it said libbe_init("") failed
-
polyex
lol
-
Demosthenex
its just integrated with the updater
-
meena
yes, but you can do it yourself
-
meena
polyex: that seems bad, broken, even
-
polyex
ya and i never typed bectl on this vm before lol. 13.2 p9
-
polyex
want me to try to debug it just tell me what to type
-
polyex
so i made a new VM and i notice when i boot it there's only 7 option in the menu. but shouldn't there be 8 where 8 is the bectl menu?
-
polyex42
disconnected
-
Soni
nimaje: why not...?
-
Soni
it's an ipv6-only network, the ipv4 stack is unnecessary
-
polyex42
oh after i created a BE then rebooting shows option 8
-
polyex42
hey anyone know if RhodiumToad is ok? hasn't been around a lot
-
CrtxReavr
2023-12-23 20:20:17 < RhodiumToad> one of the issues for example is that curl updates very of
-
CrtxReavr
ten, and rebuilding curl forces a rebuild of rust, and hence all rust-dependent ports
-
CrtxReavr
Hasn't been *THAT* long.
-
polyex42
fuck ya! glad he's alive and well
-
polyex42
what all parts of hier are included in a "boot environment"?
-
polyex42
paths
-
CrtxReavr
polyex42, generally, I'd say the / prefix.
-
polyex42
so not /usr or /root?
-
CrtxReavr
/ has the tools to get the host booted, on the network, and filesystms mounted.
-
CrtxReavr
/usr has base system user utils and daemons.
-
polyex42
by / do you mean anything under / that isn't in a subdir of /?
-
CrtxReavr
/root is just root's default homedir location. . . really shouldn't be part of your boot chain.
-
CrtxReavr
polyex42, basically yes. . . /bin, /sbin, /lib, /libexec, /etc, et al.
-
polyex42
you said / as the tools, but those are all subdirs
-
polyex42
so a BE is everything under / except /usr /home and /var?
-
CrtxReavr
FreeBSD used to default towards pushing you to make /usr, /tmp, & /var their own volumes.
-
CrtxReavr
Moving away from that is a big mistake, IMO.
-
polyex42
is boot environment not defined somewhere? i didn't see it in man bectl
-
polyex42
ya i remember that
-
polyex42
now the default is just 1 big partition
-
mason
CrtxReavr: How recently was that the case? I thought only various bits under /usr tend to not be on / lately.
-
CrtxReavr
polyex42, I said the "the / prefix."
-
polyex42
and that's bad for all the old reasons that if /tmp fills up then critical dirs don't have room to work?
-
polyex42
what's the / prefix?
-
CrtxReavr
/, /usr/, /usr/local/ are common prefixes on FreeBSD systems.
-
polyex42
they're just dirs tho ya?
-
mason
polyex42: varies
-
polyex42
???
-
polyex42
prefix is what then if not 1:1 with dirs?
-
CrtxReavr
Think of them as an install target. . . most *nix utils require stuff under (s)bin, etc, lib. . .
-
polyex42
is /usr/home a common prefix on freebsd systems?
-
mason
polyex42: not any more
-
CrtxReavr
/, /usr, & /usr/local are all the same in that they have bin, sbin, lib, et al. sub-directories.
-
polyex42
is /home a common prefix?
-
CrtxReavr
/home would not be a prefix. . . it's the parent dir of user homedirs.
-
polyex42
is /tmp a prefix?
-
CrtxReavr
(Though some users build prefixes inside their homedirs.
-
CrtxReavr
Is there a /tmp/bin/ or /tmp/lib?
-
polyex42
ok i get it
-
polyex42
hmm
-
CrtxReavr
polyex42, ever build a program manually from a tarball?
-
polyex42
don't think so
-
CrtxReavr
hmm
-
polyex42
so there's 3 levels of environments, starting with / boot env for core bringup
-
CrtxReavr
Well, most *nix software is distributed as a .tar.gz file (less-so in the age of git).
-
CrtxReavr
And in that tarball is usually a "configure" script.
-
CrtxReavr
and if you run 'configure --help' you'll see a list of build options.
-
CrtxReavr
One of the very common options is the PREFIX.
-
CrtxReavr
Essentially the parent directory for it to be installed to once built.
-
polyex42
ok
-
polyex42
and the prefix has a few common subdirs like bin sbin and lib
-
CrtxReavr
Yes.
-
polyex42
it's like the mac version of how to package apps but inside out. instead of 1 single bundle, it's spread into common dirs
-
polyex42
at 3 levels of environment
-
polyex42
at 1 of*
-
polyex42
so the core OS itself is just programs like any others?
-
polyex42
like the very first .../bin? that runs
-
CorvetteZR1
hello. when do quarterly pkg mirrors get updated?
-
CrtxReavr
Quarterly.
-
CorvetteZR1
right, i mean any specific date? wondering if q1 2024 will be end of march or beggining of jan (next couple of days maybe?)
-
CrtxReavr
Look at the dates on the download sites.
-
polyex42
so why aren't the exact paths that are included in the boot env documented somewhere?
-
polyex42
unixwitch ^
-
CorvetteZR1
sddm/ui on one of my laptops is busted and i think newest versions of libs might fix it. wondering if i should wait a few days to get newest quarterly, or if that ship sailed, than just change to latest. i can wait a bit and prefer too, but if it was updated like last week, and this thing i still busted...then might as well change to latest, update and start troubleshooting if it's not in fact a
-
CorvetteZR1
lib version issue....
-
polyex42
ohh it's on the boot env wiki
-
polyex42
can you blow away EVERYTHING excluded from the boot env and still reboot the system into usable state?
-
CrtxReavr
Prolly depends on your definition of "usable."
-
polyex42
usable enough to be able to rebuild the system however you can
-
polyex42
pulling stuff over network, expanding into place
-
CrtxReavr
Well, to rebuild the system, you need things under /usr.
-
CorvetteZR1
ah, found this...i guess i'll try again in a week or two: "ports branched from main at the beginning of every January, April, July, and October"
-
CrtxReavr
sshd is in /usr, so if you have to access the system remotely. . .
-
polyex42
but according to the wiki, only /usr/home /usr/ports and /usr/src are excluded from BE, so /usr/bin and friends should STILL be there no?
-
polyex42
guess you're done?
-
polyex42
so why's it a mistake you said to move away from separate volumes?
-
CrtxReavr
Well. . . logs and the default location for database software go to /var
-
CrtxReavr
Different processes write to /tmp
-
CrtxReavr
You don't want those sort of things to fill your / volume.
-
polyex42
so why did freebsd core make the decision to squish them?
-
CrtxReavr
I think part of that was the promotion of ZFS.
-
polyex42
zfs can't be made to have the same behavior?
-
CrtxReavr
I mean, a responsible admin will make those separate volumes.
-
CrtxReavr
But I guess when they added ZFS support to the installer, they didn't want to also prompt for the creation of separate volumes for /tmp, /var, & /usr.
-
polyex42
so really, any root dir that grows over time should be on its own volume right?
-
CrtxReavr
Part of that may also be the cattle vs. pets virtualization movement.
-
CrtxReavr
Single purpose, disposable VMs.
-
polyex42
but you still want them to run right
-
polyex42
so how exactly does it protect a system to put /tmp /var and /usr on separate volumes? those fill up and then what, instead of what would happen if they weren't on different volumes?
-
CrtxReavr
Well, if /tmp is full, something can still log an error that /tmp is full.
-
CrtxReavr
But if theyr'e all the same volume.
-
CrtxReavr
Plus, if you have users on the system, do you want users to fill your / (and your /tmp & /var)?
-
polyex42
prolly not. that can cause a crash right?
-
polyex42
if nothing else the system is basically stuck
-
CrtxReavr
Crashes. .. or just for the system to become unusable.
-
polyex42
ya i'm back in your camp on separate volumes
-
polyex42
can't remember but does installer even let us make those when going the zfs route?
-
polyex42
so /tmp can be filled by random processes, /var can be filled with logs, but how can /usr be filled?
-
VVD
pkubaj, hi. scribus conficts with scribus-devel - I can create patch if u want
-
kenrap
polyex42: filled mostly with /usr/local content aka pkg. :P
-
VVD
polyex42, /usr/home/ :-o
-
polyex42
well it's /home now
-
polyex42
so i guess CrtxReavr we should put /home on its own volume too now since it's moved out of /usr?
-
Remilia
polyex42: re: your question about boot environments, you got some misleading information
-
Remilia
a BE is just / and everything under it that is *not* a filesystem mountpoint otherwise
-
Remilia
use `zfs list -o name,canmount,mountpoint` to see what is and is not under / but note that /usr by default is a special exception
-
Remilia
it has canmount=off and is therefore included in the BE
-
Remilia
essentially the dataset /zroot/usr is empty and used purely as a node for other datasets, including, by default, /usr/home, /usr/ports, /usr/src and /usr/obj
-
Remilia
therefore a boot environment includes the entire base system distribution (base.txz)
-
Remilia
(and some datasets in /var, like db, for example)
-
Remilia
polyex42: also generally see hier(7) and note that FreeBSD itself does not have a concept of 'prefix'; it is an autotools argument that tells where to install binaries/libraries
-
Remilia
the default on FreeBSD is /usr/local
-
pkubaj
VVD: ah, thanks, if you can please do :)
-
polyex42
oh wow
-
Remilia
polyex42: does it make sense to you now?
-
Remilia
BEs are very simple by design, and these canmount=off tricks help keeping it so
-
Remilia
also BEs are a ZFS only thing, and ZFS default in the installer is to have multiple datasets inside your pool
-
polyex42
it kinda does. kinda overwhelmed
-
polyex42
do you agree with having /tmp /var /usr /home in their own separate volumes in case they fill up?
-
Remilia
they are already in separate datasets, except /usr, and /home is a symlink to /usr/home
-
Remilia
polyex42: please note that there is nothing in /usr in the default layout besides the base system, because everything else is excluded by being a separate dataset
-
Remilia
there is no real reason to have multiple zpools
-
Remilia
polyex42: oh and also, you can tell ZFS to keep an amount of space reserved for a dataset
-
Remilia
polyex42: something like `zfs set reservation=16G zroot/ROOT` though I do not recall if this will affect datasets underneath
-
Remilia
oh it will
-
Remilia
> That is, if a quota is set on the tank/home dataset, the total amount of disk space used by tank/home and all of its descendents cannot exceed the quota. Similarly, if tank/home is given a reservation, tank/home and all of its descendents draw from that reservation. The amount of disk space used by a dataset and all of its descendents is reported by the used property.
-
Remilia
so the command I posted above will guarantee 16 GB of space shared between all BEs
-
Remilia
it does not limit space, just means that out of the entire pool size, 16 GB will always be guaranteed to that dataset, and other datasets will be unable to take that space
-
polyex42
so we can change it, but the default setup would let /tmp for example fill up the system's storage right?
-
Remilia
yes, but the base system does not need space to start and run
-
Remilia
it can boot and run off a read only dataset and quite a few systems administrators prefer to have the / read-only
-
polyex42
ehh
-
Remilia
polyex42: you can also `zfs set quota=16G zroot/tmp` to limit the size of the /tmp dataset
-
polyex42
but you're saying there's absolutely no risk of a filled up zfs causing a system to crash or not be able to reboot?
-
Remilia
of course there is some risk depending on what you are running
-
polyex42
am i wrong that it seems like the default zfs setup isn't as good as it could be if it prompted to set a few quotas on datasets that can grow?
-
Remilia
you can set, change, or remove reservations/quotas whenever you want
-
Remilia
it is not UFS, you are not cutting a slice into hard-sized partitions
-
polyex42
what do you think about having no swap?
-
Remilia
also re: /root, it is included in the BE but there are no issues with that because in most cases you have nothing in there except shell configuration files and the like
-
Remilia
and you can zfs create zroot/root any time you'd like
-
Remilia
polyex42: I prefer having swap because my machines only have 32 GB or less RAM
-
polyex42
do you have flash storage? i heard swap is bad to have if you got that
-
Remilia
and you can never know ahead whether something you run will fit or not, unless this is a lab-tested, static configuration
-
Remilia
I guess if your storage is a USB pen drive, actively swapping would be bad
-
Remilia
also bad if your storage is eMMC
-
Remilia
but if you are using eMMC you should have most everything read only
-
Remilia
you need to keep in mind that FreeBSD does not use swap until there really is no RAM to use
-
polyex42
nvme
-
polyex42
ssd
-
Remilia
why would swap be an issue then?
-
polyex42
i thought if swap was enabled and you got flash storage, it'll wear it out
-
Remilia
is that another urban legend?
-
Remilia
my Windows desktop has 18 GB of swap space and unlike FreeBSD, Windows does use it even when there is enough RAM
-
polyex42
well if you're swapping continuously that's tons of reads/writes over and over on the flash. they do wear out
-
Remilia
if you are swapping continuously, you are doing something wrong
-
Remilia
swap space is your fallback 'in case of emergency'
-
polyex42
you don't think ppl use swap as 'free ram booster'?
-
Remilia
that sounds weird
-
Remilia
why would you spend *more* money on something that is *slower* than extra RAM?
-
Remilia
(more when you consider running costs)
-
polyex42
if you get a cheap vps for $5 and you get 20GB disk but only 1GB ram, you run 1GB swap continuously so now you have 2/19
-
Remilia
if your normal workload requires swapping you need to add RAM
-
Remilia
because swapping on a VPS is a major performance hit
-
polyex42
so if swap is for emergency use, when is it enough? like eventually we run out of disk
-
polyex42
on a vps would you disable swap or keep it but small as the emergency backup?
-
Remilia
sorry, I do not understand your question
-
Remilia
if you have less than 8 GB RAM you generally need swap
-
polyex42
nvm i gotta think more
-
Remilia
unless you have fine-tuned your set-up to stay within the available RAM
-
polyex42
so the point of swap is not to use it, but to give yourself the capacity to use when it's needed AND to what, monitor it so you get alerted you need to add more ram?
-
Remilia
for example, my server has 32 GB RAM and I tuned my software so that there is 4 GB RAM usually left unused
-
Remilia
(and I have 32 GB swap space)
-
Remilia
polyex42: in my opinion, something like that
-
Remilia
but this applies to servers
-
polyex42
like what, what i said?
-
Remilia
yes
-
polyex42
what do you use to monitor swap use and alert?
-
Remilia
with servers, if your software configuration is static, you do not need swap
-
Remilia
but if you use it for various different things and install/uninstall stuff often, it is good to have
-
Remilia
I do not use anything specific, I have Prometheus+Grafana
-
polyex42
ok
-
Remilia
for a workstation though you always need swap
-
polyex42
always?
-
Remilia
because you might open Krita and load a 8 GB PNG file
-
Remilia
or maybe do some NLE
-
Remilia
you really do not want your window manager / DE to get OOM killed, do you
-
polyex42
i guess not
-
polyex42
but then you know you got a prob and just buy more ram no?
-
Demosthenex
Remilia: you know, rhel8 changed swap behavior, they are now aggressively swapping. their argument "everyone is on ssd now, so we can swap more often"
-
Demosthenex
i built a new server for a customer, which started swapping 30% nightly triggering alarms
-
polyex42
so they'd rather replace ssds more often than buy more ram i guess demos?
-
Demosthenex
yep, bizarre eh?
-
Remilia
polyex42: the thing with workstations is that workloads on them are irregular unlike with servers
-
polyex42
ya
-
polyex42
true Remilia
-
Demosthenex
ram doesn't wear out. but this whole "swapiness" thing is poorly documented... i just gave up and monitor a different statistic now
-
polyex42
which stat you monitor now?
-
Remilia
swapping for a task that goes above installed RAM once in a blue moon is fine
-
Demosthenex
well, i use SNMP for monitoring, and on leerniupoteringnux you can use hrStorageTable and the row for "Virtual Memory"
-
Remilia
btw Windows swaps actively, and I have an NVMe drive
-
Remilia
one that I got quite a while ago
-
entikan
I never really got swapping
-
entikan
what is it for, really?
-
bcarson
is anyone able to successfully build security/p5-Net-SSLeay on 14 + LibreSSL?
-
Remilia
polyex42 so I got this 970 PRO NVMe drive in July of 2018 and it has been my system boot drive + swap drive for the Windows desktop ever since
-
bcarson
there's an existing bug,
bugs.freebsd.org/bugzilla/show_bug.cgi?id=272553, but i can't seem to get it to work with any of the proposed solutions
-
VimDiesel
Title: Invalid Bug ID
-
Remilia
with active swapping
-
Remilia
its remaining lifespan is 95%
-
Remilia
so I guess swapping is Really Bad
-
polyex42
it really swaps huh?
-
Remilia
yeah it exhausted 5% of the lifespan already
-
polyex42
isn't 970 pro SSD not nvme?
-
Remilia
huh
-
bcarson
"2018" "already"
-
bcarson
hmm
-
bcarson
:)
-
Remilia
-
VimDiesel
Title: SSD 970 PRO NVMe M.2 512GB Memory & Storage - MZ-V7P512BW | Samsung US
-
bcarson
5% over 6 years is what, 120 years?
-
Remilia
'970 PRO NVMe® M.2 SSD 512GB'
-
Remilia
it's not
-
polyex42
huh ok
-
polyex42
is it shaped like a stick of ram, or a small HD? like 3.5"
-
polyex42
or i guess 2.5
-
Remilia
it is shaped like an m.2 2280
-
polyex42
ok a stick, it is nvme then
-
polyex42
ok sweet good to know it doesn't get destroyed by swapping
-
Remilia
the Samsung website does not know anything about non-NVMe 970 PRO
-
Remilia
or 970 in general
-
Remilia
870 is SATA though
-
Remilia
I think 9xx are NVMe and 8xx are SATA
-
polyex42
do you prefer shallow or deep BE's and why?
-
Remilia
I am going to leave this question unanswered because you can figure this out yourself
-
polyex42
huh?
-
Remilia
deep BEs include /usr/local
-
polyex42
like i can make my own opinion eventually but i wonder what yours is
-
polyex42
hmm
-
polyex42
so heavier to create new BE's i guess
-
Remilia
it is not about 'heavier'
-
polyex42
well it just uses more disk right?
-
Remilia
use deep BEs if you want to keep your entire package set with the BE
-
Remilia
note that in this case you really should also keep database files etc. inside the BE as well
-
polyex42
it's kinda like a thin vs thick jail
-
Remilia
you do not want to run an old version of, say, MariaDB with a datadir that was upgraded
-
polyex42
are shallow BE's even useful? because what if you rollback a bad freebsd-update, but your pkgs are still borked?
-
polyex42
ya exactly
-
Remilia
exactly what?
-
polyex42
mismatches in package versions and stuff
-
Remilia
shallow BEs are useful because they let you have a base system to fall back on if shit hits the fan
-
Remilia
and that tends to happen before you upgrade all packages
-
polyex42
ok so they're not really useful for knowing 'i can rollback my system to a known fully good state' it's more 'i can at least get back to a bootable state to pull data off' ?
-
Remilia
plus packages are built for every -RELEASE
-
Remilia
just reinstall them with the old BE
-
polyex42
so they're not really useful for knowing 'i can rollback my system to a known fully good state' it's more 'i can at least get back to a bootable state to pull data off' ?
-
jbo
Remilia, you're hinting at pkg upgrade -f ? :D
-
Ronis_BR
Hi all! Is there any update in FreeBSD 14 regarding WiFi support? I am looking if there is any advance in supporting the WiFi chip in the Raspberry Pi.
-
Remilia
Ronis_BR: anything like that would be in the release notes
-
Remilia
-
VimDiesel
Title: FreeBSD 14.0-RELEASE Release Notes | The FreeBSD Project
-
Remilia
-
VimDiesel
Title: arm/Raspberry Pi - FreeBSD Wiki
-
Remilia
Broadcom usually means you are out of luck
-
kenrap
yuripv: nice find regarding lang/hs-koka. It looks very interesting :)
-
skered
Anyone running 14 on i386? Any hiccups?
-
jbo
I haven't seen a non-for-fun i386 system in like 10 years :o
-
» skered has a global write samba geom mirror that has been moving since 2007.
-
skered
So make that 1.
-
craigger
I have 14 on a i386 (Intel Atom, 32 bit) netbook. Seems fine - performance is as expected for the hardware.
-
skered
I guess ports is really the only issue with i386 right now?
-
skered
14 i386 is 2nd tier right?
-
Remilia
FreeBSD maintains support for i386 (x86) as a Tier 2 architecture. It is not recommended for new installations.
-
Remilia
Support for this architecture will be removed in FreeBSD 15.0, so all users and administrators are strongly recommended to upgrade their installations to AMD64.
-
Remilia
yeah
-
jbo
I don't even test package builds on i386 anymore
-
craigger
It is. According to the 14.0R release notes, Ports will not include support for deprecated 32-bit platforms for FreeBSD 15.0 and later releases.
-
Remilia
I have an i386 machine but I do not think it can run anything above 7.0
-
Remilia
it is a Pentium 75 with 16 MB RAM
-
craigger
This netbook has a minimal set of installed packages, but everything did install fine when I set it up.
-
jbo
at least 2024 will be the year of the linux desktop </SCNR>
-
VVD
Pentium 1 can support 128MB RAM
-
Remilia
that board cannot support more than 32 iirc and finding SIMMs is another challenge
-
Remilia
also would need to find an SCSI HDD because of the BIOS's 4 GB ATA limit
-
VVD
SIMMs heh
-
VVD
I have 80486DX2-66@80MHz with 2x16MB SIMM 72pin
-
VVD
It's turned off for decade…
-
Remilia
I could probably dig out a PC9801
-
Remilia
VM
-
Remilia
with two 5.25" drives
-
Ronis_BR
Remilia: thanks!
-
kenrap
jbo: referring to that awkward freebsd forum post? :P
-
VVD
-
VimDiesel
Title: ⚙ D43276 print/scribus{,-devel}: add CONFLICTS_INSTALL each other
-
polyex42
does pkg upgrade create a new zfs boot env too or just freebsd-update?
-
vkarlsen
polyex42: pkg does not do that
-
polyex42
k ty
-
vkarlsen
Nor should it need to
-
polyex42
is freebsd-update the only part of freebsd that automatically creates boot envs?
-
vkarlsen
polyex42: I'm not aware of any other things doing that
-
polyex42
ty!
-
vkarlsen
polyex42: pkg should have no need to do it because pkgs shouldn't affect the ability to boot
-
polyex42
ok ya all the more reason shallow jails feel like the right choice
-
polyex42
there any way to choose which version of a pkg we want installed?
-
nimaje
not really, the repo only contains one version at a time
-
vkarlsen
polyex42: You can build it yourself, and in doing so, use an older version of the port
-
polyex42
would be better if we could pkg install nginx⊙6
-
Remilia
polyex42: the package repositories already take days to build and loads of storage to host
-
Remilia
though I understand why this might not seem like a problem to the end user
-
polyex42
that's the wrong angle. as an end user, it sucks
-
Remilia
I mean 'hosting every version of a package'
-
Remilia
not 'not hosting every version'
-
polyex42
if a pkg is upgraded in a round of pkg upgrade, but it's buggy, there's no way to roll back to the prior version that was working fine
-
Remilia
sure is
-
polyex42
just rebuild you say, sure, but for ppl who are strictly pkg binary basis, it's a big hassle to ask
-
polyex42
that's all im saying
-
Remilia
it is in /var/cache/pkg
-
polyex42
well maybe host latest 3 versions? just something other than latest or nothing
-
polyex42
the old pkg is in /var/cache/pkg?
-
Remilia
so you mean 'thrice the storage'
-
polyex42
ok then, latest 2 versions and twice the storage, but ya, that's what i mean
-
Remilia
have you looked at your /var/cache/pkg?
-
polyex42
oh shit
-
Remilia
what now
-
polyex42
so how would pkg foo be downgraded to 1 of the older versions in my cache?
-
polyex42
well my point still stands for new installs that don't have that
-
Remilia
pkg install /var/cache/pkg/foo-...?
-
polyex42
so do you uninstall the upgraded but buggy port then install the old 1 from cache?
-
Remilia
you can just use install
-
polyex42
s/port/pkg
-
Remilia
it will uninstall the currently installed package first
-
polyex42
whoa
-
polyex42
ok well that goes a long way
-
polyex42
how often, if ever, do you manually create a boot env?
-
polyex42
or do you just let freebsd-update do it automatically and that's it?
-
rtprio
lately i've just been letting freebsd-update do it