-
doug713705[m]
OMG, the quarterly update remove my installed vscode and don't provide it anymore
-
doug713705[m]
I'm new to freebsd but this seems wrong to me. I really need that vscode !
-
mason
doug713705[m]: There should be a changelog that says why.
-
doug713705[m]
didn't saw that changelog before applying the upgrade.
-
doug713705[m]
I knew that new version of vscode were unavailable for some reason related to blacklisted electron version in the build environement.
-
doug713705[m]
But i did not expect to have vscode uninstalled !
-
doug713705[m]
-
VimDiesel
Title: 270565 – electron* ports are blacklisted from the build
-
doug713705[m]
the signal-desktop app also has been uninstalled, I guess for the same reason. Those 2 apps, vscode and signal-desktop, are electron based
-
mason
I thought someone noted Chromium also going but I haven't verified that myself.
-
doug713705[m]
but for now, I need to learn neovim from scratch so I can do my work :(
-
mason
vim is pleasant
-
mason
doug713705[m]: IMHO, it'll be time well spend and a skill you'll use for a lifetime.
-
xtile
I only looked at 'pkg upgrade -n' but I didn't see chromium being uninstalled.
-
doug713705[m]
I use vim but it's not as complete and featur rich as vscode
-
xtile
I just use vi (as in nvi)
-
xtile
but I should probably learn other things too
-
doug713705[m]
so neovim will be a life saver but I would have prefered to plan this learning !
-
mason
nvi doesn't let you do things like four-space tabs.
-
mason
What's neovim as compared with vim?
-
mason
s/neovim/& offer/
-
doug713705[m]
neovim as some "modern look and feel" + plugins and modern features like one can find in vscode (or so)
-
xtile
mason: :set ts=4 ?
-
mason
xtile: That's still hard tabs though, and then anyone without that setting will see a very funny version of my files.
-
doug713705[m]
-
VimDiesel
Title: GitHub - LazyVim/LazyVim: Neovim config for the lazy
-
xtile
ohhhh
-
xtile
I see what you mean.
-
mason
xtile: Of course, I turn that off depending on the precedent set by a file I'm editing if it differs.
-
» xtile nods.
-
xtile
Hmm. I just tried...
-
xtile
:set expandtab alongside :set ts=4
-
xtile
I get 4-space indenting with this
-
mason
xtile: Is this -current? I heard something was going to happen in -current with both /bin/sh and nvi that'd be interesting, unless I'm making things up.
-
xtile
Nope, it's in 13.1-RELEASE-p7
-
mason
(I think it was some sort of tab completion thing with sh)
-
mason
hm hm
-
mason
Sure enough.
-
mason
Popped those in my .exrc and it did as you say.
-
xtile
\o/
-
mason
Hm, backspace doesn't delete a full tabsworth of autoindent, but ^d is probably enough.
-
mason
Hm, I think I've found my second-ever bug in nvi. set expandtab, set ts=4, set ai and then tab in and ^d back out. If you tab in three times, the first ^d moves you back four, but the second one erases everything.
-
xtile
interesting
-
mason
The first bug I found, decades ago now, was similar. Delete (dd) an empty line and if it's next to the last line in a file it'd delete that too.
-
mason
That one's long since fixed.
-
mason
xtile: Thank you, though. This is interesting and might break my "dependence" on vim.
-
xtile
\o/
-
xtile
I'm fine with people using whatever works best for them.
-
mason
I use Emacs sometimes too.
-
mason
And sometimes I use viper-mode inside Emacs.
-
xtile
Though I do get mildly salty when people say "Don't you mean vim?" when I say I use vi :^)
-
mason
Yes.
-
xtile
very mildly so
-
mason
At least vim isn't objectionable.
-
last1
is there any good solution for zfs high-availability on multiple nodes ?
-
last1
commercial or open source
-
mason
last1: ZFS, I'm not sure. That's what OneFS does, and that's FreeBSD based but not, I think, ZFS.
-
mason
-
VimDiesel
Title: OneFS distributed file system - Wikipedia
-
last1
yeah, I know what it is
-
last1
costs like a million $
-
mason
It's cheap compared to, say, NetApp.
-
last1
there are some other options, like drbd, rfs-1
-
last1
for zfs HA
-
last1
but I want to know what people here thought the best way was
-
mason
Yeah, compose your pool out of iscsi from multiple hosts or something. Unsure if there's anything packaged that does it.
-
mason
Rolling your own wouldn't be terrible.
-
» _xor just read scrollback
-
_xor
Oh yeah, good point. Forgot about FIPS certification in terms of BoringSSL vs. OpenSSL, although...
-
_xor
-
VimDiesel
Title: FIPS 140-2
-
_xor
-
VimDiesel
Title: OpenSSL FIPS 140-2 Validation Certificate Issued - OpenSSL Blog
-
_xor
Not sure how current the one for BoringSSL is, but only the "core" is FIPS certified, whereas it appears OpenSSL as a whole is fully certified.
-
_xor
meena: Normally I would agree with the sentiment of forking vs. contributing upstream, except when it comes to crypto, I personally defer to concensus "domain experts".
-
_xor
I remember reading that the OpenBSD guys forked LibreSSL because the codebase as a whole for OpenSSL was so terrible and because it would require breaking changes to fix anyway, so forking apparently made more sense in that specific case.
-
_xor
Hmm, LibreSSL supported was initially added and then dropped on Alpine Linux, Gentoo Linux, & Python 3.10+. I wonder if it broke too much stuff & OpenSSL was considered (audit?) to be "ok" now or if there was some kind of licensing/culture issue clash.
-
meena
libressl broke API a few times, and many found it not worth the effort to follow that
-
_xor
Apparently, according to this at least, OpenSSL broke back-compat and LibreSSL had back-compat as a critical goal, and so OpenSSL 1.1.x changes broke on LibreSSL...
-
_xor
-
VimDiesel
Title: williewillus comments on What do you think about the recent drop in LibreSSL in many Linux distros?
-
_xor
Which is kind of lame, I guess, but I don't know enough to have any real opinion. I also remember LibreSSL having an issue with OpenSSL bugs not being announced in advance to them (but it was announced to others?), not sure if they wouldn't sign the disclosure embargo, though apparently Google decided early on to play nice with LibreSSL.
-
_xor
Ah, 1.1.1k fixed the issue linked by /u/joshhatesusernames (CVE-2021-3450).
-
cedb
any recommandation for a pci sata expansion card? (running 13.1)
-
dk
morning! is PkgBase still a viable option? i've heard rumors of its demise now and then. i currently have some non-tier-1 boxes on 12 that i use PkgBase for. should i keep doing that for (the upgrade to) 13 as well, or are there other recommendations?
-
meena
dk: 13 worked very well for me on PkgBase
-
dk
that's great to hear, ty
-
meena
-
VimDiesel
Title: PkgBase.live: add an un-update by igalic · Pull Request #143 · freebsd/freebsd-doc · GitHub
-
_xor
meena: What kind of hardware is required for it?
-
meena
-
VimDiesel
Title: website/howdo.md at main - website - Codeberg.org
-
meena
but, I've had more CPU and less, CPU and I've had more storage and less than that, it's all workable. but right now, i think, it needs to be amd64, because
freebsd/poudriere #1048
-
VimDiesel
Title: PkgBase: why does poudriere require qemu to cross build FreeBSD? · Issue #1048 · freebsd/poudriere · GitHub
-
VimDiesel
1048 – ep driver fails to detect card when told specific values
bugs.freebsd.org/bugzilla/show_bug.cgi?id=1048
-
cristiioan
is anyone working on remaking the www.freebsd.org website to look more modern?
-
yuripv
ugh
-
mage
any idea why with a DEFAULT_VERSIONS+= python2=2.7 python3=3.11 python=3.11 in my make.conf I'm getting tons of: "Ignored: Unknown flavor 'py39', possible flavors: py311" when building with Poudriere ?
-
mage
I don't understand: 1) why it tries to build @py39 flavors when default python version is 3.11 ? 2) why @py39 flavors fail when it is the default Python version?
-
mage
should I set PYTHON{2,3}_DEFAULT too in make.conf?
-
angry_vincent
maybe you need to purge @py39 flavors, firstly
-
mage
what do you mean by purge ..?
-
angry_vincent
pkg delete
-
sfox
my server is still frozen
-
sfox
trying to delete zfs datasets
-
sfox
it's been over 24 hours
-
sfox
should i give it another night
-
sfox
would i risk anything forcefully powercycling it?
-
sfox
how could i fix it assuming i can regain a shell
-
mage
angry_vincent: it's with poudriere
-
nimaje
do you have some example port for which that happens?
-
coreystephanphd
Little unofficial news item: 13.2-RELEASE images are already available for most architectures, e.g. at
download.freebsd.org/releases/amd64/amd64/ISO-IMAGES/13.2 for amd64
-
VimDiesel
Title: Index of /releases/amd64/amd64/ISO-IMAGES/13.2/
-
mage
-
VimDiesel
Title: gist:ea5f202ae151e063952da8cae8b423f6 · GitHub
-
nimaje
ok, no idea where that should come from for devel/py-pycparser except for explicitly listing devel/py-pycparser@py39 hm and except for a bulk -a the better question would be which port pulled them in
-
nimaje
meena: as qemu not being build for aarch64 is a problem with the ports tree, is there a report on bugs.f.o? and shouldn't there be a ONLY_FOR_ARCHS_REASON for every ONLY_FOR_ARCHS (or something like that)?
-
meena
nimaje: it's been there since the beginning
-
nimaje
but is there a problem report for the missing ONLY_FOR_ARCHS_REASON? the port eihter unnessesarry restricts archs or is missing _REASON, maybe both and that upstream problem report reads like it should be supported
-
meena
nimaje: i haven't had time to test it
-
meena
I'll check
-
meena
-
VimDiesel
Title: Bug List
-
meena
-
VimDiesel
Title: 270685 – emulators/qemu-user-static: missing ONLY_FOR_ARCHS_REASON
-
nimaje
seems to be quite some ports that are missing _REASON if I did my check correct for f in */*/Makefile; do awk '$1 == "ONLY_FOR_ARCHS_REASON=" { has_reason=1; } $1 == "ONLY_FOR_ARCHS=" { has_archs=1; } END { if (has_archs && !has_reason) { print(FILENAME " is missing ONLY_FOR_ARCHS_REASON=") } }' $f; done
-
meena
nimaje: you wanna open hugs for all of them?
-
yuripv
you said the forbidden word!
-
» debdrup pretends to gasp, shrugs, and goes on with whatever
-
debdrup
Oh right, I was reading a blog post about generative algorithms and copyright.
-
meena
any consensus on that topic yet?
-
debdrup
meena: this is just the opinion of one person, of course - but I think she's got it right, that at present nobody can risk using it for commercial purposes, since it's an entirely open question and the worst outcome is that you get sued for more money than you can reasonably expect to make of it
-
last1
debdrup: are you aware of any viable zfs ha solutions for FreeBSD ?
-
last1
I was considering drbd or rsf-1 but I think there might be more
-
debdrup
last1: please don't ask me.
-
debdrup
If I know, or think I know, the answer to a question posted, I'll answer - but don't expect me to know the answer.
-
debdrup
-
VimDiesel
Title: R. L. Dane: "Oh #FreeBSD, you just took the negative space del…" - Fosstodon
-
meena
if you uninstall chromium in that process, you'd free up double that
-
meena
I wonder how badly ZFS performs on Ceph…
-
meena
Also: don't use drbd if you only got two nodes
-
last1
why not ?
-
last1
because of split-network issues ?
-
mage
last1: what we do here is: we have two "big" machines, on each of them we create a zvol and we export them through iscsi to $servers, and on the $servers we create a zpool mirror over the two iscsi blocks
-
mage
the advantage is that you have only one two LUNs (although there are many disks) and you don't have to resync the whole volume where one of the two zvol dissapear (reboot, upgrade os, etc)
-
last1
so when the disconnected zvol rejoins, it doesn't have to resync ? how come ?
-
meena
last1: yeah, you're pretty much guaranteed lose data in a split brain situation. you need a majority quorum, which requires at least three nodes
-
last1
meena: I guess this is why that rsf-1 solution requires a serial cable between the two nods
-
last1
*nodes
-
last1
but I haven't had a server with serial port in quite a while lol
-
» meena has almost always just used serial over usb
-
mage
last1: because zfs knows exactly which blocks have been modified so it only writes the delta
-
meena
last1: mage's solution sounds pretty cool. so perhaps the question should actually be: what kind of hardware, network and price restrictions do you have?
-
last1
mage: that's not a bad solution, however we'd rather export the data via NFS
-
last1
so then the problems lies in creating yet another HA floating-ip NFS server-cluster
-
mage
otherwise there is also minio, but your need 3 nodes
-
mage
last1: yeah, I must admit that the NFS server here is the only SPOF and I haven't found a good replacement
-
mage
maybe Minio, but I haven't tested it yet
-
meena
I think you'd have to pay for minio for more than one node to be usable
-
last1
maybe: export serverA blocks to serverB , serverB to serverA, have NFS on each with pacemaker, floating IP, etc
-
last1
right now my hardware is dual intel sp2 cpus, hbas and 6 x 7.68Tb Intel S4520 ssds per node
-
last1
each node is connected via lacp to vpc-linked switches
-
last1
@10gbps
-
mage
another solution is to use something like zrepl, snapshot every minute, and use CARP with devd scripts
-
mage
but.. beware of split-brain
-
last1
mage: how about that idea to export the drives to each other ?
-
last1
and run nfs locally on each node directly
-
mage
we used something similar in the past (a pool over x local disks and x iscsi luns
-
mage
you've to test it carefully
-
last1
but you stopped using it because of issues ?
-
last1
also, how do you export the iscsi luns ? drbd ?
-
last1
I have also seen some references to HAST on some older mailing lists
-
last1
is anyone using that ?
-
meena
last1: again, if this compares to drbd, you need three boxes
-
last1
these solutions sound like potential pitfalls everywhere, I might just do what everyone does on the forums. sending snapshots and manual failover
-
meena
basically, with almost any clustering solution you need three or five or seven etc nodes.
-
meena
and the ones that work with two nodes are probably selling snake oil, or are lying about one or more parts or CAP
-
meena
*of CAP
-
last1
I was actually considering linbit, they do sell a 2-node solution but I had lots of questions that didn't sit right
-
last1
hence, here I am
-
meena
last1: they also sell Desaster Recovery, so maybe that's related
-
FreeFull
I've installed FreeBSD 1.0 on an emulated 486 with 12MB of RAM
-
FreeFull
Just got X11 working yesterday
-
FreeFull
Hoping I'll be able to get networking working too, today
-
meena
FreeFull: exciting
-
FreeFull
I'm a bit surprised that the tar command included with FreeBSD 1.0 is GNU tar
-
» paulf is a newbie only starting using FreeBSD with 2.1
-
last1
meena: that's funny :)
-
FreeFull
Ooh, good sign, got an IP address from DHCP
-
FreeFull
Just gotta figure out how to configure routed
-
FreeFull
Seems like the answer is not to use routed, and instead just set a route manually
-
FreeFull
It's working
-
RoyalYork
mason, I figured out why I couldn't get internet access from my jail last night
-
RoyalYork
I was testing jails on my virtual machine (which is on my lan) and on my jail I assigned a new IP address from my lan (which worked)
-
RoyalYork
last night i as trying to configre the jail on a VPS and I assigned the jail its own local ip number (which didnt work)
-
RoyalYork
so today I assigned the jail on the vps its external ip number and voila, it worked
-
RoyalYork
I ended up buying FreeBSD Jail Mastery and will get to Chapter 9 on networking to figure out the rest
-
RoyalYork
Thanks for your assistance
-
nmz-
interesting, unplugged my keyboard, replugged, layout is set to standard xorg
-
debdrup
FreeFull: libarchive didn't exist until the mid-2000s
-
FreeFull
I see, so up until then GNU tar was the only real option?
-
debdrup
Well, as the HISTORY subheader for tar(1) mentions, GNU tar wasn't invented whole-sale.
-
debdrup
Before it was called GNU tar it was called pdtar and was developed on SunOS.
-
debdrup
Oh, my apologies. Apparently it originated on 4.2BSD.
-
la_mettrie
have you used it with tapes?
-
debdrup
At least according to
archive.org/details/PDTAR-1.21-src which is probably about as authorative as it gets, considering John wrote pdtar and uploaded that.
-
VimDiesel
Title: Public Domain (PD)TAR 1.21 Source Code : John Gilmore : Free Download, Borrow, and Streaming : Internet Archive
-
FreeFull
Interesting
-
debdrup
la_mettrie: pdtar? No, before my time.
-
FreeFull
Kinda surprising, I can X forward mpv into the FreeBSD 1.0 guest and it works
-
FreeFull
Very slowly though, but that's to be expected
-
debdrup
It's not that surprising; X hasn't really changed for... a VERY long time.
-
msiism
This reminds me, I wanted to see how Wayland would work for me on FreeBSD.
-
debdrup
X11 it self dates back to the 1980s.
-
debdrup
msiism: when I occationally use it for things that aren't alacritty and Firefox, it seems to work fine.
-
msiism
Good to know.
-
FreeFull
X11 from 1993 lacks a lot of the extensions that newer programs depend on
-
debdrup
That's not exactly surprising.
-
debdrup
Backwards compatibility is a fair bit easier than forwards compatibility.
-
meena
it's pretty cool tho, that you can just send a video thirty years into the past
-
kraptv
no notes about FreeBSD 13.2 RELEASE just yet, anyone?
-
nmz-
FreeFull: can you xforward anything and it not be slow?
-
FreeFull
xterm performance is ok
-
FreeFull
When xforwarded, that is
-
FreeFull
xlinks runs ok too
-
mason
RoyalYork: Glad to hear it! As a general role of thumb, anything you can do on the host, the jail can do too. Likewise, if something isn't valid for the host, it won't work for a jail either.
-
mason
rule of thumb*
-
last1
is an ashift of 12 a good value for intel enterprise ssds on zfs ?
-
last1
or can I find the optimal value
-
last1
*how
-
mason
-
VimDiesel
Title: Samsung SSDs a right ashift size for ZFS pool? | Proxmox Support Forum
-
mason
TL;DR you want to accomodate your device's actual block size, which may or may not be visible.
-
last1
yep, it's not visible :|
-
yuripv
last1: is it nvme?
-
yuripv
nvmecontrol identify <namespace> should list the optimal lba format, which includes the blocksize
-
last1
no, intel ssd dc s45XX series
-
last1
by default I see the installed sets an ashift of 0
-
yuripv
the question was is it nvme or sata
-
last1
*installer
-
last1
s45xx are all sata drives
-
yuripv
ok.
-
debdrup
kraptv: it'll happen when it does.
-
last1
so 0 means auto-detect, how can I know what it auto-detected ?
-
mason
last1: It likely can't, and I'd expect 12.
-
mason
last1: I'd tend to look online for specs if anyone's published them.
-
last1
alright, but in the meantime, if it just shows 0, is there a way to see what it's working with ?
-
debdrup
There's a couple of sysctls that control the minimum and maximum values for the automatic ashift adjustments.
-
mason
last1: You can probably explicate 13. Not sure there's a way to say "tell me what you're going to guess" without actually doing it, which might be suboptimal in this case.
-
mason
But I'd research first.
-
last1
yep, min max shows 12 - 16
-
yuripv
vfs.zfs.min_auto_ashift=12
-
debdrup
There's never really a downside to having an ashift that's a bigger exponent than the equivalent number of bytes in a sector.
-
last1
I was just worried it would pick something like 4
-
last1
just file.physical_ashift is 9 , as well as file.logical_ashift also 9
-
debdrup
It's only a problem if your ashifts exponent results in something smaller than the sector size of the disks you're running on (which can't really happen, because the default is 12 which works out to be 4096, ie. even drives that pretend they're 512 while being 4k in reality don't get cheated).
-
debdrup
Where are those values from?
-
last1
I just did: sysctl -a | grep -i ashift
-
debdrup
I don't see those sysctls on my system. *shrug*
-
last1
vfs.zfs.vdev.file.physical_ashift
-
yuripv
that's for file based vdevs
-
debdrup
Oh, you stripped part of the OID. ;)
-
yuripv
not something you use in real life :)
-
last1
yes :)
-
debdrup
That only matters if you're creating files via truncate(1) to use ZFS on, ie. when you're testing ZFS for the very first time.
-
debdrup
That's also what sysctl -d would've told you.
-
debdrup
Not all sysctls are documented, but a reasonable number of them are - and it's quite useful ;)
-
meena
mason, RoyalYork: NFS only works as of last week ;)
-
mason
meena: In which context? I'm kind of interested in getting into NFS with built in TLS, although it's probably useless until we're all geared up for post-quantum crypto.
-
meena
4096/12==341.33333333333
-
meena
mason: you can now run an NFS server in a vnet jail
-
meena
anyone else type bc when looking for a calculator on android?
-
yuripv
meena: 2^12
-
debdrup
Why're we dividing 4k with 12?
-
mason
Oh, hm, I guess I hadn't tried it before. Interesting.
-
debdrup
meena: I'm pretty sure I've been using NFS since before last week. :P
-
last1
do you guys use autotrim on your pools ?
-
» debdrup eyes /etc/auto_master
-
debdrup
last1: I do on my T480s.
-
debdrup
Before enabling it on anything, I'd recommend doing a cursory look into whether your SSD is one of the ones that has quirky behaviour regarding TRIM (it's more common than it has any right to being).
-
debdrup
FreeBSD has a list of devices with that known quirk, but that's best-effort since manufacturers don't exactly go out of their way of informing anyone (least of all any FreeBSD folks) of when they send out something that can end up making life miserable for people.
-
last1
ok, so if it's unknown status it's safe to run trim every x days or not at all ?
-
debdrup
If you're a hyper-scaler or a direct purchaser from the manufacturer, they may send out a PCN - but that requires a considerable amount of volume to get to that point, and even then they're more likely to just say "hey here's an update, maybe it's a good idea to update" (which, I might add, we've known about since the SSD reliability study that was published at FAST '20).
-
debdrup
Well, one way to check would presumably be to use trim(8) on a disk that you're intending to use, and see if ZFS reports any errors - because ZFS is designed to report errors, even if the disk won't admit to them.
-
last1
and if it doesn't report any errors, could that still lead to premature wear out ? I keep on reading this behavior on various pages/forums
-
debdrup
TRIM is meant to negate premature wear-out, and badly implementing it usually leads to dataloss (silent or otherwise).
-
debdrup
I'm not sure I see the workload where TRIM leads to premature wear-out.
-
debdrup
If a SSD can wear out by enabling TRIM, it's probably QLC and therefore not meant to be used more than once anyhow.
-
last1
reading the Intel docs, they have this phrase: TRIM is only supported on RAID 0. Beginning with the Intel® 7 Series chipset. the driver supports TRIM on SSDs in a RAID 0 configuration.
-
last1
I thought it was an individual drive setting
-
debdrup
I've no clue what that means.
-
debdrup
I think it's referring to the softraid implemented by graid(8), so I don't think it's relevant in either case.
-
debdrup
It's also talking about a decade-old chipset.
-
last1
-
VimDiesel
Title: SSD D3-S4510 series with RAID1 and trim function - Intel Communities
-
last1
it's from last year...
-
debdrup
It's still got nothing to do with ZFS.
-
debdrup
It's entirely relating to Intels softraid implementation.
-
debdrup
It doesn't even have anything to do with gmirror(8).
-
last1
hmm, ok, I guess it got me confused because I can't find other specs where they say whether they support trim or not
-
last1
in any case, my 6 drive raid 10 ssd setup does about 2GB/second. versus 500Mb in Debian's lvm
-
last1
can't believe I even considered using that
-
debdrup
Like I said, they're not likely to publish that kind of information.
-
oo_miguel
Hi, I am new to freebsd andI wonder If I am required to use `pkg` as well as `freebsd-update` on a regular basis to make sure my system is up to date?
-
wtw
Yes, that's advisable.
-
oo_miguel
Does `freebsd-update` manage/update some parts of my system that are not part of any package?
-
la_mettrie
yes, kernel and userland
-
oo_miguel
Oh ok, makes sense now. Thanks
-
debdrup
And libraries and documentation (manual pages, examples, et cetera)
-
oo_miguel
I'm coming from debian linux where there is no such distinction. Everything is managed by one package manager. So this separation confused me initially. But now I see for myself that e.g. `pkg info` does not list any kernel related packages.
-
yuripv
there's PkgBase WIP
-
rwp
oo_miguel, In FreeBSD there is a division between "core" (base system) and "ports" (also binary packages).
-
oo_miguel
Good to know. I personally have no problem using `freebsd-update` for now on my 13.1, once I learned this is required. No idea if it becomes more problematic on cutting-edge versions. i.e. If binary patches are provided.
-
rwp
These are managed separately and each is updated using a different update process.
-
oo_miguel
I think I used only `core` so far, unless the ports are used automagically as well
-
oo_miguel
oh
-
rwp
Assuming you are using binary updates using freebsd-update and pkg installing binary packages (the alternative is a source compiled install, also good) then
-
oo_miguel
or I did like: pkg install vim # does it mean I used ports?
-
oo_miguel
need to read more of the documentation I guess
-
rwp
"freebsd-update fetch" will fetch the new core files and "freebsd-update install" will install the new core system files. Without touching ports in /usr/local.
-
rwp
"pkg upgrade" will upgrade the binary installed ports in /usr/local.
-
rwp
By default the 13.1-RELEASE (for example) install will set up a system with the "quarterly" release upgrades. That's fairly conservative and stable.
-
oo_miguel
I believe I heard/read that using the source-versions will let me finetune compiling options to my preferences
-
rwp
There is also a daily and weekly.
-
oo_miguel
sounds worth a try as well.. at some point
-
rwp
Yes. You can compile everything from source.
-
rwp
Also, "freebsd-version" shows your current core versions, plural. I suggest always using "freebsd-version -kru" to show all three of the versions in the pipeline.
-
oo_miguel
I have to confess that for now I run it on my raspberryPI only ... so guess I will wait with the from-source-compilation until I put it on my desk or lap
-
rwp
I probably would not want to run a source compilation on a Raspberry Pi. But for those are about to try I salute you! /o
-
rwp
I'll mention that one of the advantages of core being a fully cohesive unit installed all together is that it always works. There is never any problem with having the wrong initramfs tools or other mixed out of tree problems as sometimes hit by accident on other systems.
-
rwp
And the ports are separated off into the /usr/local tree and so if the core is updated including shared libraries then ports might/possibly/likely need an upgrade to get new shared library linkages. But the core always boots allowing one to upgrade the ports on the new core. Very reliable separation of powers.
-
oo_miguel
I appriciate that.
-
rwp
Lastly I am one of the zfs proponents (it's truly awesome) and at times (such as from FreeBSD 12 to 13) new versions of ZFS become available.
-
mason
rwp: That part is pernicious. /usr/local is for the local admin.
-
rwp
That's a separate upgrade to be done separately. Because holding off on that upgrade allows one to use the Boot Environments to boot the old kernel in the event of a problem.
-
oo_miguel
zfs - also something I plan for the future. but again not on a raspberry ;)
-
rwp
This allows problems to be worked out before deciding to upgrade the ZFS file system under it.
-
mason
oo_miguel: People run it on RPis.
-
rwp
mason, re /usr/local, Yes. That was a hard thing for me to accept, that FreeBSD takes over /usr/local when it is my dog given right to own it myself as the local admin!
-
rwp
But life is a compromise. And the overall result is very good. So we keep on keeping on! :-)
-
oo_miguel
Last (for today) quastion. Tried the `freebsd-version -kru` and seems my userland is 13.1-p7 while installed&running kernel is 13.1-p6
-
oo_miguel
Is this expected?
-
rwp
Yes. Expected. At that patch release there was no need for a new kernel.
-
rwp
That difference in versions caught me the first time too. Which is why I now suggest -kru all of the time. The differences can be important. But it is good to know regardless.
-
rwp
If the other two are different then it means a new kernel and core were installed but the system has not yet been rebooted to it yet. Needs a reboot.
-
rwp
So really it is -kr is kernel and core and _should_ be in sync, unless pending a reboot, and -u is userland.
-
oo_miguel
Right, checked before the reboot and this was the case indeed
-
oo_miguel
Ok thanks a lot. Learned enough for today!
-
oo_miguel
And most importantly updated my FreeBSD :)
-
rwp
Come back any time! We are here all week. Remember to tip the wait staff! :-)
-
oo_miguel
Allright, Just added tha channel to my auto-join list.
-
rwp
mason, "pernicious"? /usr/local? I am still contemplating what you said there...
-
rwp
I would certainly agree with "contentious". The real problem is that there exists no absolutely correct solution. So it is always going to be pragmatic compromise.
-
last1
why would manufacturers hide the trim settings ? Is it possible they have firmware that manages that automatically behind the scenes ?
-
mason
rwp: Yeah, it's a compromise, and hardly the worst one in the world. I prefer what pkgsrc does, using /usr/pkg. I guess FreeBSD ports are moving towards the flexibility to do that kind of thing in, say, Poudriere.
-
rwp
So here is my current problem. ZFS: "errors: Permanent errors have been detected in the following files: <0x4c>:<0x8e328>..."
bsd.to/2ztq/raw
-
VimDiesel
Title: 2ztq
-
rwp
I had TWO hard crashes in the last few hours. Which left things in this state.
-
rwp
I think my workstation hardware is failing. I swapped the drives into a different workstation and booted it.
-
rwp
We will see if the problem follows the hardware or follows the OS. Meanwhile... Is it possible to clean up the above pasted problem?
-
rwp
I note that everything is running okay and with the exception of losing two rather large files that I had just created (grr...) everything is otherwise working okay.
-
rwp
I have also performed two scrubs already. A scrub runs in about 1h15m start to finish.
-
rwp
I am guessing that I should "zpool clear zroot" and then "zpool scrub zroot" again to see what results.
-
rwp
Running "zpool clear zroot" did not change anything.
-
last1
is there a software that manages zfs snapshots and send/receive for backup purposes ?
-
last1
I'd like to backup pool1 every 5 minutes for example
-
last1
and send it to another host
-
souji
last1: I don't know if there is a tool, but it sounds like a job for a script run with cron.
-
rwp
I also have no idea if there is a tool but agree that a script from cron seems reasonable.
-
rwp
-
VimDiesel
Title: zfsonlinux - Clear a permanent ZFS error in a healthy pool - Server Fault
-
rwp
The suggestion was to start a scrub and then to scrub -s stop the scrub after a moment of it running.
-
rwp
And that worked!
-
souji
-
VimDiesel
Title: ZFS - Looking for a ZFS snapshot management tool | The FreeBSD Forums
-
rwp
However now I am going to start a full scrub again and let it run to completion. Hoping the errors are not re-discovered.
-
rwp
If errors are discovered again then I am going to grab a couple of spare disks and pour data off and on again.
-
souji
rwp: gz :)
-
last1
souji: thanks for using Google for me, weird enough that Google didn't point out the FreeBSD forum result first
-
last1
on a side note, I do believe that Google is getting suckier
-
last1
let me check these out, there is one big feature I'm looking for that I haven't seen any package have so far
-
rwp
souji, I feel that I am going to need the luck. But backups are current and I haven't lost anything. So, good! I just need to get things solid so I can go back to using it heavily again.
-
last1
I want to initiate the send|recv from the backup server
-
last1
not the live data server
-
souji
rwp: yeah, backups are always good to have!
-
souji
last1: I would be surprised if any tool is able to do that...
-
last1
I'm trying to do that now
-
last1
bkp server issues: ssh root@live zfs send | ssh root@bkp zfs recv
-
last1
hope it doesn't create some sort of loop :)
-
souji
looks good to me
-
souji
I shuld just execute the command on the remote host
-
souji
However, you would need an SSH key on the live server for the backup server if you do not already have one.
-
last1
yeah, that worked
-
last1
just had to use quotes
-
souji
nice :)
-
last1
ssh root⊙112 'zfs send -i zfs/testindex@now4 zfs/testindex@now5 | ssh root⊙112 zfs recv zfs/testindex'
-
last1
I don't want the live server to hold keys to the backup server, only the other way around
-
last1
this way if live gets compromised, hackers can't jump to backup and erase my backups or encrypt them
-
last1
I'm surprised most backup tools don't use this method of thinking as default
-
souji
With out the key, how do you connect back to your backup server?
-
last1
son of a
-
last1
lol
-
last1
I can probably program around it wit perl/expect and actually use a password
-
last1
but that's not ideal either, because a hacker could compromise sshd and read all that I enter
-
last1
I guess the backup system could rotate passwords at every interaction, this way each password is valid just for that session
-
souji
Maybe you can use sshpass on the server machine, so you could use a password
-
last1
yeah, was just reading about that
-
souji
but then the password would show in the process tree, which however would not be as big of a problem if you limit the visible process to only the own user
-
last1
true, but the password would also be changed as soon as the transfer finishes
-
last1
so bkp system: generates new pass, ssh using new pass, generates new pass
-
last1
it would be vulnerable for the duration of the transfer
-
last1
ugh, not ideal
-
last1
there has to be another way
-
souji
In my opinion, an SSH-key would be better for that.
-
last1
but how would that prevent a hacker from ssh-ing into my backup server ?
-
souji
they would only be able to, if they have root acces on your server machine
-
last1
well yeah, that's what I'm assuming, the worst
-
last1
they gain full priviledge on production and want to encrypt everything. live & backup
-
souji
And if they have root acces, they can just wait for the next connect from the backup server, so yeah...
-
souji
Is it possible to get the backups with an unprivileged account?
-
last1
it wouldn't matter
-
last1
if that account has snapshot access, then they can just use that to connect over and destroy the snapshots
-
last1
commercial system have something called immutable storage
-
last1
where no matter what, snapshots can't be removed except through time policies