-
mane
i need to create a virtual network interface
-
mane
i want to create a internal virtual lan
-
mane
any hints how to do that on fbsd?
-
mane
nvm i found the solution
-
cybercrypto
rwp: correct, it is every time. let me check the debug execution if it shows something.
-
cybercrypto
rwp: error happens exactly after the bash completion user dir.
-
cybercrypto
rwp: + BASH_COMPLETION_USER_FILE=/dev/null
-
cybercrypto
bash: SRCDIR: unbound variable
-
cybercrypto
bash_completion_user_file is set to /dev/null (but that is the default, I never touched that).
-
rwp
cybercrypto, It should be the line after the BASH_COMPLETION_USER_FILE=/dev/null line because that one reported and then after that you got the unbound variable.
-
rwp
But again, don't set -u, no one else's shell code is expecting to run with -u or -e active. If you feel you must set it then set it last after everyone else's code.
-
rwp
Find where you are doing a set -u and remove it.
-
rwp
With today's FreeBSD update it's unimportantly nice that "freebsd -kru" reports all three the same again. It's a silly thing I know.
-
mane
i need a complete tutorial to ipsec ^^"
-
mane
i got openvpn sorted but i want ipsec
-
mane
the ipsec tutorial in freebsd is completly worng
-
mane
i managed to set few first steps, then it's completly useless
-
mane
i can manage to set the tunnel up and that it
-
cybercrypto
rwp: Yes, when I mannualy set the variable, the error message disapear. I will investigate if somewhere it is me using -u (not that I changed mannually)
-
cybercrypto
rwp: thanks for the help, keep you posted if any progress.
-
topcat001
mane: have you considered wireguard?
-
mane
i can do openvpn
-
mane
someone else told me about wireguard already
-
mane
i will try wireguard too
-
topcat001
I have moved to wg completely (Free/OpenBSD, Linux).
-
mane
freebsd documentation for openldap is horrid
-
mane
and outdated
-
mane
i need someone to tell me how to set up ldap
-
mane
or at least hand me a proper howto
-
mane
ok there is something usefull in the handbook, finally
-
_0pr_
Hi guys, what is best practice to symlink a script, say ruby one, but it depends on a module in the original folder, when symlinked to /usr/local/bin, running it caused error, cannot find the denpendent module, only running from the original folder works... Anyone has any tips?
-
jb1277976
Is there a list for zfs or storage ? I don't see any. The only thing I'm finding anything about zfs is the handbook and the forums
-
jb1277976
Aw found a list for filesystems
-
tykling
yep, freebsd-fs@
-
jb1277976
Thanks
-
rwp
mane, Last time I hated upon ipsec in the channel I apparently offended some ipsec users. But honestly I think ipsec is a terrible protocol. Never use it. Use openvpn or wireguard instead.
-
mason
Or just ssh.
-
rwp
I also find sshuttle very useful.
-
mane
how would i configure openldap client?
-
eoli3n
Hi
-
eoli3n
how much time could we expect to wait to see 14.1 coming ?
-
eoli3n
is that safe to instal 14.0, or should i wait for 14.1 ?
-
jmnbtslsQE
mane: for ipsec use strongswan
-
pez-}
eoli3n: a friend of mine is running a few 14.0 instances without problems, you may want to look at
freebsd.org/releases/14.0R/errata/#errata though
-
VimDiesel
Title: FreeBSD 14.0-RELEASE Errata | The FreeBSD Project
-
mane
jmnbtslsQE now i rather need to know how to properly set up openldap-server-26.6.6 and the clienets
-
edenist
eoli3n: looking at past releases, it's anywhere from 6-12 months until the first point release, weighted more to the longer side
-
meena
eoli3n: we're already at p3, I hope we've got most wrinkles ironed out by now. but if your use case / hardware / configuration is very special, you might be the lucky one to discover even more bugs. that's just how software works
-
edenist
14.0 should be fine though for a fresh install. Generally I wait until a point release for upgrades from previous versions, as there's generally not rush
-
» meena started with RC3, but only because she missed RC1
-
meena
or rather, ALPHA1
-
eoli3n
ok thanks, then i'll try the upgrade soon
-
nerozero
a scary note on the upgrade page: After upgrading, it is not possible to use freebsd-update rollback to return to 12.4-RELEASE or 13.2-RELEASE.
-
nerozero
of course there is always a possibility for zfs rollback :) so do not forget to place a snapshot prior upgrading
-
meena
To quote Macbeth "I am in upgrades / Stepped in so far that should I wade no more, / Returning were as tedious as go o'er"
-
nerozero
btw I should host ports also for 13.2 bsd versions, my question, will poudriere work as expected on 14.x ?
-
xmj
if you use a 13.2 jail
-
xmj
nerozero: ^
-
nerozero
poudriere do build ports in jails so ... ?
-
vkarlsen
nerozero: Create a poudriere jail for each major version+arch combo for which you want to build packages
-
nerozero
no, my question was - will this ^ work as expected? Because if I try to build a higher version BSD ports on a lower version BSD machine in jails, poudriere worns about it ...
-
nerozero
s/worns/warns/g
-
nimaje
the running kernel only creates an upper limit for the version in a jail, not a lower limit
-
vkarlsen
nerozero: Is your builder box running 14?
-
nerozero
vkarlsen, I still hesitate to upgrade to 14.0, but I would like to test it on a spare machine, so ... as an option I need my ports ( extra configured ) ...
-
» nerozero afk, if you reply to me, please add my nickname, will read later, thanks!
-
mane
so, how do i log in with nis credentials on a nis network client?
-
weust
After upgrading to 14.0-RELEASE I noticed my wifi is terrible. regdomain isn't used as specified in /etc/rc.conf for example. Defaults to US instead of NL. Startup and trying to get it to even work fully takes several netif restarts. I tried searching for it but can't seem to find anything. Anyone know what the issue might be?
-
weust
After a netif stop/start it might get a IP adress and I can ping stuff on my LAN, but not the internet. Another restart makes that work somehow.
-
_xor
Quick poll: Which do you prefer, readlink or realpath?
-
satanist
_xor: realpath
-
nimaje
well, they do diffrent things, but when are you really interested where a symlink points and not the absolut path after resolving symlinks and stuff?
-
_xor
There are instances where that information might be relevant (e.g. symlink should point to some object by convention, and if it doesn't, then create it).
-
nimaje
yeah, but then you exactly know which one you need
-
nerozero
readlink -f
-
nerozero
_xor, actually stat, it support output formatting
-
vlepy
well updated my home page, working on a project since yesterday :DD
-
vlepy
-
VimDiesel
Title: Mirosław Leśniak
-
Demosthenex
when i'm trying to compile a port (bitlbee w/ libpurple), is there a way to have it use the existing pkg pacakges for things like autoconf, xmlto, etc instead of trying to compile them all in ports?
-
mrtnt
Let's say, that I open a socket with IPV6_MULTICAST_LOOP set, send a packet with sendmsg() to multicast address and receive a reply from the kernel addressed to unicast address. Is it possible to receive those replies? If yes, then does it require some kind of specific receive socket configuration?
-
V_PauAmma_V
Demosthenex, "make install-missing-packages" in the port's dir. See ports(7) for more.
-
Demosthenex
V_PauAmma_V: neato!
-
bolik
Hi folks, I have asked this question several days ago and had a few suggestions but none worked. I started the following thread
forums.freebsd.org/threads/upgradin…from-source-is-not-successful.91263 to try and get help from forum and also got some suggestions but they also didn't really help. Basically I tried to upgrade from 13.2-RELEASE to 14.0-RELEASE both via source and via binary updates. Compilation and installation (both world and
-
bolik
kernel) work fine. However after reboot, when issuing freebsd-version -k gives 14.0-RELEASE-p2, freebsd-version -r gives 13.2-RELEASE-p3. I've tried to use various boot environments, but the situation persists. I alo found the following thread
serverfault.com/a/602263 but not sure whether this is applicable. Any help is appreciated.
-
VimDiesel
Title: Upgrading 13.2 -> 14.0 from source is not successful | The FreeBSD Forums
-
VimDiesel
Title: Conflicting information about the running kernel version in FreeBSD - Server Fault
-
Hello71
speaking of install-missing-packages, why does it include build-dependencies of dependencies? shouldn't it let pkg resolve dependencies?
-
unixwitch
any ideas what happened to this zfs pool? host memory corruption maybe?
bsd.to/CA0p
-
VimDiesel
Title: dpaste/CA0p (Plain Code)
-
rwp
unixwitch, First, I don't know, but are there any kernel errors logged to /var/log/messages?
-
unixwitch
rwp: no
-
rwp
And then I would check the SMART data from each of the drives, starting with the ada0 and ada1 drives in the cache. smartctl -l error
-
rwp
Then I would look at the "zpool status -v" output as -v will add information about specific files that are affected.
-
unixwitch
rwp: i was assuming it wasn't a disk error due to lack of checksum errors, but i guess i'll check that (i didn't get any error mails from smartd though)
-
unixwitch
i included the zpool -v output in the paste, no files are listed there, it seems to be only metadata corruption
-
unixwitch
i wouldn't mind losing the data on this zvol (or its snapshot? as the zvol itself seems fine) since it's backed up anyway, but i'm worried the zpool won't import properly if i reboot now
-
rwp
Oh, that was -v there, sorry I didn't see it because I didn't see any affected files. I guess that is good.
-
unixwitch
smartctl -l error doesn't show anything concerning, a couple of disks have a small number of corrected errors but that's expected given their age
-
rwp
Here is an example error from my system from earlier in the year that shows the files listed with -v, just for an example of what it might have said:
bsd.to/PnYw/raw
-
VimDiesel
Title: PnYw
-
unixwitch
yeah, i saw that last month when i had an unrelated instance of data corruption due to the ossl(4) bug :-)
-
unixwitch
(which has been fixed and i don't have ossl(4) in the kernel anymore anyway, so it's not a repeat of that)
-
rwp
In my case it was a hard crash of the system. In my case the affected files were all temporary and log files that could go away. I was able to delete the files and snapshots and then scrub things clean.
-
unixwitch
i'm going to try deleting the affected dataset entirely a bit later (data/vm/media/disk1) but i need to wait until people aren't using it first. i suspect that might fail though because it seems like this prevents zfs from enumerating the snapshots at all
-
rwp
It's listed as an I/O error though. I don't see how it can be an I/O error if the kernel is not also listing it in a log file as an I/O error.
-
rwp
And if it is an actual I/O error then I expect to see a physical hardware manifestation of the problem. That's good and bad. Good because there is redundancy for the devices, bad because the controller is shared. But the actual problem has yet to be determined.
-
rwp
And if it is not an actual I/O error then it does seem like deleting the affected data, scrubs, and such should clear it out. But if it is not a hardware problem then why did the array get into that state?
-
rwp
I know you have asked yourself all of these questions already. I am really just confirming your analysis.
-
unixwitch
i think EIO in this case is just a general error code when ZFS can't read the data for some reason, not an actual disk I/O error
-
unixwitch
i'm waiting to see if scrub fixed it, that's going to take a while though: 2.23T / 18.8T scanned at 3.20G/s, 519G / 18.8T issued at 745M/s
-
rwp
unixwitch, I'll just mention some random thoughts and you pick out any that might apply. Are backups otherwise good and current? Do you have a spare disk on the shelf just in case? I run a SMART short selftest daily on every disk, I stagger the times so only one test is running on one disk in the array at any time.
-
unixwitch
rwp: i have a cold spare disk but since there's no indication anything is wrong with the disks, i'm not sure what i'd do with it :-) only part of the pool is backed up because there are very large, but low-value files (~10TB worth) that i don't want to pay backup costs for... i thought that was a reasonable compromise, but now i'm running into monthly data corruption issues, i might rethink that. and yes, smartd is set up to run ~weekly self tests
-
rwp
Depending upon the drive I used to be able to run long selftests but on the drives I currently have the long selftests are several hours long and degrade performance for all of that time and I stopped running long selftest on my drives. The short ones are okay still though. YMMV.
-
unixwitch
i have it staggered so each disk runs a long test at a 2-two interval, so each disk is tested once per month. the test takes ~18 hours on these disks though so it still hurts performance a bit... i've been meaning to look into running sectioned/partial tests
-
unixwitch
s/2-two/2-day
-
unixwitch
(aiui, that allows to e.g. test 2TB of the disk per day, so you can run all the tests during off hours... but i don't know if SCSI disks support this or if it's ATA-only)
-
rwp
There is no canonical right answer. You have to look at your own setup and make a judgement call individually. It's all different depending upon arrays and the collection of drives and the controller used.
-
rwp
I am still fixated on the zfs array reporting being an I/O error but the kernel not logging an I/O error. That's shaking my model of the machine.
-
rwp
Your data is probably okay though.
-
unixwitch
rwp: zfs returns EIO whenever it can't read the data, which includes corrupted pools. it doesn't always correlate with a physical I/O error
-
unixwitch
it *should* at least correlate with a checksum error but in this case it seems like either a ZFS bug, or some sort of memory/cpu hardware issue
-
unixwitch
(i'd say controller hardware issue, but everything is either mirror or raidz, so a controller issue should have been caught as a checksum error)
-
rwp
I am just working from the experiences I have had so far. But I am very happy that I have not hit every storage array problem! Happy to avoid them. But have hit a few over the years. So just relating based upon those. (The saying is, We are always fighting the last battle.)
-
rwp
I look forward to hearing the results of the currently running scrub. Let's expect that the scrub will repair everything unless and until we learn otherwise.
-
rwp
Good luck!
-
jb1277976
Hmm I'm reinstalling freebsd and it's taking forever to boostrap pkg
-
jb1277976
Anyone having issues with the server ?
-
meena
jb1277976: try Ctrl+C and restart the bootstrap?
-
meena
"the server" is a CDN
-
jb1277976
Yea did that and tried another they same issue
-
jb1277976
That's probably why
-
jb1277976
Anyway to fix ?
-
jb1277976
Even if I ssh to it it still gonna try to bootstrap
-
unixwitch
jb1277976: does your networking work? can you 'ping' anything?
-
unixwitch
oh is this during bsdinstall
-
jb1277976
Yes I'm in the network chatting here
-
jb1277976
It finished let's see how installing xorg goes
-
jb1277976
It's stalled
-
jb1277976
Can I change the ftp or something
-
unixwitch
you can edit /etc/pkg/FreeBSD.conf, i think you're supposed to copy it to /usr/local/etc/pkg/repos.d/FreeBSD.conf and edit it there though
-
unixwitch
'repos' not 'repos.d' sorry
-
jb1277976
Can I change the mirror there ?
-
unixwitch
jb1277976: yes, just put in the URL to the mirror you want to use
-
unixwitch
like i have this: url: "
pkg.eden.le-Fay.org/${ABI}/latest" (but that particular example won't work for you since that's a private mirror)
-
jb1277976
Where is the original freebsd.conf ?
-
unixwitch
/etc/pkg/FreeBSD.conf
-
jb1277976
unixwitch where did you find that mirror?
-
unixwitch
jb1277976: i own that particular mirror, but you can find a list of public mirrors here:
pkg.freebsd.org
-
VimDiesel
Title: pkg0.nyi.FreeBSD.org
-
unixwitch
(in the 'other mirrors' section at the bottom of the page)
-
jb1277976
Thanks
-
jb1277976
unixwitch can you pastebin your freebsd.conf I'm getting no srv records
-
jb1277976
Want to make sure mine look the same
-
unixwitch
-
VimDiesel
Title: dpaste/TTmW (Plain Code)
-
unixwitch
jb1277976: note that only pkg.freebsd.org has SRV records, you don't need those if you pick a specific mirror (pkg.XXX.freebsd.org)
-
jb1277976
Ok
-
jb1277976
Brb
-
jb1277976
back up
-
unixwitch
what was the issue/fix?
-
» unixwitch is wondering about switching from zfs to gmirror/gstripe on the basis that while ZFS does good work in detecting errors, a single error can render the entire pool broken which is not ideal behaviour
-
mason
unixwitch: The "scrub of death" is a bit of a myth.
-
mason
-
VimDiesel
Title: Will ZFS and non-ECC RAM kill your data? – JRS Systems: the blog
-
mason
(Funny enough, I was just listening to a podcast about misinformation and disinformation:
bigpicturescience.org/episodes/skeptic-check-naomi-klein
-
mason
)
-
unixwitch
meena: tl;dr? i have ECC RAM so i don't thin kthat applies to be
-
unixwitch
and i have no idea what "scrub of death" refers to
-
meena
I'm not mason
-
unixwitch
oops, sorry
-
unixwitch
mason: ^
-
meena
Also, i should learn a romance language