-
crb
I'm struggling to use syncoid. I think I have a sanoid configuration working fine on my system. I would like to pull replicate to another systems
-
crb
Do I simply add a cron job on my backup machine that does syncoid root@remote_host/pool/zfs_fs local_pool/zfs_fs
-
scoobybejesus
syncoid --no-sync-snap root@$remote_host:$src_dataset $dst_dataset
-
scoobybejesus
you can always just run it outside of cron first to get it going
-
crb
but eventually that is the run paradigm, just call that command from a cronjob
-
scoobybejesus
if your dst_dataset will be zroot/backup/fun/pics, you need there to be a dataset /zroot/backup/fun, and that dataset /zroot/backup/fun/pics will be created by syncoid
-
crb
thanks!
-
scoobybejesus
yeah, exactly, have cron run it however often you want
-
scoobybejesus
happy to be useful!
-
scoobybejesus
I can chime in later if you hit a snag
-
crb
will that replicate all snapshots not just ones created by sanoid?
-
crb
I have a zfs fs of application installs, I create a snapshot @install after I install it since it should never change. Can I use sanoid like above to sync that even thought sanoid didn't create that snapshot?
-
scoobybejesus
if you do --no-sync-snap, it won't create its own snapshot. it'll just pull from the earliest common snapshot, which means it'll pull all of them on the first run
-
crb
thank you
-
scoobybejesus
you'll use sanoid on the destination merely to trim the amount of snapshots you're holding onto
-
scoobybejesus
sanoid won't sync anything. syncoid is the mechanism for moving the snapshots around
-
dh
What the hell. I have a server with zfs exported over NFS .. on the client I mounted and copied a bunch of files over, but I don't see those files on zfs datasets on the server side. I can see space is used on the dataset but files are nowhere to be found. I can see files from the client side only.
-
dh
Both server and client are FreeBSD
-
dh
Oh nevermind, zfs filesystem as dataset vs directory on the parent filesystem .. split view
-
nulltaz
Question *Dwight Schrute voice*
-
nulltaz
If you exclude creating a Dockerfile (I hate Docker), and cloning the FreeBSD instance... What's your preferred way of backing up a FreeBSD system, as if you needed to rebuild it and wanted to keep track of installed programs and their config files?
-
nulltaz
Mine sites in AWS, so I could easily clone, but I want to learn this process for when I migrate the AWS instance on-prem once I get my rack setup at home.
-
nulltaz
I'm not asking for a tutorial, just your preferred methods. I can dig into the particulars myself.
-
nearly
hello
-
rtprio
nulltaz: site files, pkg origins, /usr/local/etc/ is a good start
-
shbrngdo
anyone see THIS? It affects FreeBSD by mandatinbng the OS support an age-verification feature [remember the S. Korea banking ActiveX fiassco from the 90's?) and specifically afects open source operating systems...
x.com/LundukeJournal/status/2027131106336948290. Self-explanatory
-
shbrngdo
I would not mention it here except for its direct relevance to FreeBSD.
-
hodapp
I have serious doubts any of that will happen
-
rtprio
yeah
-
shbrngdo
it's already a law ibn California and Colorado is working on a similar one. Thats the problem. WE jknow its ridiculous, but this is gummint.
-
shbrngdo
Anyway to avoid going freebsd-politics I'll stop now.
-
shbrngdo
[th fines are ENORMOUS]
-
rtprio
plenty of time to get stuck in the courts;
-
shbrngdo
true. But at some point the devs might have to create a patch or something and now we have "the california version" and it'll have a feature that, like the ActiveX-based S. Korean banking sysdtem, inserts a security crater into the OS, directly or indirectly
-
shbrngdo
the S. Korean system from the late 90's was ok. The problem was it rquired ActiveX support, a massive securrity crater. Like that.
-
rtprio
/usr/src/usr.sbin/age-verification/main.c int main() { return true; }
-
hodapp
one of the few saving graces of those currently in charge is that they will purposely just *not* do something because California did it
-
shbrngdo
thankfully! Anyway I've ben tagging various people onX about this, including EFF 'cause this is a threat to FOSS in general
-
shbrngdo
rtprio - I wish it were that simple. I do not think there is even sa standard or API for applications to use it yet.
-
shbrngdo
anyeays raising attention to it 'cause 1/1/2027 is the "or else" date, apparently
-
rtprio
vague, bad laws are not that simple
-
rtprio
and furthermore, the law makers obvs don't understand what an open source OS is because just how would that work
-
shbrngdo
I'm dure there's as giasant privacy/security hole waiting to have people drop into it
-
shbrngdo
rtprio - we think like engineers. When you say that to them they thionk "choo choo"
-
rtprio
that's why the freebsd foundation has attorneys
-
anth
The law is a mess. I don’t think it requires FreeBSD support age verification, though.
-
shbrngdo
here's hoping. I should check mailing lists to see what's up I guess. welp later
-
anth
Note that the restrictions are between a developer/application and a “operating system *provider*”, not an “operating system”.
-
anth
So FreeBSD is probably okay, but if you have an account with something the FreeBSD Foundation runs there might be issues (by the letter of the law, anyway).
-
shbrngdo
I just don't wanna see asn OS I like get perverted by clueless legisdlators
-
shbrngdo
I'm sure Linus Torvalds already gave thenm the middle finger but you know Red Hat might bend the knee... so that's a potential problem
-
lucius
foss is global, foss can be forked
-
anth
Maybe. For now I’m setting aside *potential* FreeBSD problems and focusing on *real* FreeBSD problems: why x11 is buggered after my upgrade to 15. :-)
-
nimaje
bugged in what way? and what part of X11?
-
lucius
time for the foundation to be settled off shores in international waters /j
-
lucius
anth: are there any logs?
-
anth
lucius: yes, but I haven’t found anything helpful yet. I’m still going over xev output.
-
rtprio
anth: weird keystrokes when typing, right?
-
anth
Yeah. xev reports that I’m auto-repeating…. Something.
-
anth
Happens with multiple keyboards, too.
-
rtprio
anth: did you create a xorg.conf file or just let it automagic it
-
nimaje
anth: what driver do you use? kms?
-
anth
Scfb
-
anth
rtprio I left the one from 13 that was working. I don’t remember how I created that one (many years ago) but I don’t think I did it manually.
-
nimaje
hm, the man page for that doesn't read like you want to use it if you have any other option
-
p7cq
I see that zpool status identifies disks with "gpt/zfs-<guid>". How can this be changed to show something more meaningful, like the physical drive SN? - I tried gpart modify -i 1 -l <drive sn> da0 but this caused the drive to show up as da0p1 in zpool status...
-
nimaje
anth: try to move xorg.conf out of the way, install and load drm-kmod and see if xorgs autoconfig works better
-
anth
I have drm-kmod installed but I’m going to reinstall. There were some other pkg oddities after the upgrade.
-
anth
Should it re-populate a missing xorg.conf?
-
anth
Wasn’t there an x11-config or something? Lord it’s been a minute since I’ve done this.
-
nimaje
no, not having any xorg.conf is totally fine as long as xorg configures stuff correctly
-
nimaje
it has been a while since having an xorg.conf was required
-
Tonn3k
"auto-repeating…. Something." Maybe you have sticky keys? I'm just guessing.
-
anth
Tonn3k: no, it’s auto-repeating something that isn’t an actual key. Also I tried multiple keyboards.
-
anth
Is there a meta-package that will get drm-kmod and all the relevant loadable drivers?
-
nimaje
drm-kmod is the meta-package
-
anth
K
-
anth
Ugh, now the X server just doesn’t start.
-
anth
(Which feels like an improvement; probably easier to debug.)
-
nimaje
did you load the kms kernel modul for your graphic card?
-
anth
Not explicitly? dmesg makes it look like it did?
-
anth
Let me double-check I’m looking at the right driver for this kit…
-
lucius
also dont forget modesetting if you have nvidia
-
anth
No, intel. (It’s a NUC 6)
-
rtprio
tbh i would probably move your old config aside and start over
-
anth
I did. Now it doesn’t start at all.
-
rtprio
1. do you have the right shiz loaded for your video card?
-
anth
The xorg.0.log mentions a seg fault, which seems “promising”.
-
rtprio
i suppose suggesting wayland would be not appreciated
-
nimaje
hm, I expect that to need kldload i915kms.ko like about all intel graphic cards
-
anth
But it doesn’t say what’s segfaulting.
-
anth
I915kms.ko is already in there, per kldstat
-
lucius
rtprio: I doubt wayland will work any more than xorg in this case
-
rtprio
you might be surprised
-
rtprio
ok, so you have i915.. .and is there a dmesg line regarding i915?
-
rtprio
(thing is i havne't configured xorg now in many years)
-
anth
Yes
-
anth
But I’m wondering if these modules are outdated.
-
anth
(Like, my installed copies.)
-
rtprio
the kernel modules? they shouldn't load if they are
-
rtprio
freebsd-version -kru shows everything the same version?
-
anth
I wouldn’t think so. But the dates suggest otherwise. But maybe freebsd-update set the date to something other than when I did the install?
-
anth
Hrm I get two -p2 and one -p3.
-
nimaje
freebsd-update shouldn't touch stuff installed via pkg
-
anth
Does pkg put things in /boot?
-
rtprio
if using pkgbase, yeah
-
Tonn3k
"But it doesn’t say what’s segfaulting" I wonder what it was doing before the segfault? That could give some clues.
-
nimaje
and the drm drivers are put in /boot/modules too
-
anth
Removed and reinstalled everything I could think of xorg or drm related. Server’s back, but no change in behavior.
-
anth
Something definitely doens’t like not having an xorg.conf, though.
-
rtprio
i would consider making a new xorg.conf
-
nimaje
without an xorg.conf xorg tries to load diffrent drivers in order, until it can load one, if one of these gets xorg to segfault instead of just failing to load that would be a problem. And to make sure, you rebooted after reinstalling the drm firmware, to make sure the reinstalled one is loaded?
-
anth
Yes. But I’m more confused.
-
anth
I manually moved the modules from /boot/moduels into a subdirectory to get them out of the way.
-
anth
That subdir is now gone after reboot, but also the 915 modules don’t seem to be there, but dmesg says it’s loading them?
-
shbrngdo
anth - ios this Xorg after 2 years of updates were reverted recently? So it might be a regression. I installed xorg-server-21.1.20,1 about 2 months ago, no problms. Maybe a DOWNgrade would help?
-
shbrngdo
but you should not mess with /boot/modules like that. I suggest re-making the dir and putting the files back
-
shbrngdo
also cn you boot to conole? disable xdm or whatever display manager got installed
-
shbrngdo
I always use startx. Then you can see the text as it loads, and why it craps out, then look at /var/log/Xorg.0.log
-
shbrngdo
boot to console
-
shbrngdo
drwxr-xr-x 2 root wheel 31744 Feb 2 12:29 /boot/modules
-
shbrngdo
[that way you have all of the permissions etc. for it]
-
» shbrngdo mentions some drama between Xorg and Xlibre, not unlike what happened with FBSD 5 and Dragonfly a decade or two ago, and 2 years' worth of commits on Xorg got reverted.
-
» shbrngdo also points out that installing the 'mode' X11 driver creates a boatload of modues, but is necessary for Intel graphics to perform correctly
-
shbrngdo
these need to be re-instaalled whenever you upodate the kernel. build from source is proibably mest for klernel modules. not sure where yor knowledge level is, so hopefully not bering "captsain obvious"
-
shbrngdo
ah, stoopid keyboard
-
anth
Shbr
-
anth
Sigh. Stupid IRC client.
-
anth
shbrngdo: yes, I always boot to console and run startx, too.
-
anth
My FreeBSD knowledge used to be very strong but is quite rusty. Feel free to state the obvious. :-)
-
anth
Where could it be getting those kernel modules from/
-
anth
?
-
jemius
FreeBSD runs almost exclusively on servers. Does it have a clever solution for generating proper entropy for RNG, without user hardware like mouse / keyboard being attached?
-
rtprio
if it's that important to you, they used to have ssl accelerator cards that had an entropy device
-
rtprio
otherwise, lavalamps
-
jemius
rtprio: lavalamps?
-
rtprio
cloudflare uses lavalamps as entropy
-
rtprio
that article was ages ago
-
armin1941
-
skered
jemius: There's hardware support to init. rng.
-
jemius
thx for the link
-
meandrain
-
meandrain
" MidnightBSD Responds to California's Age Verification Law by Excluding California"
-
nulltaz
I created a wg interface and applied the necessary config to my wg interface using the 'wg setconf' command. Will I need to manually declare my wireguard interface as a cloned interface in my rc.conf for the interface to persist across boots? I wasn't sure about this, since wg support is within the system kernel, rather than a standalone package.
-
anth
I have a question 100% disconnected from my X11 problems.
-
anth
Is anyone here connected to the FreeBSD foundation? I’m trying to figure out who their official liaison to the risc-v foundation is. Anyone know that, or know how I would figure that out?
-
crb
I'm curious if FreeBSD has taken any position on what they're going to do about the new California age verification law that requires operating systems to very age.
-
rwp
I don't know about FreeBSD but MidnightBSD has changed their license to exclude California. I am sure that is to avoid liability of being sued since that's what the new law allows.
-
jonesy320
crb, interesting, thanks for sharing. i feel that a law like that stifles creativity and innovation. i was a teenageer when i first got into unix-like operating systems.
-
rwp
Oh, things are just starting. The DB48x project is a free firmware replacement for calculators. They meet all of the criteria for being an operating system and therefore under the jurisdiction of the new law. So they have also done this.
c3d/db48x 7819972
-
rwp
Any more discussion on this topic should be moved to #freebsd-social or it will get out of hand here real quick.