-
BraveheartBSD
6I'm still running 4.13.17, pkg upgrade has not pulled in a newer one.
-
Macer
BraveheartBSD: i don't think it will
-
Macer
that's my problem. samba413 and samba416 are different pkgs
-
Macer
Message from samba413-4.13.17_8:
-
Macer
===> NOTICE:
-
Macer
This port is deprecated; you may wish to reconsider installing it:
-
Macer
Reached its EoL on March 21, 2022.
-
Macer
It is scheduled to be removed on or after 2023-12-31.
-
Macer
so at the end of this year the pkg will no longer exist .. i'm guessing in favor of the samba416 pkg
-
Macer
sorry. thought this was the matrix #
-
BraveheartBSD
Hmmm, I'll have to check it, don't think 4.16 is suitable with Win 11
-
Macer
ah. i'm using it for linux and macos (and i guess a win10 vm)
-
Macer
but my issue is that it's joined to an AD and it's a NAS but don't know if i'm supposed to install over 413 or remove it then install 416 and pray
-
Macer
i mean it seems like i SHOULD just be able to uninstall, install ... since i'm sure most of the background auth stuff is kerberos .. but i'm not sure.
-
Macer
i don't want to kill the NAS and spend forever sorting it out .. but i also want to upgrade before the pkg is removed
-
BraveheartBSD
Yeah, mine is just a home fileshare
-
rwp
Macer, If you are worried something is going to "go away" you should backup your local copy from /var/cache/pkg/* so that you don't need to worry.
-
Macer
rwp I don’t think that is the issue here heh.
-
Macer
I just want to avoid it losing the AD then having to jump through hoops to rejoin.
-
Macer
It’s not really a pkg issue so much as it is a two packages of the same application issue.
-
rwp
I think that if you were to accidentally lose everything about ActiveDirectory that you would be better off.
-
Macer
🤔
-
_xor
Macer: If you have ZFS, take a snapshot of the system and then upgrade and see what happens. If it fails, then rollback the snapshot.
-
Macer
_xor: ah ok. just didn't want some AD tomfoolery. i mean i'm sure if i have an issue i can most likely just remove the server from AD and re-add it
-
Macer
but i sure would like to avoid that. i'll save it for the weekend where i can have additional time to make up for any issues if they occur
-
_xor
I haven't messed with AD in years, but I remember there being an issue with removing an AD from a forest and trying to add it back in (as in it wouldn't allow the server to re-assume the existing identity, it had to be added as a new server).
-
Macer
and who knows. maybe someone will chime in on the forum post
-
Macer
_xor: oh really? i've done it before using a samba dc (which is what i use now)
-
Macer
it was just a matter of removing it from AD then just re-adding it
-
Macer
in this case though it wouldn't be an issue if it were just a like pkg.. i'd just upgrade samba and be done with it.. samba is usually rahter good at not breaking things when you do major upgrades.. at least in my experience. but i guess freebsd separated it by version
-
_xor
It'll probably be fine I'm sure, especially if it's a Samba AD. The issue I had was using Windows 2008.
-
_xor
*Windows Server 2008
-
Macer
i guess 4.13 was supposed to be 'stable' and 4.16 was the new stuff
-
Macer
the odd thing is i don't know if pkg will remove 413 if you install 416
-
Macer
a piece of me is curious what happens if i just install it heh
-
Macer
maybe it's all symlinks or something
-
Macer
ah guess not
-
voy4g3r2
not sure if this is the best place to ask this but anyone have "wierd quirks" with sed regular expressoins behaving differently in neovim/vim vs zsh ?
-
voy4g3r2
i can not figure out if i am using different sed modules from editor to command line.. which would show the differene in how sed works
-
yuripv
voy4g3r2: how are you using sed in vim?
-
voy4g3r2
:%s/,/,\r/g
-
voy4g3r2
i want to find commas and add newlines, which in bsd sed.. i have to do \r and NOT \n
-
voy4g3r2
but i try the same thing with sed -e 's/,/,\r/g' <filename>
-
voy4g3r2
it goes yeah.. too bad, i am not going to behave
-
yuripv
i don't think it's really "sed", just internal regexes in vim and those can be pretty different from sed (as in command line utility)
-
voy4g3r2
okay, well documentation makes me believe it is.. but i trust your response
-
voy4g3r2
maybe i should not of tested the shell in a vim session and try and transition to a shell script :)
-
yuripv
sed -e 's/,/,\n/g' seems to work for me
-
voy4g3r2
okay.. that is just odd, i must be mixing up things
-
rwp
I don't really know vim but in the old vi one would use Control-v aka ^v to enter the next character verbatim and then enter an actual carriage return into the expresssion.
-
voy4g3r2
that also works for me :)
-
rwp
In sed the escape sequences are definitely the way to do it.
-
voy4g3r2
anyway to get these 8 steps i do in vim to one command works for me
-
rwp
If you are wanting to replace the , with a newline then tr , "\n" is the way to go.
-
voy4g3r2
ohhh i like that option better than sed
-
voy4g3r2
it will require a little more verbose commands but much easier to read than sed
-
rwp
sed also does tr stuff too. All of the good letters were used so that is the "y" command. | sed "y/,/\n/"
-
voy4g3r2
baby steps
-
rwp
Which is convenient when there are other sed things to do too because they can all be done in one program invocation then.
-
voy4g3r2
i was so afraid of sed on hp-ux box, i learned perl :)
-
voy4g3r2
that is how large my adversion to sed is
-
rwp
But perl is not standard on HP-UX. You would have needed to compile Perl first!
-
voy4g3r2
yes, my boss liked perl so we had that
-
voy4g3r2
he was surprised i "found it"
-
rwp
Perl is a good general purpose text chainsaw though. Useful skill.
-
voy4g3r2
i have long lost the ability to write that stuff but i can read it and it was powerful
-
voy4g3r2
my context of was, is based on my use and not on people using it daily
-
voy4g3r2
i find this as my "fun time" as i am office 365 junkie most days.. today i got the "pleasure" of looking at SAS code
-
voy4g3r2
my brain still hurts from that ugly mess
-
voy4g3r2
and i do not even program for a living, i need to be able to understand it so i can transition out of SAS as it is hella expensive
-
voy4g3r2
for literal one statistical model execute a year
-
rwp
SAS, S, MATLAB, I just hate needing to learn an entire new language to do something singular or small. R, PSPP, Octave, those Free Software alternatives will at least have some long term lifetime. But I still don't want to learn Latin just to be able to compute an equation.
-
voy4g3r2
what needs to be done is singular in the model but the calculations and methods to execute said model, along with programming it is NOT
-
voy4g3r2
the requirements spec i have to disect is over 200 pages..
-
rwp
If it needs it then it needs it. Glad you are dealing with it and not me.
-
voy4g3r2
thankfully i understand the domain of the model and not so much just the language, so can stumble along
-
voy4g3r2
haha
-
voy4g3r2
that is what the rest of the team said, they wanted to hire 5 people to review this, to only have to manage their work.. it is like, why.. just sit down and do it.. if we need the 5 people after this analyze.. go for it
-
voy4g3r2
but that is enough of my vent.. it is why i am now learning how to convert vim stuff to zsh stuff to reduce steps.. 3 days ago it took me about 80 steps per file, i am now down to 5 shell script lines and i write 2 commands
-
voy4g3r2
so happy about that
-
rwp
voy4g3r2, Shell programs are very powerful. When you get a moment you should read this classic example showing the power of them. It's worth the read.
leancrew.com/all-this/2011/12/more-shell-less-egg
-
VimDiesel
Title: More shell, less egg - All this
-
polyex
it seems pf table files support 2 syntaxes, comma after ip all on same line or no comma 1 ip per line. either better than the other?
-
wildeboskat
Ummm freebsd-announce mailing list was meant to be only for announcements and now there's chain letter spam on it?
-
n-st
wildeboskat: if you're referring to the mail from glen, this may be useful context:
lists.freebsd.org/archives/freebsd-stable/2023-November/001702.html
-
VimDiesel
Title: Update to the Release Engineering Team Roster
-
wildeboskat
Oh ok it sounded like chain letter spam, I don't know who glen is :)
-
wildeboskat
I thought this mailing list was just meant as notifications for errata norices etc
-
wildeboskat
Admittedly I have very low tolerance for anything that remotely sounds like spam. I've even gotten in trouble with work for lashing out at external sales people who emailed me out of the blue lol.
-
wildeboskat
So it's probably me, if there's really something going on I'm sorry for him <3
-
wildeboskat
Though I still don't think this is the place for that but anyway
-
wildeboskat
I was only referred to said mailing list here last week and this is the first mail I got on it, that's why
-
wildeboskat
my apologies
-
n-st
wildeboskat: not to worry, this is a very unusual occurrence
-
wildeboskat
Thank you. I do know what it's like to be in a dark hole unfortunately
-
wildeboskat
So I wish him all the best if he is here listening
-
angry_vincent
dark hole is half-black or half-white hole?
-
wildeboskat
half-black in this case for the people in it I guess :)
-
V-T60
hello. can i mount openbsd crypto volume from my freebsd install?
-
V-T60
is bioctl available on freebsd?
-
dch
V-T60: unlikely, no
-
dch
wrt bioctl, I find no mention of it in /usr/src
-
dch
anybody familiar with ssh proxycommand and jumphost ?
-
dch
I can ssh to A, and then ssh to B, but I cannot get ssh -J A B to work
-
dch
oooh my bad, the end box is too old to support ed25519 keys
-
angry_vincent
dch: hey! i lost the bookmark for DIY jails slides/presentation and cannot find on the web
-
dch
-
VimDiesel
Title: Jails from Scratch 2023
-
angry_vincent
thnks much!
-
V-T60
dch: we also say "dobry rano" here...
-
dch
V-T60: then dobry rano for you too
-
V-T60
dch: thanks
-
voy4g3r2
mind blown.. i setup NFS with /etc/exports and then find out zfs can do it WITHOUT making exports file
-
RhodiumToad
zfs likes to do its own thing
-
voy4g3r2
plus i do not have to keep reminding myself to do service mountd reload when i add a new export
-
voy4g3r2
works for me
-
mns
zfs handles NFS ?
-
RhodiumToad
zfs can export its own datasets
-
RhodiumToad
see zfs share, etc.
-
debdrup
It uses nfsd and /etc/zfs/exports, which is a special file that shouldn't ever be touched by the user.
-
voy4g3r2
-
VimDiesel
Title: NFS Shares with ZFS | Klara Inc
-
voy4g3r2
explains it pretty well.
-
voy4g3r2
and definitely highlgiths what debdrup said.. do not touch config files yourself, that is a no bueno moment
-
debdrup
The only file you'll need to touch is /etc/exports and that's just to add "V4: /" on the first line :P
-
voy4g3r2
ohhh
-
voy4g3r2
that could be why i am getting permission denied
-
debdrup
No, it just enables NFSv4.
-
voy4g3r2
zfs set sharenf'on, --alldirs, 192.168.0.115' storage
-
voy4g3r2
zfs set sharenfs='on, --alldirs, 192.168.0.115' storage
-
voy4g3r2
hrm. we want nfsv4, so adding that right now
-
mns
voy4g3r2: thanks
-
debdrup
Please see the note in zfsprops(7) about comma separarated values.
-
voy4g3r2
hehe.. stumbling along this journey.. just with random zeel
-
debdrup
Some asshole had to go add a note about that:
openzfs/zfs 28401f6668
-
VimDiesel
Title: zfsprops.7: Add note about comma-separation · openzfs/zfs@28401f6 · GitHub
-
voy4g3r2
hrm.. yeah is aw that in the blog entry.. make sure you use commas, i guess i have to make it look ugly.. by smashing it all together
-
jimmiejaz
out of left field, for any of you using Roundcube, it was just announced that they've merged with Nextcloud
-
scoobybejesus
mns, did you end up having the same issue with the new version of bastille?
-
mns
scoobybejesus: I did not. I am on an older version of bastille. Also I'm looking at appjail as well. Only because I want to try out different things :-) cbsd seemed a little more complex compared to bastille.
-
scoobybejesus
appjail seemed interesting when i first saw it, but i have not dug in. yeah, cbsd seems maybe like what i'd want for easy vm's, though I think i'd rather learn vm-bhyve better first
-
mns
scoobybejesus: yeah if I needed orchesrtration for a production environment, I'd use cbsd. This is for home stuff, so bastille suits the needs. appjail seems similar to bastille as well
-
Demosthenex
mns: cbsd?
-
mns
-
mns
Demosthenex: here we go:
github.com/cbsd/cbsd
-
VimDiesel
Title: GitHub - cbsd/cbsd: Yet one more wrapper around jail, bhyve and XEN on FreeBSD platform.
-
Demosthenex
says no zfs?
-
mns
I don't recall. Its been a while since I touched cbsd. Also I'm at work and since its a .ru domain, its blocked unfortunately
-
Demosthenex
yeah, i think it says its not zfs only
-
Demosthenex
but has "generic" integration
-
Demosthenex
interesting to read about
-
Remilia
some discussion here on maybe Monday made me go 'I need to install 13.2 in a VM' but I forgot what for
-
ZedHedTed
you got logs?
-
Remilia
probably
-
Remilia
found it
-
titou
hey
-
titou
I'm trying to use libelf to read an ELF file. The code works perfectly under linux but when I want to use it under Freebsd, elf_begin(fd, ELF_C_READ, NULL) returns NULL and elf_errmsg returns "Invalid argument".
-
titou
I don't understand since when I truss the tool libelf doesn't try to read the ELF file.. there's no read operationg..
-
titou
of course open returns a valid fd
-
titou
and when I read the fd it returns the first bytes of the ELF file.. so it's ok
-
titou
there's something I don't understand with the FreeBSD version of libelf :|
-
dstolfa
titou: what does elf_errmsg(-1) return?
-
dstolfa
because that code is valid
-
titou
I don't know how can I debug that.. there's 3 lines...: open, elf_version(EV_CURRENT) and elf_begin
-
titou
"Invalid argument."
-
dstolfa
titou: see the man page for ELF_E_ARGUMENT error cases and try to figure out which one it is would be my next step
-
titou
i already check that page..
-
titou
but as far as I said there's just 3 poor lines of code
-
titou
and the only thing which could help me in the elf_begin man is: "The value in argument cmd was unrecognized."
-
RhodiumToad
titou: what's the truss output?
-
dstolfa
right, but there's also a file you're trying to read. are you sure it doesn't contain some unexpected things? elf_begin(3) has 7 error cases for ELF_E_ARGUMENT that can happen
-
titou
because other things are for a third element different from NULL
-
titou
RhodiumToad: my open which returns a valid fd, and just after an error because elf_begin returns NULL. No syscall is performed by elf_begin
-
RhodiumToad
not even fstat?
-
titou
not even!
-
RhodiumToad
what fbsd version?
-
titou
dstolfa: i also forgot error when fd is for an empty file (but as I said, i can read this file...) and for unsupported file type (but it's a regular file...)
-
RhodiumToad
and you're sure your third arg to elf_begin is really NULL?
-
titou
RhodiumToad: 13.2
-
dstolfa
titou: what do you mean by "regular file"?
-
dstolfa
is it a valid ELF file that other tools can manipulate?
-
nimaje
titou: are you sure fd points to an elf file?
-
titou
-
VimDiesel
Title: int main(int argc, const char **argv){ Elf_Scn *scn = NULL; GElf_Shd - Pastebin.com
-
titou
here is the code
-
titou
dstolfa: nimaje: readelf and objdump can read and dump if yes
-
titou
it*
-
dstolfa
what about FreeBSD's elfdump?
-
RhodiumToad
titou: and the truss output?
-
RhodiumToad
and you're sure you haven't managed to redefine NULL anywhere?
-
RhodiumToad
and how are you compiling and linking it?
-
titou
dstolfa: it works very well.. the corresponding file is generated by gcc..
-
titou
-
VimDiesel
Title: openat(AT_FDCWD,"debug/apos",O_RDONLY,00) = 3 (0x3)Unable to read the f - Pastebin.com
-
RhodiumToad
how are you compiling and linking the program containing the elf_begin? (not the one you're trying to read)
-
RhodiumToad
and what architecture?
-
titou
g++ -o exportSym tools/exportSym.cpp tools/hashList.cpp -lelf
-
titou
x86-64
-
RhodiumToad
hmm
-
RhodiumToad
have you tried with clang?
-
RhodiumToad
I'm wondering if this is a problem with enum sizes
-
titou
indeed it works with clang.... that's so strange
-
titou
i don't understand
-
RhodiumToad
I do
-
RhodiumToad
what's almost certainly happening is that something's messed up the calling convention, so elf_begin is seeing its third arg as not being NULL
-
titou
that's so incredible
-
dstolfa
ah yeah, C++ doesn't have a well-defined ABI so you're hitting that
-
RhodiumToad
can you compile the relevant source file to .s using g++ -S and pastebin that?
-
RhodiumToad
the libelf funcs should be declared as extern "C" so c++ abi issues should not be in play
-
RhodiumToad
(libelf.h does contain the expected declarations for that)
-
RhodiumToad
you are including libelf.h properly, I hope?
-
titou
-
VimDiesel
Title: Hastebin
-
RhodiumToad
that's with g++? is it any different with clang?
-
titou
-
VimDiesel
Title: Hastebin
-
titou
the second argument is different...
-
titou
5 vs 1!
-
titou
that's so strange.... it seems to be a bug?!
-
nimaje
and the register for the last argument is diffrent %edi vs %edx
-
dstolfa
the earlier pastebin (
pastebin.com/0RcjAkkz) doesn't show any includes. i'm assuming there *are* in fact includes in your program?
-
dstolfa
and that the way you include libelf is via #include <libelf.h>, which would result in all the function declarations, including elf_begin, to be under an extern "C" as RhodiumToad mentioned
-
RhodiumToad
5 is correct
-
RhodiumToad
so I was actually wrong
-
RhodiumToad
somehow you got ELF_C_READ defined as 1 rather than 5, so elf_begin is complaining that the second arg is wrong
-
RhodiumToad
nimaje: the registers are set up in a different order but that's not relevant
-
RhodiumToad
the args go in %edi, %esi, %rdx in that order
-
RhodiumToad
I'm going to guess that with gcc, you're maybe picking up a libelf.h from gcc/binutils rather than the freebsd one?
-
dstolfa
RhodiumToad: yes, that's it. i've just checked it. ELF_C_READ in elfutils' libelf is defined as 1
-
dstolfa
-
VimDiesel
Title: elfutils/libelf/libelf.h at 08ed26703d658b7ae57ab60b865d05c1cde777e3 · cuviper/elfutils · GitHub
-
RhodiumToad
ok, so it's compiling against a libelf.h for a different library than the one it ends up linking to?
-
RhodiumToad
so mismatch between -I paths and -L paths, basically
-
titou
dstolfa: I confirm
-
titou
hmm there's two version of libelf on FreeBSD ?
-
RhodiumToad
no?
-
dstolfa
no, it's because g++ uses its own instead of using the system's libelf defines
-
dstolfa
it links to freebsd libelf, but it uses the headers from g++
-
RhodiumToad
I didn't find a libelf.h in the gcc package
-
titou
you're right: i've two libelf.h: /usr/include and /usr/local/include and enum are different..
-
titou
shit..
-
RhodiumToad
pkg which /usr/local/include/libelf.h
-
dstolfa
probably elfutils, tbh :D
-
titou
it's elfutils
-
RhodiumToad
right
-
RhodiumToad
so if you compile against elfutils then you need to be sure to link against it too, not to the base libelf
-
titou
ok so I'll try to play with -I... in order to get it working
-
titou
or using the right library yes
-
RhodiumToad
note that base system clang does not look in /usr/local unless you tell it to
-
titou
that's interesting
-
RhodiumToad
(whereas port gcc probably does, i haven't checked lately)
-
RhodiumToad
anyway, all is explained
-
titou
is there a solution to force gcc using /usr/include rather than /usr/local/include ?
-
titou
-I/usr/include doesn't do the job
-
RhodiumToad
there are a dozen variants on -I that add to different places in the list of include dirs
-
dstolfa
titou: you could pass -nostdinc and manually specify them
-
RhodiumToad
that's probably not wise
-
RhodiumToad
probably better to look at the actual list of dirs being used and figure out how to set it correctly
-
dstolfa
well yes if you're making a program you want to use more than just for a quick test, you should definitely fix it the right way
-
RhodiumToad
ah
-
titou
i'm agree with dstolfa .. i want to get it working for different computers, not only mine
-
RhodiumToad
checking gcc docs, if a dir is already specified as a "system" include dir, then another -I for it is ignored
-
dstolfa
yeah but i don't know if -nostdinc is a good idea then. if this is supposed to build on a wide variety of platforms and setups, i would set up a proper cmake build around it
-
RhodiumToad
so you might in fact need -nostdinc
-
dstolfa
hm, now i actually wonder if cmake handles the libelf issue properly
-
dstolfa
i wonder if find_path(... PATHS /usr/include ... /usr/local/include) would handle this properly
-
ngortheone
is it possible to set "kern.elf64.allow_wx" setting for a single executable?
-
RhodiumToad
ngortheone: I think so, via a flag in the elf brand
-
RhodiumToad
ngortheone: yup, see the elfctl command
-
ngortheone
thanks RhodiumToad!
-
titou
thank you so much for your help!!
-
_xor
Can I use `poudriere jail -j myjail -u -m src=/usr/src` to install a source tree into an existing builder jail? I'd try it, but that system is currently building and I don't want to mess with it.
-
_xor
I want to say that I remember trying that at one point and it didn't work. Only alternatives I could think of were to extract it into the dataset manually and re-create the @clean snapshot, or just re-create the jail.
-
markmcb
is there a way to make FreeBSD idle better? (beyond powerd)? on an 11th Gen Intel i5-1135G7, after a clean FreeBSD 14 install, idle CPU temps are ~47C. Same system with a clean Arch (linux 6.6), idle CPU temps are ~33C.
-
rwp
markmcb, Yes. Install powerdxx from ports and run it instead of powerd. (Something I recently learned about too.)
-
markmcb
rwp: thanks, i'll check it out
-
rwp
It turns out that powerd is an old program from FreeBSD 5 days that made it into base but has not had the love or attention needed to keep it working with newer systems.
-
rwp
So the powerd++ author really did a good job writing a similar but more powerful replacement that works with currently available systems.
-
Remilia
_xor: you should not do that with a poudriere jail
-
Remilia
just create a new one and copy the options directory over
-
rwp
markmcb, Hint: After installing powerdxx run it in the foreground and watch the verbose information dump. Then realize that you also need to install either "coretemp" or "amdtemp" depending upon your cpu model.
-
angry_vincent
markmcb: what does sysctl dev.cpufreq.0.freq_driver give?
-
rwp
And by foreground I mean with both -v verbose and -f foreground. Here is an example:
bsd.to/jNDA/raw
-
VimDiesel
Title: jNDA
-
markmcb
angry_vincent: est0
-
angry_vincent
this is maybe strange. since gen8 there is new hwpstate_intel driver
-
angry_vincent
it should be set for your cpu, but maybe it's not for some reason
-
markmcb
angry_vincent: user error, lol, i looked on the system i'm on now without thinking. i'll have to check the other system later.
-
angry_vincent
ok. then if it is hwpstate_intel0 for you, then you may drop powerd or powerdxx completely and use newer driver, as both powerd/powerdxx would not be correct.
-
angry_vincent
-
VimDiesel
Title: Chapter 14. Configuration, Services, Logging and Power Management | FreeBSD Documentation Portal
-
angry_vincent
-
VimDiesel
Title: hwpstate_intel(4)
-
angry_vincent
correction: since gen 6, not gen 8
-
markmcb
thanks! will read through this
-
debdrup
-
VimDiesel
Title: Hector Martin: "WARNING for Raspberry Pi 5 NAS users: **If you us…" - Treehouse Mastodon
-
debdrup
whoops, wrong channel
-
rtprio
that seems like a bad idea outright
-
markmcb
angry_vincent: the system that's reporting est0 had the feature disabled in the BIOS. i enabled it and now see hwpstate_intel0. turned off the powerd options. will monitor and see. curious that it was disabled. all other cpu features were on by default. i wonder if there are downsides to using it? regardless, thanks!
-
scoobybejesus
looks like freebsd-update upgrading to 14.0-RELEASE from 13.2-RELEASE on digitalocean is predictable and easy enough. fingers crossed but everything seems to be in order
-
Remilia
scoobybejesus: I hope you will not get teh vnlru weirdness Ihave
-
ek
scoobybejesus: I've heard some pretty awful things about DigitalOcean and FBSD 13+.
-
Remilia
I have*
-
Remilia
though I am not on DO
-
vkarlsen
I'm running a few 13.x on DO
-
scoobybejesus
This has been alive since 12.1. Getting to 13.0-RELEASE was rough because of having to install cloud-init on my own, since it wasn't part of DO's base, i guess. Otherwise, it has cooperated i think
-
ek
I know someone that had some pretty strange file system issues after upgrading to 13.1-R. He assumed it was due to DO dropping support for FBSD.
-
vkarlsen
I was under the impression that they just scrapped the existing FreeBSD install images and stopped making new ones
-
voy4g3r2
i am currently experiencing mount_nfs: nmount: /storage/blinksystem: Stale NFS file handle and the odd things is, the machine that is having it.. does not have a mount of this location. When I do some searching it is assuming i am using exports, which i am not.. i am using openzfs sharenfs option. Does anyone have a tip/trick to evaluate how a stale nfs file can occur on a client?
-
ek
vkarlsen: I was under the same impression.
-
voy4g3r2
mount -t nfs 192.168.0.115:/storage/blinksystem /storage/blinksystem <-- this is the command that gives me the stale NFS file handler
-
vkarlsen
Nothing seemed to changed for me. I also tested uploading my own homebrewed 13.2 image.
-
ek
-
VimDiesel
Title: random Bad file descriptor errors building ports on a vps from Digitalocean | The FreeBSD Forums
-
scoobybejesus
that has happened to me many times. i attribute it to being some virtualization issue and inability to share resources smartly. i reboot and re-run the operation and it completes fine
-
scoobybejesus
my prod is basically just for me, so i can afford to reboot whenever i want. i can see how that would drive someone crazy, particularly if it only happens on DO
-
vkarlsen
Hm, I have never seen that problem on any of mine
-
vkarlsen
Maybe I'm in a lucky neighborhood
-
rtprio
voy4g3r2: is something removing that directory and re-creating it? i know that causes stale handles
-
scoobybejesus
it tends to only happen when others "sharing" the CPU are hard at work (based on huge "system" CPU resources being used for basically no reason from my perspective)
-
rtprio
i used to get in the habit of: cd `pwd`; on one set of servers to prevent it
-
Remilia
my current VPS is a guaranteed resources thing and it is noticeably better than the VPS I tried before
-
Remilia
I guess the model also matters, KVM now vs openvz before
-
Remilia
discounting I/O the new VPS is just a bit more performant than my old colocated E3-1240
-
Remilia
frequency is lower, but core count is higher and there's more RAM, yay
-
Remilia
plus storage is 1 TB SSD rather than 2x2 TB spinning rust RAID1
-
Remilia
but the best part is price
-
voy4g3r2
rtprio: i never did have it mounted, but tried that and still no bueno
-
_xor
voy4g3r2: sudo nfsstat -m
-
voy4g3r2
throw back nothing
-
rtprio
voy4g3r2: you mean you can't get it mounted with that mount command?
-
voy4g3r2
yes sorry, was not clear yes
-
rtprio
can you mount it to a different directory? is something already mounted on /storage/blinksystem ?
-
_xor
voy4g3r2: Are you using NFSv3 or NFSv4?
-
_xor
Also, you can try setting sharenfs to none and then back to the current value, then trying to mount again on the client machine.
-
_xor
I don't remember which daemon it is, but restarting one of them (depending on NFSv3 or NFSv4) should also flush that stale handle.
-
rwp
Type "nfs" is v3 and v4 is type "nfs4" AFAIK. The problems I have seen in cloud hosting with nfs are network related. NFSv3 uses UDP and if networking is not solid then NFS is not solid.
-
rwp
But on LANs I am heavily using NFSv3 and have had zero problems through FBSD 12 and 13.
-
drobban
uh,, using UDP and rely on stable networking sounds sketchy x)
-
voy4g3r2
the okay let me give this a try
-
rwp
It's a protocol designed for UDP from the start though. So if there is some packet loss due to $REASONS then things still work pretty well.
-
rwp
But if packet loss becomes extreme then of course things go sideways.
-
drobban
okey, then i follow.
-
rwp
Also there are stale handles and stale file handles and they are somewhat different things.
-
rwp
The main reason I see people running into stale handles is that the server has dropped out.
-
rwp
But stale file handles are almost always due to use in a way that tickles the file attribute cache across distributed systems.
-
voy4g3r2
my /etc/exports is blank, so i am assuming NFSv3 unless something else defaults it.. server is freebsd 140
-
jbo
ld-elf.so.1: /usr/local/lib/php/20200930/mbstring.so: Undefined symbol "php_pcre2_compile" wut
-
rwp
The /etc/exports is the non-zfs way to export things on servers. Servers with zfs use zfs to manage the exports.
-
rwp
And on clients it is in /etc/fstab
-
voy4g3r2
yeah, first testing it, to see if mounts than will do that
-
voy4g3r2
rwp: i am NOT going through that whole NFS issue i had last time, where since synology died i couldn't boot a machine
-
mariuss
jbo: This looks similar to what I ran into last week:
bugs.freebsd.org/bugzilla/show_bug.cgi?id=275361
-
voy4g3r2
let me try "refresing" this sharenfs stuff
-
VimDiesel
Title: 275361 – devel/pecl-APCu: Undefined symbol "php_pcre2_match_data_create_from_pattern"
-
rwp
voy4g3r2, In that case maybe use unison or syncthing and just keep all of the data copied everywhere? :-)
-
scoobybejesus
showmount -e is showing what's expected?
-
jbo
rwp, wait, you can export NFS via ZFS (or the other way around)? I am currently setting up a backup server to which several hosts should push their backups to. I was thinking of using zfs send|recv over SSH. Is the NFS+ZFS approach more interesting?
-
rtprio
no, you set your zfs to 'export' on nfs; akin to adding it in /etc/exports
-
jbo
mariuss, thanks for linking - I'm investigation. this is php80 tho
-
rwp
jbo, Uhm... I think you are asking several different questions all at once!
-
voy4g3r2
now i am confused. i setup sharenfs option on some pools, and i can us mount -t nfs to mount
-
voy4g3r2
still getting this damn stale thingie
-
voy4g3r2
rwp: i went through enough headaches just getting the synology -> openzfs, would like to keep it centralized to this one machine with all the mounts
-
jbo
rwp, rtprio, ah, so the client still sees/speaks NFS. it's just a "different way" of handling it on the NFS server?
-
rwp
Double check that there are not old mounts *underneath* the mount point of the new mount you are trying. Just a guess at brainstorming a problem here.
-
voy4g3r2
but to make myself NOT go insane, i am going to restart the file server
-
voy4g3r2
and strt again
-
rtprio
jbo: yeah, pretty much
-
rwp
jbo, On the server side before zfs the file systems were exported using /etc/exports file. Since ZFS is somewhat of a total manager tool the contents of the /etc/exports were moved into a "sharenfs" attribute on a dataset so that one could use zfs for all of the management. I recommend doing it that way.
-
voy4g3r2
rwp: nope both client and server are both new installs
-
rwp
But the old way of using /etc/exports is still allowed. Okay to continue doing that if one wants to do that. But I am old school and I converted to the new way and recommend it.
-
voy4g3r2
-
VimDiesel
Title: NFS Shares with ZFS | Klara Inc
-
voy4g3r2
jbo that may help a little to explain what rwp is mentioning
-
voy4g3r2
it shows the transition from /etc/exports to the sharenfs concept in zfs
-
rtprio
jbo: i was going to use restic to backup but haven't gotten around to it yet
-
rwp
Meanwhile backups... If you are wanting to set up send|recv then using ssh is probably one of the simplest ways to do it. I would continue.
-
rwp
I don't in my head have a way to tie send|recv together with nfs mounting. Unless one is doing only send to a file but... Let's not do that.
-
jbo
alright, understood.
-
jbo
yeah I am still debating whether I want to do backups by just giving each host an NFS share or by just using zfs send|recv
-
voy4g3r2
there is the stale fix
-
voy4g3r2
it was the server :)
-
jbo
any thoughts/recommendations on the backup via NFS vs zfs send|recv situation?
-
rwp
rtprio, I am using restic and +1 it is a very good backup tool.
-
rwp
jbo, My thoughts are that for backup I would either use a backup structure like restic or I would use ssh+send|recv+zfsautosnaps
-
rwp
I myself don't have a backup process running with ssh+send|recv+zfsautosnaps, yet, but I am in the journey of setting one up, at a slow background pace. On my largest file server with a lot of data that changes in big lumped chunks.
-
rwp
It takes a couple of hours to do an rsync pass across that NAS. So I am going to be converting it to an ssh+send|recv+zfsautosnap backup. I haven't found anything premade that I like. So I am tinkering one for me together.
-
jbo
rwp, I looked at restic several times. it looked quite decent. not sure how to decide whether to go restic or the zfs send|recv route. I'm looking for a decent mechanism to backup servers to a local backup server
-
rwp
Meanwhile, on other systems, I am using restic to push encrypted backup blobs to remote backup servers and it is working flawlessly for me there.
-
rwp
And I am still using BackupPC for local backup in a couple of places. It's a central pull based system. Needs a trusted central system. Uses rsync.
-
jbo
I am already using zfs send|recv to push backups to a remote server. the main problem I am encountering is that I can't easily send only some datasets selectively.
-
rwp
Previously I have used a bunch of both typical programs and home made backup systems too.
-
rwp
jbo, "can't easily send only some datasets selectively": Could you expand on that some? I don't understand.
-
jbo
rwp, lets assume I have datasets storage/a, storage/b, storage/c and so on. so far I am create recursive snapshots on storage and then send that via zfs-send. however, I ran into the situation where I want to send storage/a and storage/c, but not storage/b.
-
jbo
in my scenario it's because storage/b is my poudriere repo
-
jbo
so traditionally I'd want a switch like --exclude-paths=storage/b but that doesn't seem to be an option.
-
voy4g3r2
rwp: i am having a brain fart, what was that option i should set on the client side (NFS) so it will boot if it does not see the mount?
-
rwp
First, I don't know. I haven't needed to do that yet so haven't fought that issue yet. But I think... Don't use the recursive option, list them all out in a script and exclude the one you want to exclude in the script and then send the remaining ones.
-
rwp
voy4g3r2, "bgnow"??
-
_xor
Gah
-
rwp
voy4g3r2, Yes. "bgnow" is what I am using instead of "bg" which avoids a 60 second delay. See "man mount_nfs".
-
_xor
I guess I can't create a poudriere jail using pkgbase to actually create the jail AND also putting /usr/src in it.
-
meena
_xor: mount nullfs?
-
voy4g3r2
ah yes, okay.. you mentioned that throught he lesson a few days ago and did not have in my notes, just had.. you should STOP client from NOT halting with /etc/fstab entries but did not get it down :)
-
_xor
You mean via hook? I mean yeah that's an option, though I'd prefer not to have to do that.
-
_xor
I just tried adding -S /usr/src to my poudriere jail command, in addition to -m pkgbase=
file:///mnt/repos/freebsd/dists/1400501/pkg, and it didn't put the source in there.
-
rwp
voy4g3r2, I think that must have been someone else who suggested that in the last week because I don't remember it coming up from me in the last month.
-
voy4g3r2
oh, my bad.. someone did
-
voy4g3r2
my notes are bad, i should move these to onenote as my hand writing is horrible
-
rwp
It's fine. If we both suggested the same thing then it is even better! Confirmed in that case. :-)
-
voy4g3r2
exactly
-
rwp
The other option is to calm down when writing notes and to make them more legible? Just saying! :-)
-
voy4g3r2
haha, that is what the wife says for years... i also type way more than i write
-
voy4g3r2
i will take under advicement but probably still just be horrible.. as it is just bad
-
_xor
All right, let's see if this works. I just destroyed the jail@clean snapshot, extracted the source tree into it, and created a new jail@clean snapshot.
-
_xor
Oooh, nice it looks like it actually worked.
-
voy4g3r2
i think i had a hacked up synology nfs file server.. now i am getting grouping issues between both.. my user is in a group but it is not "passing" to the client
-
voy4g3r2
fun times
-
rwp
There is about a half dozen ways of handling groups over nfs, or so it seems. The original way was a fixed array of gids. But it is fixed in size. That is the most reliable though. So the new way is having the server also know about all of the group accounts. Which I don't like because it entangles the server in with the user accounts.
-
_xor
sec=krb5
-
voy4g3r2
yeah well the server has the groups, the client does not
-
voy4g3r2
so it is like do i pull a --manage-id tingie or not
-
voy4g3r2
or do i create the same group on the client aht is on the server and do that way... my luck the gid won't line up anyway
-
_xor
Are you the guy running Samba AD? I can't remember if that's you or someone else.
-
voy4g3r2
nope, not me
-
_xor
If it's you, then you can enable krb on NFSv4 and use that with your AD to have a single mapping of UIDs/GIDs.
-
voy4g3r2
i was playing with afp and time machine backups and all that fun stuff
-
_xor
oh
-
voy4g3r2
because my synology died
-
rwp
_xor, You are thinking of Macer who was talking about AD.
-
voy4g3r2
but must continue this later, dinner time.. thanks for the help as always, further along than i was an hour ago