-
sponix2ipfw
wish I had my session history so I could see the start of this conversation
-
kevans
-
sponix2ipfw
thanks
-
sponix2ipfw
hopefully a web browser will finish compiling soon and I can catch up :P
-
SponiX
that is pretty interesting
-
bleb
trying to boot freebsd after installing it on a partition alongside debian
-
bleb
I tried Super Grub2 Disk and it said freebsd not detected
-
mason
bleb: UEFI?
-
rwp
ek, I asked a linux friend about the need for the bpool in linux and it is amazingly close to the reasons that have been discussed recently in that recent feature review. Anyway linux grub is only coded to support a subset of zfs features. The root rpool defaults to all features enabled and upgraded. The boot bpool is limited to a subset of features that grub supports.
-
kevans
yeah
-
rwp
ek, Seems like that would be a big footgun if the bpool were fully upgraded and grub didn't support some feature. That would render the system unbootable and not so easy to recover.
-
kevans
we'd love to not have to regularly use a bootpool setup if we can avoid it
-
rwp
Agreed!
-
mason
Compatibility properties are amazing.
-
ek
rwp: Wait, so the pools have different ZFS limitations and/or features? They can be out of sync?
-
mason
ek: You can have whatever features you want. You can't turn features off once they're on, is the trick.
-
mason
ek: So if GRUB doesn't support a feature you've turned on, GRUB can't read the pool in question.
-
ek
mason: I'm familiar with ZFS on FBSD. I'm talking about the rpool VS bpool in Linux that rwp had mentioned.
-
mason
ek: What did you think I was talking about?
-
mason
-
ek
mason: At first, I wasn't sure. :) My bad.
-
ek
I did do some testing with Ubuntu using root on ZFS and something that seemed strange to me was that a kernel update *appeared* to update ZFS snapshots as well. I haven't confirmed this yet. But, the way the kernel update reported things was strange, to say the least.
-
mason
ek: Do you mean they took a snapshot of the dataset containing root before installing the new kernel? That'd be nice. Been a number of years since I poked at Ubuntu.
-
rwp
ek, That's the way it was communicated to me and the way I understood it. Yes. Don't upgrade your bpool unless you know grub will boot the new features. Good to know.
-
ek
mason: Well, it's hard to say. I wasn't snapshotting the bpool, but I was snapshotting the rpool each day. When I decided to perform an update via apt, it looked like it update each daily snapshot as well. So, I dunno? I didn't look much more into it. But, it is just a VM I was using for testing. I need to look into it more, I supoose.
-
rwp
What did it look like that looked like a daily snapshot was updated? Because snapshots should be static, right?
-
ek
rwp: That's kinda scary, but good to know. Thanks!
-
mason
rwp: So, the reason why I mentioned compatibility was that there are GRUB compatibility files in /usr/share/zfs/compatibility.d with OpenZFS./
-
ek
rwp: You would think so, yes! That's why it was surprising. When the APT kernel install was performed, it reported over and over and over the install being done. Hadn't seen that before. But, when I counted the installs, it seemed to match the number of snaps I had.
-
rwp
I look at one Ubuntu root on zfs system with a bpool + rpool and zpool status does not nag to upgrade the pool to more features. As I would suspect if there were additional features available to upgrade to. So maybe this is a theoretical-only problem there? At this moment anyway.
-
mason
So if you specify one of those, you'll never accidentally turn on features the specified version of GRUB can't use. I see grub2, grub2-2.06, and grub2-2.12 at present. These appear to exist for just this sort of caution.
-
mason
grub2 appears to be identical to grub2-2.12, whereas grub2-2.06 lacks about eight feature flags.
-
rwp
ek, Total guess here but snapshots should be static. But snaps cloned to "fs" filesystems are live branches and writable. Could there be that many fs types there? "zfs list -t fs"
-
mason
Frankly if I were using a bootpool I'd pick a grub set and just stick with it.
-
mason
Anyway. G'night.
-
rwp
mason, How did you determine that feature set from grub? Oh, catch you later for it. Good night!
-
ek
rwp: I've never seen non-static snaps. I don't believe there are any live branches. I'll spin up the VM now and take a look.
-
mason
rwp: It's shipped with OpenZFS.
-
ek
mason: G'night!
-
mason
o/
-
rwp
The Ubuntu machine I peek in at has grub 2.12-1ubuntu7.3 installed. But no idea how to tell what feature flags it supports.
-
ek
Same. 2.12-1ubuntu7.3.
-
rwp
ek, zfs snapshots should be static read-only. But "zfs clone asnap321 zroot/somedatasetname" will turn it into a writable filesystem branch.
-
ek
I don't have any "fs" snapshots.
-
ek
rwp: Right. I have no cloned snaps.
-
rwp
Which of course is the basis for Boot Environments. Which are a totally awesome feature.
-
ek
VM is up and running. I don't see anything out of the ordinary. Still not sure.
-
duskmoss
is there a quick guide to contributing to freebsd ports? theres a port I would like to update, and also a new port I'm considering to replace a no longer maintained one.
-
ek
'zfs list -t "fs"' doesn't work since "fs" doesn't exist. But, I do have "filesystem" (obviously) but it just lists standard ZFS filesystems.
-
rwp
ek, I think by default you should have several cloned snapshots, because Boot Environments are set up automatically. See "bectl list". Each of those are cloned snapshots.
-
ek
-
ek
That's about as good as it gets. Quick guide? You can go through the "Quick Porting" part, I suppose. But, it isn't really that quick.
-
ek
Not many shortcuts when it comes to porting on FBSD (which is a good thing.) But, if you have issues or questions, a good place to start is #freebsd-ports here on Libera.
-
ek
rwp: bectl exists on Ubuntu?
-
rwp
I'll just mention in passing that there are no shell meta-characters in fs and it does not need to be quoted to protect it from shell interpretation. :-) The short name fs is a short name for the longer filesystem. "zfs list -t filesystem" is the long form.
-
duskmoss
it's mostly an overview to the social/communicative part I'm looking for. the code part is relatively simple to understand :P
-
rwp
Sorry, no, bectl does not exist on Ubuntu.
-
ek
rwp: Haha. Just checked. No bectl. :( I was hoping that was it.
-
rwp
Ew... I just crosschecked Ubuntu's zfs-list with FreeBSD and Ubuntu's lacks the fs shortcut there. But using the full "zfs list -t filesystem" does work to list live filesystem datasets there.
-
ek
duskmoss: That's fair. #freebsd-ports or ports⊙fo (mailing list) will be the place to go for anything *ports*
-
ek
Obviously, you're more than welcome to ask here. But, this is more of a general chat.
-
ek
rwp: Yeah. I wasn't just joking around. "zfs list -t fs" doesn't work. lol
-
duskmoss
:) thx
-
rwp
I was surprised when I tried it that it did not work there. Because that feature has been in FreeBSD since I have been using it. It's a fork in the implementations. And since they are using OpenZFS I hope that doesn't mean that it will eventually be lost in the convergence here too. (shrug)
-
ek
rwp: I hope not as well. I like the zfs command shortcuts. If I have to type "zfs list -t snapshot (instead of snap)" every time, I'll be lost.
-
rwp
Fortunately -t snap does seem to work there. Whew!
-
ek
It does.
-
ek
Still, though, why would it install the kernel updates to each filesystem? Why would rpool/USERDATA need a kernel update?
-
ek
I'll have to actually log the update next time. It just threw me off a bit.
-
ek
I did the update, kernel was apparently installed everywhere it possibly could be, and I rebooted (like a smart person.) Everything was fine so I just let it ride out.
-
ek
I'll pay more attention next time.
-
ek
This isn't even FBSD-related. I suppose we can move along to the next topic?
-
ek
... if there is one.
-
rwp
Just brainstorming but could the update-initramfs be updating the initramfs for each kernel that it has found? No idea. Just spitballing...
-
rwp
On the FreeBSD front I had fail2ban working. (Yes I know about blacklistd.) And now it is running but just never matching anything in any log file. I have poked at it a little but haven't tripped over the problem yet.
-
kevans
openzfs 2.3.0 seems to have shipped -t fs:
openzfs/zfs c346068
-
kevans
i'm surprised we hadn't upstreamed that before
-
rwp
It's a useful shorthand for the command line.
-
ek
rwp: Could be. But, I tend to only keep two kernels available. Last known good, and current. So, I dunno! It really took me by surprise when I saw it but had no idea what was happening. I'll pay closer attention next time and report.
-
kerneldove
how's 15 shaping up? on track for stable branch next week?
-
kerneldove
i'm seeing lots of "zone: pf states] pf states limit reached" messages. does that mean i need to adjust the states limit in pf.conf upward? and if so, how do i find out the default value so i know what to increase it from?
-
kerneldove
current entries of state table it's 15,866
-
kerneldove
what's weird is i don't see that message on a box with 77,355 current state entries, so why i am for this box? exact same config fwiw
-
kerneldove
ok looks like pfctl -sm shows hard limits and it's 100,000 for states. so why tf was 15k state entries causing pf states limit reached msg in log?
-
kerneldove
i increased all pf hard limits by 4x. the ones shown by pf -sm
-
kerneldove
what main things should i look at to see if i need to increase limits or otherwise performance tune? i checked memory and congestion in pfctl -si, i looked at netstat -m, what else? it's a server doing lots of traffic
-
kerneldove
udp mainly fwiw
-
CrtxReavr
kerneldove, does 'netstat -m' show your mbuf and mbuf clusters getting maxed out?
-
[tj]
anyone got an amd ai 300 series processor and want to send me acpidump output? (thj⊙fo)
-
tuaris
I like how most of the utilities/commands in FreeBSD base system are 'jail aware' (the '-j' flag). Built-in container support right out of the box. Unlike some other "operating systems" that aren't really operating systems.
-
tuaris
Is it possible to run an openVPN client from a jail?
-
bleb
trying to boot freebsd which I installed on a partition with linux, but atm I can only boot into linux
-
bleb
I was thinking of using efibootmgr to make an efi entry
-
bleb
linux, if I ls -l /boot/efi/EFI, there's a file called "freebsd" but it can't be read for some reason
-
bleb
ls -l shows d????????? ? ? ? ? ? freebsd
-
bleb
file freebsd prints "freebsd: cannot open 'freebsd' (Input/output error)
-
divlamir
Did you install it with ufs or zfs? GRUB is very limited in its support for zfs
-
bleb
I get the same thing with a file called "boot"
-
bleb
ufs
-
divlamir
tuaris: Been a long while since I used OpenVPN, but should be possible in a VNET jail, you should take care of some devfs rules too, unhide tun devices e.g.
-
tuaris
I'm seeing some search results say I need to do "sysctl security.jail.param.allow.tun=1". Is that on the host or in the jail.
-
divlamir
I'm not sure that you need the sysctls if you unhide tun interfaces in a devfs ruleset
-
tuaris
the devfs rules happen on the host in /etc/devfs.rules. There is no need to do anything in the jail.conf file? I want it to only apply to this one jail.
-
divlamir
Create a separate ruleset and apply it to just this one jail
-
tuaris
Oh, I see.... I create the rule like "[devfsrules_jail_tun=10]" and then reference it in jail.conf with "devfs_ruleset="devfsrules_jail_tun""
-
divlamir
devfs_ruleset=10, yeah
-
tuaris
I'll have to read up more on devfs.rules and understand the syntax. I have no idea what "[devfsrules_jail_tun=10]" means :)
-
divlamir
It's just a name and a number :)
-
tuaris
It can be any number/name?
-
divlamir
Any.. non-overlapping one
-
divlamir
Yeah, just a way to reference it
-
divlamir
Have a look at the man pages, and use the default rulsets as a reference
-
divlamir
The defaults in /etc/defaults/devfs.rules I mean
-
bleb
I found this thread
-
bleb
it suggests using this command to create a boot entry:
-
tuaris
hmm, it didn't like the "devfs_ruleset="devfsrules_jail_tun"" -> jail: /etc/jail.conf.d/vpn.conf line 3: }: syntax error"
-
bleb
efibootmgr -a -c -l /mnt/EFI/freebsd/loader.efi -L FreeBSD-11
-
divlamir
devfs_ruleset=10, use the number you gave it
-
tuaris
ahh
-
bleb
but I can't see a "loader.efi" under freebsd, because "freebsd" gives me an input/output error when I try to read it
-
bleb
ls EFI/freebsd -> ls: cannot access 'EFI/freebsd': Input/output error
-
bleb
does that mean it's corrupted for some reason, and I should try reinstalling?
-
divlamir
FreeBSD-11 ?! Are you copy/pasting some random commands?
-
bleb
I copied that from the thread that I linked
-
bleb
and pasted it into this channel
-
bleb
if I were to run the command I would write FreeBSD-14, but I haven't run it yet because there doesn't seem to be a "loader.efi" file
-
bleb
so I'm trying to find out what command I should run
-
mrfb
Hi, I have a macbook pro mid 2014 that I recently installed freebsd (I was running openbsd), but I cant make the touchpad work properly. Tried with atp and wsp drivers but with both the keyboard and touchpad stops working the moment I either start Xorg or moused.
-
tuaris
This is weird, according to the docs
man.freebsd.org/cgi/man.cgi?query=j…path=FreeBSD+14.3-RELEASE+and+Ports. This should work: "devfs_ruleset=10", but I keep getting a synrax error
-
tuaris
oh
-
divlamir
Paste your jail conf
-
tuaris
it needed a ";"
-
divlamir
yep, it does
-
bleb
I want to re-do my freebsd installation
-
bleb
I want to use an existing partition that I created a while ago
-
bleb
if I select the partition in the installer it says there's already a filesystem there and that I should run fsck
-
bleb
can I erase the filesystem without deleting the partition?
-
bleb
I don't know freebsd commands so I'm running dd if=/dev/zero of=/dev/sda4 from linux, but it's taking a while
-
bleb
feels like there should be a better way...
-
bleb
what...
-
bleb
even after the dd, the installer says "The chosen root partition has a prexisting filesystem. If it contains an existing system, please update it with freebsd-update instead of installing a new system on it. The partition can also be erased by pressing "No" and then deleting and recreating it. Are you sure you want to proceed?
-
bleb
why does freebsd thing the partition has a filesystem when I just zeroed it out?
-
bleb
then if I proceed it says Error mounting partition /mnt: mount: /dev/ada0p4: No such file or directory
-
bleb
so I guess I just can't install freebsd
-
tuaris
-
kevans
tuaris: why not `dev tun0` instead of `dev tun`?
-
tuaris
Is that what I should change in the openvpn config file? I was just given that config file, it's unmodified.
-
kevans
istr that'd probably work, yeah
-
tuaris
Slightly diffrent error message: Cannot open TUN/TAP dev /dev/tun0: No such file or directory (errno=2)
-
kevans
it might be the case that yu need to pre-create the tun0 outside of the jail
-
kevans
otherwise you're relying on devfs cloning, iirc
-
tuaris
-
tuaris
I'm not sure I know the addresses, hmm
-
mzar
let me recommend "dev tun10"
-
mzar
since dev tun0 can show up in the meantime and break things
-
kevans
tuaris: i don't believe you need to go that far
-
kevans
i believe you can just ifconfig tunfoo create in prestart and openvpn will do the other configurtion?
-
kevans
configuration
-
kevans
oh, maybe i'm thinking of vnet jails specifically, which this isn't
-
mzar
tuaris: add path 'bpf*' unhide
-
mzar
add path net unhide
-
mzar
add path netmap unhide
-
mzar
add path 'net/*' unhide
-
mzar
you can skip netmap and bpf if you don't need it
-
mzar
btw, netmap works just fine in jails
-
mzar
tuaris: in non-vnet jails you'll probably need this one too:
reviews.freebsd.org/D49843?id=153694
-
mzar
and it wasn't backported to 14
-
mzar
if you have 15, then kldload if_ovpn on the host, extend devfs ruleset, allow routing according to D49843 and you should be able to run OpneVPN in non-vnet jail
-
bleb
# x=$((08 / 3 + 1))
-
bleb
-/bin/sh: arithmetic expression: expecting EOF: "08 / 3 + 1"
-
bleb
# x=$((8 / 3 + 1))
-
bleb
works
-
bleb
a bug?
-
bleb
bash says "value too great for base"
-
bleb
I guess 0 at the start of a number means the next digit is octal?
-
bleb
auto-pkg-branch has a bug related to this:
-
bleb
quarter=$(($month / 3) + 1)
-
bleb
also
-
bleb
quarter=$((($month - 1) / 3 + 1))
-
bleb
causes problems if $month is 08 or 09
-
bleb
bug only appears two months of the year!
-
kerneldove
CrtxReavr, what do you mean by maxed out? the "denied" lines?
-
CrtxReavr
I mean like current hitting max.
-
CrtxReavr
Or yeah. . . allocation errors.
-
kerneldove
CrtxReavr, there are x/y/z requests for mbufs denied yea. dunno what lines correlate to "allocation errors" tho
-
kerneldove
how can i tell if max is being hit
-
CrtxReavr
kerneldove, you use bash?
-
kerneldove
ya
-
CrtxReavr
Type this: alias tb='ncat termbin.com 9999'
-
CrtxReavr
Then: netstat -m | tb
-
CrtxReavr
Then paste the URL it prints.
-
CrtxReavr
This is just a quick & dirty way to pipe to a pastebin site.
-
kerneldove
said ncat wasn't installed so i tried pkg install ncat and it said no pkg matching ncat found
-
CrtxReavr
Oh, change it to nc
-
CrtxReavr
silly OS differences
-
kerneldove
-
CrtxReavr
I dont' see 'mbbufs denied'
-
CrtxReavr
Sure you didnt mean delayed?
-
CrtxReavr
er - now I see it - sorry.
-
kerneldove
lol
-
CrtxReavr
do the same for netstat -i
-
kerneldove
-
CrtxReavr
There anything in your logs?
-
kerneldove
like /var/log/messages?
-
CrtxReavr
Yeah, if they cover the time period where you encountered this.
-
kerneldove
lots of "Limiting icmp unreach response from x to y pack/sec"
-
CrtxReavr
grep igb1 /var/run/dmesg.boot
-
kerneldove
-
CrtxReavr
pciconf -lv | grep -B3 -A1 network
-
kerneldove
-
divlamir
What's that funny MAC address: igb1: Ethernet address: a:f:6:f:0:5
-
kerneldove
i just took 1 char out of each segment for privacy
-
kerneldove
ill mention that if i do it again
-
CrtxReavr
I'm short on ideas.
-
kerneldove
so no obvious problems?
-
CrtxReavr
The last time I saw mbufs runnig, was back in the 3.x days when I jammed 13 NICs into a box and was using it as a router, while we waited for the right supervisor blades to show up for a Cat-6500E.
-
CrtxReavr
And I was able to figure that out and fix it. . .
-
CrtxReavr
Though, the OS has since changed to allocate mbufs automatically.
-
kerneldove
oh it does?
-
CrtxReavr
Supposed to.
-
kerneldove
so maybe the denials caused more to be allocated so prob solved?
-
CrtxReavr
No. . . I'd think the auto-allocation should have stopped it from happening in the first place
-
CrtxReavr
You encounter other symptoms?
-
kerneldove
not that i can think of
-
kerneldove
where's it documented that mbufs are automatically increased?
-
divlamir
kern.ipc.nmbufs: 12823340
-
divlamir
With 64k total, you are far from the limit
-
kerneldove
on my system the sysctl for that is 13022432
-
tuaris
mzar: ah, so open vpn on non vnet jails is only supported in 15. Interesting.
-
kerneldove
divlamir, if i'm far from limit why were there denieds?