-
manfromafar
welp looks like I get to shelve freebsd a nfs server and go back to linux. Shame wanted to show off bectl as well, but can't get nfsv4 freebsd server to talk correctly to a nfsv4 linux client while passing uid's back and forth
-
mason
manfromafar: Interesting. I use it here and it seems to not have any issues.
-
mason
NFS 4.2
-
manfromafar
are you doing sys or krb
-
mason
manfromafar: sys
-
mason
manfromafar: Are you running nfsuserd on the FreeBSD side?
-
manfromafar
yup nfsuserd is setup I even forced the domain to match on linux in idmapd.conf
-
manfromafar
hoping that would fix it
-
manfromafar
but no luck freebsd appears to just map it out to nobody even though it passes the id's to the client correctly.
-
mason
manfromafar: I've got to bail for dinner soon, but I'd be curious knowing what misbehaviour you're seeing out of it.
-
mason
hrm
-
manfromafar
ls -l shows the proper uid but the user with that uid can't access the share or anybody for that matter
-
mason
I'm not doing anything special here, and UIDs are honored.
-
mason
oh, hm, hm
-
RoyalYork
When fine tuning jails, do we 'sysctl security.jail.allow_raw_sockets = 1" in the host or the guest to allow for the ability to ping
-
mason
manfromafar: is it catching the wrong line in exports, and being forced read-only because of it?
-
mason
manfromafar: And do you have your V4 root set in exports?
-
manfromafar
yup went with only have a v4 line to adding a v3 line as well same behaviour
-
mason
hrm hrm
-
manfromafar
linux will mount the share
-
manfromafar
then give input/output error when trying to access it
-
manfromafar
I might try with a freebsd client to see if anything changes
-
manfromafar
it's also a v4 only server
-
mason
manfromafar: sending a HUP to mountd might be useful. I think I've seen that issue with new shares
-
manfromafar
oh I've restarted mountd contantly
-
mason
manfromafar: Yeah, same here. V4 only, and in this case there are only Linux clients.
-
manfromafar
every change I restart nfs/mountd just to be sure
-
mason
manfromafar: Maybe worth grabbing a packet capture to make sure it's sending what you expect, in terms of UID.
-
manfromafar
the annoying thing is that linux to linux works out of the box
-
mason
I've seen this happen, but it goes away when I force the server to think about what it's done. :P
-
mason
Linux has exportfs which takes some guesswork out of it.
-
mason
Anyway, I'll be back. This works here. (I should note, FreeBSD 13.1 on the server side, Debian Bullseye on most of the client sides.)
-
mason
So you're not trying to do something that's doomed to failure anyway.
-
mason
bbiab
-
V_PauAmma_V
That sysctl is deprecated, so I'd use a jail.conf parameter instead.
-
V_PauAmma_V
Er, that was for RoyalYork.
-
cedb
are there tools to help resolve deps when trying to build statically? i have a base image for work that needs curl but like nothing else (it doesnt have a pkg manager for "security reaons" (more hype than anything it seems))
-
V_PauAmma_V
On a host where curl is installed, "pkg info -d curl | grep -v :" will list packages it depends on to run. You then have to apply that recursively.
-
cedb
right thanks i guess i was mostly asking about the recursive part since that can turn a bit hairy
-
V_PauAmma_V
Not that jump out to me. I'd use perl to expand that list, because that's what I know. Not sure offhand whether awk can do it.
-
V_PauAmma_V
Or you could install /usr/ports and use "make -C /usr/ports/ftp/curl run-depends-list".
-
RoyalYork
V_PauAmma_V, thanks for the tidbit about putting it in jail.conf. So then it's obviously on the host side (thumbs up)
-
crb_
any ever use makes?
-
crb_
sorry anyone ever use makefs?
-
ixmpp
makefs?
-
ixmpp
oh, good, that's not what i thought it was
-
kevans
i've used it briefly in the past, but mostly just as part of the build system outside of that brief usage
-
nmz-
how to set up edit.rc so ctrl+backspace actually erases the previous word?
-
rtprio
what is edit.rc
-
origintopleft
I just installed FreeBSD in a VM (wanted to try it out before committing to putting it on any bare metal), and for the most part I've grokked the basic desktop setup, except for one thing: How the heck do I set up an X display manager?
-
origintopleft
I've been trying to Google it for a while, but Google pretty consistently has been giving me terrible results for years and I haven't gone search engine shopping since Altavista died. In this case, Google is assuming I already know the basics of configuring a display manager (I do not, at least not within FreeBSD) and is only showing me results comparing display managers to each other.
-
cedb
origintopleft: what is the problem youre having exactly?
-
cedb
i just did (pseudo code) "sudo pkg install xorg i3 nvidia" and made and xinit file, loaded the graphics driver and launched X
-
origintopleft
cedb: I ended up remembering that post-install, pkg tried to tell me something about my display manager of choice, so I searched for how to get that message to come back instead (`pkg info -D ${DISPLAY_MANAGER}`)
-
origintopleft
cedb: the solution was to modify /etc/gettytab and /etc/ttys
-
cedb
people are gonna need more info than "google sucks" to help, such as graphics card/driver, hypervisor used
-
origintopleft
cedb: the original problem was "I wanted a display manager to present a graphical login screen, with pictures and things, and I wasn't sure how to configure that"
-
cedb
configuring X is the same as on linux, the only difference is that its usually mostly done for you automagically there whereas on freebsd you have to write one, maybe two files
-
cedb
i mean all i had to do was a 'Section "Device"\n\t"Driver "nvidia"\n\tIdentifier "Device0"\nEndSection entry in /etc/X11/xorg.conf
-
sfox
Hello
-
sfox
one of my freebsd 13.1 servers had it's zpool filled to 96% CAP to the point it couldn't write files to anymore
-
sfox
i sshed into it and destroyed a zfs dataset recurvisly that had a obcene number of snapshots causing most of the pool usage
-
sfox
now I can no longer SSH into the host
-
sfox
it's been several hours after running the zfs destroy command that the server has been in this state. I tried logging into the serial console instead of ssh and while it accepted my username and password, even printing a lastlogin date and location, it freezes after printing lastlog
-
sfox
over the serial console
-
origintopleft
cedb: Okay, you're still not quite understanding what I'm trying to say. That's understandable; I think I've developed a neurological condition recently that's causing me to lose my grasp of sensible English sentences.
-
origintopleft
cedb: it works now, so let me send you a screenshot instead
-
origintopleft
-
sfox
should I leave the freebsd 13.1 host to continue trying to destroy the datasets overnight? Or at what point should I give up on that. What else should I try?
-
parv
sfox, Seems the host is busy deleting old snapshots.
-
origintopleft
I know ly is a poor example of an X display manager, given that it's TUI based, but that was the idea I meant.
-
sfox
parv, how long should it take to delete only ~400G of zfs datasets on completely 100% intel solid state storage?
-
parv
sfox, How old, many, big are|were the snapshots?
-
cedb
oh lmao, tui X, hmm okay yeah thats pretty edgy case you got there m8
-
sfox
there's 2 500GB ssds on the server setup in a zfs 2-way mirror
-
parv
sfox, If there had been lots of snapshots may take a while. Leave it for a day
-
origintopleft
cedb: The question would likely have been the same if I had chosen sddm, or gdm
-
cedb
origintopleft: oh no sorry thats the display manager thing
-
origintopleft
cedb: or if you prefer a more cursed option, "if I ported winlogon to BSD somehow"
-
sfox
there's the operating system and the rest of the the zpool is filled with iocage snapshots
-
cedb
origintopleft: now now no need to be crass
-
origintopleft
cedb: I don't understand how I'm being crass.
-
cedb
id ask why the "graphical" login hassle and not just startx but sure
-
cedb
oh i just meant like mentionning windows :)
-
sfox
I've been streaming the iocage dataset to a hot-standby server in case something were to ever happen to the primary iocage server, and it looks like I forget to implement something to clean out the old snapshots on the standby serever
-
origintopleft
oh :V
-
origintopleft
I did say it was a cursed option
-
origintopleft
cedb: as for why "graphical" login, mostly a preferred creature comfort more than anything else
-
sfox
parv, ok so it's normal for it to take a day to do that. Do you think I've damaged the zpool in any way? when i ran a zpool list it said it had over 90% fragmentation
-
sfox
and if it is damaged any way to recover it without having to reinstall the os
-
cedb
i mean i guess all ports welcome, but if you stop maintaining and theres a mailing list that asks people to recruit theres probably gonna be a bit of head scratching
-
cedb
sfox: im not a zfs pro but cant you just add a device, even with snapshots if you reached this level of cap might be time to upgrade no
-
parv
sfox, A year or 2 old (2-4) snapshots in 30-100MiB in sizes for ~40 TiB dataset took noticeably long (did not time; perhaps 15-20 minute) on a 13.1-RELEASE host
-
sfox
cedb I don't actually need more space i just forgot to implementent garbage collection in the backup script
-
sfox
that's why it's filled
-
cedb
right
-
cedb
for my own education isnt a big point of zfs/btrfs to have "subvolumes" (recently switched from linux sorry bad terminlogy) to enforce quotas and so forth so this doenst happen
-
sfox
yeah
-
sfox
but i'm not sure quotas work for zfs recv
-
cedb
interesting
-
» cedb makes note to self
-
parv
sfox, Earlier you wrote "destroyed a zfs dataset recurvisly" -- does that mean you had started destruction of the dataset itself along with snapshots?
-
sfox
if they do i'll have to learn from my mistake and setup quotas so this can't happen again
-
sfox
parv yes
-
sfox
since this is a hot-staby server and all it normally does is sit there zfs-recving snapshots of the iocage dataset from the primary server and zfs list -t snapshot was taking too long i just zfs destroy -r zroot/iocage
-
sfox
I figured i'd just re-create the data from the primary server when the filesystem isn't full anymore
-
parv
sfox, So that dataset is expendable. Could have done: zfs list -H -o name -tsnap -r <dataset> | xargs -n 1 zfs destroy &
-
sfox
doing that wouldn't have frozen the entire OS for a day?
-
sfox
i do wonder why it could possible be taking that long. isn't only 500G of solid state storage
-
parv
It would take at least just as long as: zfs destroy -r <dataset> as that still would need to delete the snapshots
-
sfox
one could traverse the entire disk in that time
-
sfox
i'm glad i have a backup server and i'm not having to deal with any downtime because of this
-
cedb
whats even preventing you from logging in, is it that the fs is full or the command is hoarding it?
-
parv
OTOH, forget about "zfs-destroy(1)"; "zpool-labelclear(8)" to clear ZFS metadata & use "gpart(8)" & "dd(1)" to clear the partition data
-
sfox
cedb, after running zfs destroy -r zroot/iocage the system become unresponsive
-
sfox
like it's partially hung or something
-
sfox
FreeBSD/amd64 (node4) (ttyu0)
-
sfox
login: root
-
sfox
Password:
-
sfox
Last login: Fri Mar 31 12:44:47 from viridi.lan
-
sfox
won't open a shell just hangs
-
parv
sfox, How often were the snapshots created & when did that start?
-
sfox
every 15 minutes
-
sfox
for the last couple of months
-
parv
O! 129_600_0!
-
laidback_01
any of you use multipath drives with ZFS? I've got a bit of surplus gear and have been playing with it. Active/Active is just nuts fast compared to Active/Passive when using bonnie++ ... I'm concerned though... is there a downside to Active/Active? I don't see any glaring warnings
-
sfox
laidback_01, what are you talking about?
-
laidback_01
I have a server with dual SAS controllers, and they both connect to 24 individual drives. makes it look like I have 48 drives, but it's twin paths to each drive via the backplane
-
morsing
laidback_01: Active/active should be pretty normal, more so than active/passive, so why not?
-
laidback_01
anyway, using gmultipath I'm getting excellen results with Active/Active vs Active/Passive. I like that, but was concerned about applications like Postgresql, etc.
-
morsing
laidback_01: How would applications know? Maybe I'm completely misunderstanding your setup.
-
laidback_01
it does mention this in the manpage: "closely following the original write request order if the layer above needs it for data consistency (not waiting for requisite write completion before sending dependent write)" And so I immediately thought of database ACID requirements.
-
laidback_01
they write that when talking about why you may want Active/Passive instead of Active/Active or Active/Read
-
laidback_01
but that's not a glarding "Don't do this warning" and my google searches keep bringing me to TrueNAS pages (this is an older FreeNAS certified box with that hardware in it); there's just not as much about it on google as I'd hoped for. What this makes me think: This is such proven tech, that problems rarely come up
-
laidback_01
at least that's what I hope. So I'm asking here in case that's not a valid hope
-
morsing
Weird, but I've never used multipathing on FreeBSDs. On other OSes, we always set active/active though.
-
laidback_01
okay, it's nice and fast, but it's just 24 4Tib spinners split into 3 groups of 8drive raidz3 vdevs. I was hoping for earth shattering performance, and it's pretty good, but then I ran the same bonnie++ test on a mirrored pair of crucial consumer SSDs... and got better results. not by much, but... bummer. main difference is 62T vs 400G so I'll stick with the array. lol
-
msiism
Hm… /usr/local/bin is already being used for a lot of stuff on FreeBSD. Is there another directory where I could keep my in-house scripts?
-
msiism
I mean standard directory.
-
msiism
On Linux, I use /usr/local/bin.
-
yuripv
~/bin?
-
msiism
I'd like to have them available system-wide.
-
debdrup
The local prefix, according to hier(7), is meant for things that're local to a given installation.
-
msiism
Yeah, just read about it.
-
debdrup
I don't see why this means scripts can't be placed there.
-
msiism
Okay, fait point.
-
msiism
s/fait/fair/
-
msiism
I just thought it would be wise to "managed" software apart from "unmanaged" software.
-
debdrup
There's a fair number of scripts in the base system that appear in the non-local usrbin, for example man(1).
-
debdrup
(Yes, man(1) on the BSDs is just a script)
-
debdrup
msiism: the distinction is between base system and third party
-
msiism
Yeah, for FreeBSD itself. But I'd actually like to distinguish a bit further.
-
debdrup
Then I'm not sure I understand the distinction you're making.
-
msiism
On Linux, I put third-party software into /opt/, and my own stuff into /usr/local/bin.
-
debdrup
hier(7) isn't perscriptive, it's only descriptive.
-
nimaje
managed by pkg and not managed by pkg third-party stuff
-
msiism
Yeah, kind of that.
-
msiism
debdrup: I see.
-
debdrup
I'm not sure it's up to FreeBSD to dictate how you do that :)
-
debdrup
To me it's never made sense to distinguish between them, but you're welcome to.
-
msiism
Okay, I'll meditate over this for a bit.
-
debdrup
I wouldn't necessarily follow what Linux does with /opt, because there's nuances to that in so far as it has to do with ZFS boot environments, if you're making use of those (or planning to, in the future).
-
debdrup
/usr/local/mgd/ might be an option, since that inherits the properties of /usr/local/ with respect to ZFS boot environments.
-
msiism
Okay, interesting. I'm using ZFS already.
-
debdrup
bectl is the tool for boot environments.
-
debdrup
bectl(8) to be specific.
-
sfox
13.2 released?
-
sfox
hmm
-
sfox
must be important
-
loose_chainsaw
if i have a second disk which i have a ufs partition on which is seperate to my main zfs disks, if i add it to fstab and do a mount -a it all works fine until i reboot and then i end up in single user mode. Do I need a specific module loaded in loader.conf for ada devices?
-
meena
-
VimDiesel
Title: FreeBSD 13.2 Release Process | The FreeBSD Project
-
meena
sfox: one day left to test RC6 and report release stopping bugs
-
sfox
bugs!
-
sfox
grrrrr
-
meena
loose_chainsaw: why do you end up in single user mode? usually the boot process should tell you
-
loose_chainsaw
I cant remember the exact message
-
loose_chainsaw
Was wondering why it works if I do mount -a
-
loose_chainsaw
but doesnt work on start up
-
loose_chainsaw
i have a directory in my home directory which i want it to map a ufs partition to
-
loose_chainsaw
would i be able to see the error in the logs
-
loose_chainsaw
if so I can share it
-
meena
-
VimDiesel
Title: 270667 – zfs: size 0 files in /usr/local/etc after pkg upgrade -f after base 2a58b312b62f
-
meena
loose_chainsaw: I reckon the problem is the ordering
-
meena
fstab might be happening before zfs
-
loose_chainsaw
is there a way to prevent that
-
loose_chainsaw
I have it as the last entry in the fstab
-
meena
loose_chainsaw: you could try adding the "late" option and see if that fixes it
-
loose_chainsaw
cheers
-
loose_chainsaw
ill investigate that
-
parv
meena, Thanks for the ZFS bug URL
-
parv
Say is there some write up about ssh or rsync when 2 computers are connected directly via a patch cable?
-
parv
s/about/& using/
-
otis
do you expect any differences than when those 2 computers were connected via switch(es)?
-
parv
What do you mean?
-
parv
I am asking wrt if I would need to set any particular IP addresses or netmask.
-
parv
... or fiddle with firewall|routing
-
otis
ah. no, you don't need. but i'd set an ip from a subnet that is not colliding with the rest of the infrastructure, if any.
-
parv
Ok, thank you.
-
otis
if that cable is the only connection those boxes have, then it does not matter
-
otis
you only need to make sure that the boxes are "network-wise visible" to each other.
-
parv
Yeah that cable would be the only connection
-
otis
you can set 192.168.255.1/24 on one, 192.168.255.2/24 on the other
-
otis
for example.
-
parv
Right, thanks
-
parv
Situation is I want to set up a small 'puter as a router. All I have are laptops; do not have space for ~22-24 in monitor to connect that small 'puter to do the set up
-
parv
Needless to say could not find ~16-19 in monitor locally (shipping is ~US$100)
-
meena
-
VimDiesel
Title: 270668 – ssh logons via public key fail after target upgraded to FreeBSD-12.4-p2
-
gzar
is there a way to flush the ARP cache ?
-
vortexx
gzar: arp -d -a ?
-
meena
-
VimDiesel
Title: arp(8)
-
gzar
thanks, sorry im kind of in a hurry and didnt get many search results that just mention this
-
sedzcat
Will HP Chromebook 11A G6 AMD A4-9120C run with FreeBSD?
-
batuhan
hello good folks, I am trying to install/boot freebsd for the first time on my laptop (thinkpad t14s gen3/AMD 6850U), and the boot gets "stuck" at `acpi_acad0 <AC Adapter> on acpi0`; does that sound familiar with anybody -or should I just give up on installing it-? (I've tried 13.1, 13.2 and 14.0 memstick releases, updated bios to the latest version, tried `hw.pci.mcfg=0` as it was a solution for a "similar" problem being
-
batuhan
discussed in the forum a while back)
-
thorre
Unifi v7 software broke after the quarterly (?) patches. Mongodb gets corrupted and I am not able to repair the database.
-
thorre
Not a biggie but the upgrade procedure failed a few weeks ago as well.
-
vortexx
sedzcat: have a look if there's admesg for it here:
dmesgd.nycbug.org/index.cgi
-
sedzcat
vortexx thanks but didn't find the laptop's dmesg there
-
vortexx
sedzcat: that just means no one who uses that db has tried it. Your laptop probably works, just check if the wifi card is supported
-
manfromafar
oh that's dumb, you can't have only a V4 line in exports
-
sedzcat
vortexx The wifi card is Qualcomm Wireless-AC 802.11a/b/g/n/ac
-
vortexx
yeah that's not precise enough, pciconf -l should give you a better indication if it's been picked up by a driver, it should start with an i
-
manfromafar
man that is weird and feels very buggy.
pastestore.tk/raw/lezoxaquko you would assume if your building a v4 only server you'd want v4 only lines but apparently that doens't work
-
meena
batuhan: there's no panic / back trace / etc on 14? it just gets stuck?
-
batuhan
Nothing, just hangs at that stage
-
manfromafar
and since v4 doesn't take maproot you can't squash root. Very odd
-
batuhan
meena: with the verbose boot, the last line before hanging is `AcpiOsExecute: task queue not started`
-
meena
can you submit that as bug report?
-
batuhan
Will do, thank you for your time
-
elgrande
$ apropos echo
-
manfromafar
ooooh thats so dumb, freebsd really should steal the crossmnt option instead of forcing you to export every mountpoint under a export
-
mason
manfromafar: Did you get things running?
-
mason
manfromafar: Was it an issue with a nested mount not being explicitly exported?
-
manfromafar
yes/no, freebsd requires a v3 and v4 line to do the exports, but v4 can't crossmount even though the man page says it can
-
manfromafar
so freebsd is a non starter as I'm not micro managing the exports file when linux will just let me export the root
-
mason
From exports(5): All ZFS file systems in the subtree below the NFSv4 tree root must be exported.
-
mason
I've always made it explicit, so it's just not an issue I've encountered.
-
manfromafar
NFSv4 does not use the mount protocol and does permit clients to cross server mount point boundarie
-
meena
manfromafar: how hard is it to generate that exports file?
-
manfromafar
1+N
-
manfromafar
aka not worth my time when another OS will do it for me
-
mason
manfromafar: How about if ZFS does it export itself? I've never let ZFS control exports, but it's a thing.
-
manfromafar
the only reason I was looking at freebsd for this was some of the differences in how memory is handled in regards to mountpoint management
-
manfromafar
I know its a thing and its trash
-
manfromafar
that is unless your on slowlaris
-
mason
This suggests that it should do what you're asking: All ZFS file systems in the subtree below the NFSv4 tree root must be exported. NFSv4 does not use the mount protocol and does permit clients to cross server mount point boundaries, although not all clients are capable of crossing the mount points.
-
mason
I'm not sure how the client figures into it there honestly.
-
mason
...if NFSv4 is presenting a unified space.
-
manfromafar
🤷 in theory the client should just see it as another directory in the tree
-
manfromafar
but that's just the 1000ft glance
-
manfromafar
and I know it works since if I add the explicit export it works
-
nmz-
rtprio: editrc is freebsds readline, apparently if I want ctrl+backspace to delete the previous word, I have to use that instead of inputrc
-
nmz-
honestly though, why can't terminals use ctrl to send something else. like ctrl+shift is what is ctrl now, and ctrl sends some other character
-
laidback_01
we've done a comparison in our hospital. VmWare as the client, TrueNAS Core (FreeBSD) vs TrueNAS Scale (Linux). we are using NFS v4. The array is a striped raidz2 - 12 12T drives per each vdev. Okay, we have one of those servers with two headnoded, but backplane common to both, so for ths test, we used only one headnode, and disabled the failover.
-
laidback_01
anyway, we were just using bonnie++ back then too, but it was from the VmWare clients - we have 4 VmWare headnodes. Oh, everything is on a 10Gbit network. the storage system has 4 10G nics in a bond that the mikrotik swiches support. I can't recall if this was LACP or what now. the VmWare headnodes each have their own NFS mount "Primarily VmWare1", "Primarily VmWare2" and so on
-
laidback_01
anyway, the point of this: we would fire up 5 clients on each node, run bonnie++ on everynode via an NTP timed cron, so they hit at the same time.
-
meena
laidback_01: and what was the result?
-
laidback_01
Performance was notably different, I don't have the results at hand - I moved on from the job, but we put in the TrueNAS Core - this was a bit ago, 13.1 had just come out, and we upgraded to that several months later. I recall everyone lifting their eyebrows, we all thought the linux based NFS server was going to dominate. the Scale GUI is easier for the windows guys to understand, so they wanted that. but... function over form. Core (FreeBSD)
-
laidback_01
was faster, and seemed more stable or... less surge prone? something was different for sure. Now, for use not using ZFS was a non-starter, so no, we didn't compare to ext4 or btrs. just straight ZFS (used the same array for both setups),
-
manfromafar
OH GAWD. I just realized. Since freebsd nfs can't do crossmnts I couldn't even use it if I manually exported everything anyways. We use the .zfs folder to allow users to restore their own backups and with freebsd unable to handle dynamic mounts we could have to constantly do exports for every snapshot
-
manfromafar
💀
-
laidback_01
anyway, I didn't mean to write a treatise. if you have time - take a look at how TrueNAS core is handling NFSv4. I think they are doing what you expect. we for a while setup NFS exports per machine (1..5T each VM), but eventually got tired of creating those in the GUI. we then created exports by group or idea - All the Windows 2016 servers in this one, Client machiens in that one, etc. Then we went back to 4 total exports "primarily node 1"...
-
laidback_01
"primarily node 4" and that worked just fine. I have a feeling I'm not doing things the same as you or not using NFS in the same manner, so I probably never needed the auto exports feature.
-
laidback_01
would auto exports dynamically create/export an NFS mount as required?
-
manfromafar
freenas is a nice small nas setup but they mostly just expose the freebsd settings in the gui
-
manfromafar
does truenas have auto exports haven't heard about that
-
manfromafar
I assume yours is working as your not creating nested datasets only one parent datasets then just normal folders underneath
-
laidback_01
that is accurate. no nested datasets
-
manfromafar
that is the key difference we have tons of nesting to separate out things. The biggest is just home dirs. Each user gets a home dataset which needs to be exported
-
laidback_01
the hidden joy I receved from this was the windows admin built up one of those Dell C1700 4 node chassis systems. I can't recall how many drives or anything, and they put windows server on it, hyperv and used it for windows machines. they work well enough - a bit slow at tiems. but reboot. wow, reboot that system only at 1am, expect it to be back up by 3am. the VmWare stack, even in sequence HN1..HN4 could be all shutdown in about 15 minutes,
-
laidback_01
and up in about 20.
-
laidback_01
I don't envy your posistion there. sounds like a college campus or something. too bad you have to do that kind of nesting. probably the only way to solve your issue.
-
manfromafar
technically it could all just be folders BUT I like having homedirs as datasets. It gives people access to their own backups instead of having to call us to restore something
-
laidback_01
oh, yeah. I do that with SMB mounts for my windows client in small buisnesess
-
rwp
I had a weird zfs issue. Maybe someone has some experience and wisdom they might share.
-
rwp
A routine scrub turned up "Permanent errors have been detected in the following files:" with a list of files from binary installed ports in /usr/local listed.
-
rwp
I would have re-installed those binary ports. But instead decided to run another zfs scrub. Did that.
-
rwp
And the errors all disappeared. No problems listed now. Making this odd.
-
rwp
Plus when I scanned the syslog I could not find any storage errors logged.
-
rwp
I think zfs glitched. But it was an odd glitch. First time in the past year for me. Should I be worried?
-
rwp
Oh and this was on a two disk mirror system. So self-healing from a good copy is possible.
-
mason
rwp: Are you sure it's a mirror?
-
mason
rwp: More than once I've forgotten to say "mirror" and notice that the pool I just created is twice the size I expected.
-
mason
I'm surprised it's saying "permanent error" but I'd probably take this to the ZFS folks who can say more.
-
cristiioan
Is freebsd better than linux for web dev/high level stuff(aka I don't work directly with low level stuff like syscals)?
-
ek
cristiioan: It works just fine for high level stuff (as does Linux.)
-
cristiioan
What about emacs support?
-
ek
Are you asking if emacs works on FreeBSD?
-
meena
emacs works fine, on a lot of OSes
-
cristiioan
If it supports all advanced features. Like native compilation
-
meena
-
VimDiesel
Title: Emacs graphical client - Software - Haiku Community
-
meena
mmmmmmm
-
meena
-
VimDiesel
Title: The FreeBSD Project
-
rwp
mason, "zpool history | head -n2": zpool create -o altroot=/mnt -O compress=lz4 -O atime=off -m none -f zroot mirror ada0p3 ada1p3
-
rwp
That was 2022-03-01 on this system. Been solid with no trouble for over a year. Making this an odd glitch.
-
rwp
I expected to see disk errors logged. But nothing that I could find. The next scrub then showed clear. Odd.
-
rwp
cristiioan, I would say that for web development there is no user visible difference between FreeBSD and GNU/Linux. For operating the OS though FreeBSD has many advantages.
-
rwp
As for upstream Emacs adding native compilation... I actually find that rollout to have been quite annoying! But I often complain about new emacs release behavior changes that annoy me.
-
cristiioan
My only other thing is if minecraft can't be played? Is screen sharing working as expected under wayland(should I have to deal with anything specific)?
-
xtile
Minetest works well on FreeBSD, though it's a different game, I enjoy it.
-
cristiioan
Also is it more stable? I just had to deal with yet another gnome crash(now I have a missing lock screen)
-
cristiioan
xtile: I wish to get away from gaming
-
xtile
aha
-
» meena has no talent for gaming what so ever
-
rwp
However I see that in today's binary ports update that chromium is now dropped? Gone from available ports? Anyone know what's up with that?
-
rwp
There is still ungoogled-chromium but it's really a different browser.
-
meena
rwp: all electron ports are affected
-
meena
oh, never mind then
-
rwp
I apply upgrades every day. In today's binary port upgrade it wanted to remove chromium. (Okay with me. I mostly use Firefox.) I allowed it. It's now gone.
-
meena
why the heck would pkg upgrade remove packages you installed, just because they vanished from the repo?
-
rwp
I imagine there are library conflicts.
-
meena
ah, that would make sense
-
rwp
Let me gather up and paste the trace of the rather large upgrade today.
-
rwp
Here is the trace of the quite large binary pkg upgrade today.
bsd.to/oVPO/raw
-
VimDiesel
Title: oVPO
-
rwp
I should also include that freebsd-version -kru says: 13.1-RELEASE-p6 13.1-RELEASE-p6 13.1-RELEASE-p7
-
cristiioan
will I be able to download release 13.2 tomorrow or do I have to wait until Tuesday?
-
meena
rwp: is this latest or quarterly?
-
rwp
meena, quarterly. It's a boring stable system.
-
meena
cristiioan: i reckon you might be able to get them tomorrow night for the Tier 1 platforms — but i don't actually know
-
rwp
I reached into the snapshots and ran "ldd /.zfs/snapshot/zfs-auto-snap_weekly-2023-04-02-00h14/usr/local/share/chromium/chrome" and all of the libraries resolve okay.
-
meena
so, yeah, that's not it then
-
rwp
I ran the executable from the snapshot on the current system and it seems to run okay.
-
meena
go ask ports people
-
rwp
You are right. I should ask the ports people.
-
cristiioan
Also another curisoity. How is the status of risc-v support?
-
rwp
This shows a good reason for zfs as I just upgrade without any fear because I have zfs-auto-snaps running. Making upgrades very safe.
-
rwp
I'll ask the ports people after lunch when I can stay engaged if someone responds. I can't see what triggered it.
-
rwp
It _might_ be accidental in 13.1R because of "Sunset 12.3-RELEASE from ports tree" tagged "12.3-eol". Maybe. Don't know.
-
rwp
-
VimDiesel
Title: ports - FreeBSD ports tree
-
msiism
What do `-m` and `-M` do when mounting devices? Seems like you use that to set permissions. However, mount(1) doesn't seem to contain any info on that.
-
CrtxReavr
msiism, I think you first need to realize that mount is just a wrapper for mount_<filesystem type>.
-
msiism
Oh…
-
msiism
Ideed, I needed to realize that first.
-
CrtxReavr
mount(8) has no -m or -M switch but the type you're mounting may support such a switch.
-
msiism
Okay, I've found the appropriate man page already. Says it all…
-
CrtxReavr
meena, whatsoever is a single word.
-
salvadore
cristiioan, I have never played minecraft, but I think it might be difficult to play it on FreeBSD (at least without emulation), I think our client port is very much out of date:
freshports.org/games/minecraft-client
-
VimDiesel
Title: FreshPorts -- games/minecraft-client: Client for the block building game
-
salvadore
and updating it requires some work that is not moving at all:
reviews.freebsd.org/D31119
-
VimDiesel
Title: ⚙ D31119 games/lwjgl3: Lightweight Java Game Library 3
-
CrtxReavr
Only ever ran the server port on FreeBSD.
-
CrtxReavr
Though, the port-updates never kept stride with the upstream updates, so I mostly just copied over the .jar file and restarted it.
-
salvadore
-
VimDiesel
Title: ports - FreeBSD ports tree
-
msiism
I've put up a Git repo containing my little mount(1) wrapper:
git.sr.ht/~msi/qmnt. As I'm still new to FreeBSD, feel very free to comment, especially on the "Setting things up" section in the README.
-
CrtxReavr
man 1 mount
-
CrtxReavr
No manual entry for mount
-
msiism
Interesting.
-
msiism
I have a feeling I know why that is…
-
CrtxReavr
(base system utils use manual index 8)
-
msiism
Let me have a little round of s/1/8/ …
-
Soni
aside from nagging developers to add multiple SOCKS proxy settings to their apps, could freebsd provide any way to prevent SSRF across an app's components? c.f.
WebAssembly/wasi-sockets #33
-
VimDiesel
Title: Require sockets to have a named "context" · Issue #33 · WebAssembly/wasi-sockets · GitHub
-
VimDiesel
-
meena
nah, grep is in 1,and so is ps
-
meena
mount usually needs root
-
meena
administrative utilities are under 8
-
» msiism reads `man man`.
-
» msiism learns.
-
msiism
The embarrassing thing for me is, it's just the same on Linux. ;)
-
meena
Soni: I don't see how. that's very high level
-
Soni
meena: why can't we have setsockopt(SO_TAG) and filter it in the local firewall?
-
Soni
SO_TAG is ideally a string that gets passed by the app to the firewall
-
Soni
so e.g. it could be tagged "redis" or "postgres" or "git" (this one is dangerous, it is user-controlled) or so on
-
Soni
and then the firewall could filter on it
-
meena
Soni: most of SSRF happens via https, no?
-
Soni
(yes, shelling out to `git` instead of using `libgit2` also helps to mitigate it - you can then firewall based on the `git` process, which works as a form of tagging - but turning your app into a bunch of shelled out components seems like a pretty crummy way to do this kind of firewalling)
-
Soni
meena: yes, git over https, git over ssh, git over git protocol, whatever happens to work
-
meena
git protocol is deprecated
-
Soni
most of SSRF happens via user-controlled connections, so simply splitting them into "user" (user input, API-based) and "core" (config-based) would be enough
-
Soni
but even that still requires some way of tagging which connections are which, and letting the OS know about the tagging
-
Soni
meena: git protocol is not deprecated. git protocol over the network is deprecated. git over https, git over ssh, etc are just git protocol over a more appropriate transport.
-
rwp
Don't most developers use git (commands) over ssh? (Though I know those who work behind restrictive corporate firewalls have to work around it.)
-
rwp
The most typical use for git via https (or http or git://) is read-only clones only, right?
-
yuripv
or use https for fetch, ssh for push (as committers guide suggests)
-
Soni
rwp: yes, but it's complicated (case in point: restrictive corporate firewalls)
-
Soni
but that's irrelevant for the SSRF issue
-
rwp
Ah, I see, you started with
WebAssembly/wasi-sockets #33 as the problem. Gotcha.
-
VimDiesel
Title: Require sockets to have a named "context" · Issue #33 · WebAssembly/wasi-sockets · GitHub
-
VimDiesel
-
manfromafar
-
VimDiesel
Title: /usr/share/doc/nfs-common/README.Debian.nfsv4
-
manfromafar
just mount the volumes and they;ll work
-
_xor
"BoringSSL is a slimmed down TLS implementation maintained by Google. Getting TLS right is very, very hard. Envoy has chosen to align with BoringSSL so as to obtain access to the world class experts that Google employs to work on this code base. In short: if BoringSSL is good enough for Google’s production systems it is good enough for Envoy and the project will not offer first class support for
-
_xor
any other TLS implementation."
-
_xor
Oh good lord. So in turn, that means the port won't build due to ssl=base.
-
_xor
Essentially boils down to, "We're not going to use anything else since Google is always righter." (though on the flip side, I can kind of understand it due to the previous code issues with OpenSSL)
-
manfromafar
when libressl
-
meena
we've built on OpenSSL for decades and given back exactly squat and when it all blew up, we decided to create our own instead of contributing
-
kindred
the little that I read about Boring, there is a certification element. I remember literature about places that need to pass a government compliance and Boring has to satisfy those requirements.
-
meena
so, FIPS?
-
kindred
I kind of stumbled into searching it because there was a "suspicious" IF conditional in a Go library call. Something similar to "if boring_enabled, then call boring and skip the rest of this routine".
-
sfox
> we've built on OpenSSL for decades and given back exactly squat and when it all blew up, we decided to create our own instead of contributing
-
sfox
not just openssl, that's true about most bigtech corporation
-
sfox
in california the locals are slashing google bus tires because the public transit is so bad
-
sfox
gotta love homless camps with skyscraper and tech campus skylines
-
RoyalYork
For jail administration, do most people use ezjail-admin or do they administer it manually?
-
laidback_01
bastille for me
-
RoyalYork
Im just jumping into jails for the first time, seems that something like bastille is the way to go
-
RoyalYork
lots of fiddling around otherwise
-
laidback_01
ezjail is a bit older, and while it works, it was/is mean for FreeBSD10 and under really.
-
laidback_01
there's IOCage as well. that's a reasonalbe system. I don't know which is lighter or more FreeBSD-like, but I think it's just a personal preference after a point
-
RoyalYork
Im trying to find a sample of Jail Mastery to see what Lucas's views are
-
mason
RoyalYork: Base system tools here. They work well.
-
RoyalYork
mason, im trying to find a reference that assists with getting network access to my jail
-
RoyalYork
failing that, I'll have to go with a tool
-
mason
RoyalYork: The handbook is a good bet.
-
RoyalYork
The FreeBSD handbook?
-
RoyalYork
I found it didn't cover getting network access to jail
-
mason
-
VimDiesel
Title: Chapter 16. Jails | FreeBSD Documentation Portal
-
RoyalYork
Chapter 16, i've been up and down it
-
jarebear6expepjo
having an issue mounting a lacie usbc storage device. when I run mount it says invalid argument: commands I've tried pasted here
paste.rs/JZm.md
-
VimDiesel
Title: paste.rs - Rocket Powered Pastebin - Markdown
-
mason
RoyalYork: That shows networking.
-
jarebear6expepjo
not sure what i am doing wrong here
-
mason
RoyalYork: I have a wiki page showing jails with vnet and epair, if you want an alternative:
wiki.freebsd.org/MasonLoringBliss/JailsEpair
-
VimDiesel
Title: MasonLoringBliss/JailsEpair - FreeBSD Wiki
-
RoyalYork
I'll have a look at the wiki (thank you), but chapter 16 only talks about network interfaces with ezjail
-
mason
RoyalYork: I'm looking at it right now and I see it showing an example with networking in jail.conf.
-
mason
RoyalYork: Search for this text: Jails are often started at boot time and the FreeBSD rc mechanism provides an easy way
-
RoyalYork
I saw that earlier
-
RoyalYork
-
VimDiesel
Title: dpaste/k3aE (Plain Text)
-
RoyalYork
my jail.conf file looks very similar
-
RoyalYork
Im not able to reach the internet from my jail
-
RoyalYork
maybe thats a feature and not a bug?
-
mason
Hm, unsure what the rest of your networking looks like.
-
RoyalYork
in the host?
-
RoyalYork
bsd.to/zhF8 - this is my rc.conf
-
VimDiesel
Title: dpaste/zhF8 (Plain Text)
-
RoyalYork
And no firewall / pf running
-
mason
RoyalYork: I don't know if 10.10.10.10 is valid for your network. Maybe do a quick packet capture and see if it's trying to get packets off your box, if the networking is valid.
-
mason
If you can get to the network from the host, then the jail should be able to do so too.
-
RoyalYork
Ok, you gave me somthing to look at. I'll start with the IP
-
RoyalYork
I am able to ping between the host and jail, but I'll keep digging
-
mason
RoyalYork: One thing that's critically important to understand is that if a jail tool shields you from understanding what's gone wrong, it's doing you a dis-service.
-
RoyalYork
mason, agreed. im of the same mindset