-
rtprio
you should be able to zpool replace zroot ada2p4 /dev/diskid/DISK-1234p4
-
rtyler
aye aye, that's more or less what I was thinking
-
tmp_
(Okay, so I did it the hard way....)
-
rtyler
maybe a stupid question, but how do you get `/dev/diskid` populated ?
-
rtprio
is it not?
-
rtyler
doth not exist on this fresh 13.1-RELEASE install
-
tmp_
If the drives are not mounted via some other identity, that's automatic?
-
rtprio
what's `sysctl kern.geom.label.disk_ident.enable`
-
rtyler
oh, that's zero, set in `/boot/loader.conf` I was looking at that recently too
-
rtprio
probably reading the same page i was
-
rtyler
think that's safe to enable and reboot?
-
rtprio
yeah
-
rtyler
yolo *reboots*
-
rtyler
there `/dev/diskid` is, let's party
-
tmp_
I vaguely recall that if you're using gpt partition labels, those work too. /dev/gpt/ IIRC.
-
rtyler
hm, rtprio I don't think this replace approach will work properly. The Hard Way that tmp_ tried might be the path. There's no entry in `/dev/diskid` for any of the ZFS owned disks
-
rtprio
aw nuts
-
tmp_
That's probably why I did it the hard way. I'm pretty sure they only show up if not mounted via some other id.
-
rtyler
yeah, I think that's probably right based on the tea leaves from forums.freebsd.org I have seen :)
-
tmp_
Same with /dev/gpt/ labels.
-
rtprio
what if you offline one of them first?
-
rtyler
trying that now :P
-
rtyler
offlining doesn't result in any entries showing up
-
rtprio
zpool-labelclear(8) ?
-
rtprio
i'm spitballing here
-
rtyler
/dev/ada5p4 is a member (ACTIVE) of pool "zroot"
-
rtyler
womp womp
-
rtyler
strawberry# zpool remove zroot ada5p4
-
rtyler
cannot remove ada5p4: operation not supported on this type of pool
-
rtyler
drats
-
rtprio
how fond of this install are you?
-
rtyler
it's intentionally fresh, so not at all xD
-
tmp_
I had to remove each one.
-
tmp_
Which, probably succeed due to being raidz1?
-
rtyler
this is raidz1 too fwiw
-
tmp_
(Or maybe it was that I had a spare on standby....)
-
rtyler
I don't know ZFS well enough to understand why I cannot remove this device since there are four drives here
-
tmp_
Did this during the FreeBSD 9 days.
-
rtyler
rtprio do you think from bsdinstall I'd be able to get the diskids set up correctly?
-
rtprio
boot the installer and check those two loader variables, to see if you can add them via diskid
-
tmp_
Alternate: The gpt labels?
-
rtprio
or gpt labels
-
rtyler
so that setting is certainly enabled, but I cannot select by disk id at least through `bsdinstall`.
-
tmp_
Dredging up more memory on this. I think there's something about zpool offline before zpool remove ?
-
rtyler
I wonder if I could mount this zpool from the live shell here and do the replacearoo
-
rtprio
to blast the old pool?
-
rtyler
to IMPROVE the old pool!
-
tmp_
I just might work.
-
tmp_
s/I/It/
-
rtyler
I'm well out of my area of expertise right now so I'm reading the zpool-import manpage
-
rtprio
you'll want to set altroot
-
rtprio
that's the big one, and not write to the zfs cache
-
rtyler
on the liver system everything is definitely there in `/dev/diskid`
-
rtyler
rtprio: altroot being a property on the import?
-
rtyler
oh `-R`, I sees it
-
rtprio
yes, otherwise it will trounce the current running system and things get very confusing from there.
-
rtyler
okay, so I imported the pool with all the disk IDs
-
rtyler
_now what_ xD
-
tmp_
zpool offline one drive?
-
rtprio
now you need to save the cache onto that pool or it will just import with ada next time
-
rtprio
and i'm not sure how to do that
-
tmp_
Let me check my notes.
-
rtyler
the import was done with `cachefile` set to `none` because of the `-R`
-
rtprio
zpool set cachefile=/altroot/etc/zfs/zpool.cache zroot
-
tmp_
If you're chrooted to the /altroot, something like: zpool set cachefile=/boot/zfs/zpool.cache zroot
-
rtyler
good news/bad news. The altroot contains `usr` `var` `tmp` and an empty `zroot` directory . Very confused now
-
rtprio
pastebin `zfs list` plz
-
rtprio
and you did specify an altroot, right?
-
rtyler
I did! `/tmp/altroot` which is where these are
-
rtyler
this is running from a console, so it's not like I can gist the output from this live boot :P
-
rtyler
I didn't look at the mounted volumes before I booted into bsdinstall
-
rtprio
zfs get mountpoint zroot/root # (you'll need to figure out which)
-
rtprio
is it none?
-
rtprio
oh, it's probably "legacy"
-
rtyler
for lols I rebooted, and those disk IDs persisted on the pool, which means because some things are missing that I've booted into single user mode. How interesting
-
rtyler
I have a hunch on what I did wrong, back to the live shell
-
rtprio
the pool came back as gpt ?
-
rtprio
or ada
-
rtyler
when I rebooted back to the installed system the zpool was listing disk IDs, but failed to into multi-user because it was complaining about missing stuff. I've just rebooted and imported the pool again but this time rather than importing p4 I imported the whole device, which resulted in different behavior but the altroot still is missing
-
rtyler
mountpoints
-
rtprio
i haven't had a boot pool in a long time; and to think i was missing out on this sort of fun
-
rtyler
you definitely are :)
-
rtyler
I'm starting a re-install and going to see if I can swap to diskids before I reboot
-
rtprio
i think if you had a mirror as your zroot you could have done the `zpool replacing`
-
tmp_
Did you try zpool offline?
-
rtyler
at which stage? I had tried that on the live system already
-
tmp_
Any. Was just wondering how that went.
-
rtyler
offline works fine, I cannot replace with the pool
-
tmp_
Oh. Okay. I'm pretty sure when I did mine, I used zpool offline before zpool remove.
-
tmp_
... And then add and resilver...
-
rtyler
I'm wondering if I'll be able to do that from the live system, because modifying online is causing problems
-
Babaj
check NomadBSD
-
rtyler
hrm, I cannot remove. It says the operation is not available on this type of pool
-
tmp_
Found one of my notes. I did something like offline <id>, add <spare>, replace <id> <spare>, remove <id>. Looks like you'd need a fifth drive to pull this off.
-
rtyler
You're probably right, so this is a four disk raidz1 pool which makes me think I need to find another way
-
rtyler
tmp_ would you mind dropping the `zfs list` output (sans any non-standard mountpoints if you'd like). I'm curious if I can do this manual at install time and get it right then
-
tmp_
-
VimDiesel
Title: RootOnZFS/UFSBoot - FreeBSD Wiki
-
rtyler
thanks
-
tmp_
Critical points: The zpool itself "has" a mount point of /zpool, but is set to noautomount. zpool/ROOT mounts on / and then zpool/usr on /usr, zpool/var on /var, etc.
-
rtyler
I'm actually really surprised at how difficult this is
-
tmp_
I've worked with zfs in an enterprise setting. I'm not.
-
rtyler
haha
-
tmp_
That was many zpools on multiple versions of Solaris, for the most part.
-
rtprio
that was a rocky time
-
tmp_
Oracle put their oar in part way through, it got even rockier.
-
rtprio
you mean like how oracle does with anything they touch
-
tmp_
"We're not restricting you from using that; Oracle didn't provide it. It's not there."
-
tmp_
Mind you, that was a set of things that Sun deprecated in 1994. As in, "This will go away someday. Don't make anything new rely on it." Oracle decided it was time for all those things to go away.
-
tmp_
Notably, it was the developer teams that had the most problems with that....
-
rtyler
huh, I cannot seem to remove this damn device
-
rtyler
I thought maybe I would try raidz2
-
rtyler
hrm, I cannot even detach a device from the pool after offlining it
-
tmp_
I think the zpool is preserving the place for the device, so replace is the only option when it's offline. But replace requires a new device.
-
rtyler
that sounds about right
-
rtyler
is there a file floating around somewhere or something like that which I can just edit to change ada5 to the diskid xD
-
rtyler
I have a different idea, I'll create the pool with 3 disks in a new install, and use the fourth like you did tmp_
-
tmp_
Have the fourth as a spare?
-
rtyler
yeah, there are four disks that are supposed to be there. Maybe I make a three node pool, do the swapping around there, and then grow it with the fourth disk after the shuffling to diskids is complete
-
tmp_
I'm drawing a blank on whether expanding the number of active disks in raidz is possible. I'm suspecting not.
-
tmp_
The notes I've dug up suggest I used a USB disk as the spare when migrating.
-
tmp_
It was kind of unstable. A little. Just a tad.
-
rtyler
laffo
-
parv
Is anyone aware if there are any PRs for "bsdinstall" to create a (GPT one if using GPT for example) label for ZFS root pool?
-
rtyler
parv, welcome to the party ;)
-
rtprio
tmp_: no, can grow from 4x 2tb to 4x 4tb but not 8x2tb
-
parv
rtyler, Hi there
-
tmp_
Yeah, I've grown 4x 1tb to 4x 2tb a time or two.
-
rtyler
we've already been fighting a lot against ZFS tonight, I'm not sure there's anything planned for bsdinstall
-
rtyler
honestly this would be a much less frustrating problem for me if the onboard sata controllers devices were starting at 0 rather than the pcie card's
-
rtprio
put the boot pool on the pcie cards?
-
rtprio
wait, rtyler are you going to install to 3 +spare and then convert to gpt?
-
rtprio
if you're going to install fresh i have a different idea
-
rtyler
I've installed fresh a few times tonight, my brain's fried, whatcha got
-
rtprio
trying to find the wiki article
-
rtprio
basically you shell out and set up the pool, and then exit back to the installer
-
rtprio
and since you shell out rather than letting bsdinstall do it, you could add them by the gpt or diskid names
-
parv
-
VimDiesel
Title: MasonLoringBliss/ZFSandGELIbyHAND - FreeBSD Wiki
-
parv
rtprio, Is the one you are looking for listed at
wiki.freebsd.org/CategoryZfs ?
-
VimDiesel
Title: CategoryZfs - FreeBSD Wiki
-
rtprio
the one i followed was installing for dualbooting but the procedure would work
-
rtprio
let me spin up a vm quick and see
-
rtyler
hmm,
-
rtprio
manual -> gpt -> label it -> create pool
-
parv
rtyler, Since you are willing to reinstall, I propose to use manual ZFS install: (GPT) partition the disk as you like; add GPT labels; install ZFS on root manually on one of the partitions. Note that everything will be dumped directly on the "pool". Then create separate datasets; move stuff out from root pool to separate datasets
-
rtprio
but 'shell' was the document i followed
-
rtprio
it did it all by hand: When finished, mount the system at /mnt and place an fstab file for the new system at /tmp/bsdinstall_etc/fstab
-
rtprio
parv: manual won't create the pools it seems you have to do it by shell
-
rtprio
# ls /dev/diskid/
-
rtprio
DISK-BHYVE-DAA9-3899-15E2 DISK-BHYVE-E466-C286-81C7
-
rtprio
but there are the disks; create the pool and off you go
-
parv
rtprio, bsdinstall would create a single root pool & no separate datasets (which otherwise are created in auto mode)
-
rtprio
yah, to do what you want, you've got to pick the 'shell' option
-
parv
-
VimDiesel
Title: 262461 – bsdinstall: After manual partitioning the disk, installer installs "ZFS on root" directly on the pool not under separate ZFS datasets
-
rtprio
wiki.freebsd.org/RootOnZFS/GPTZFSBoot is what i follow, it guides you through the shell method
-
VimDiesel
Title: RootOnZFS/GPTZFSBoot - FreeBSD Wiki
-
parv
rtprio, Thanks for the link (GPTZFSBoot)
-
rtprio
parv: i don't recall having that problem
-
parv
rtprio, Problem, as stated in PR 262461, is that manual partitioning & installing ZFS-root -- all via bsdinstall UI -- does not create different ZFS datasets unlike when auto ZFS is used (which consumes whole disk & no label is created for the root pool)
-
rtprio
yeah, so create them yourself
-
rtprio
i don't like a few of the ones bsdinstall picks out anyway
-
parv
*sigh* Yeah that was what I did eventually as clean up
-
rtyler
oof
-
parv
Re default ZFS datasets, I also have the same opinion but that is still far more preferable, workable than dumping everything on the pool dataset directly.
-
rtprio
but hey, once you get it working, you won't have to touch it for a while
-
rtprio
History for 'wd':
-
rtprio
2013-02-16.21:19:45 zpool create wd raidz2 /dev/ada0 /dev/ada1 /dev/ada2 /dev/ada3 /dev/ada4 /dev/ada5
-
rtprio
some of those drives had 2 hours on them when i created the pool
-
grahamperrin
<antranigv> "What's the 2022 style of..." <- antranigv: I don't doubt that arcanist can be useful, but I haven't got that far. (I commit without using it.)
-
antranigv
grahamperrin really? how?
-
antranigv
grahamperrin I'm having a hard time contributing to FreeBSD. All I wanna do is just fork it on GitHub and make a pull request, or maybe use git's mail pull request functionality.
-
grahamperrin
antranigv: I pinged you in FreeBSD in Matrix, continue there? Thanks
-
antranigv
grahamperrin I'm in FreeBSD's matrix? hah I didn't know that :D
-
Fudge
played with pf today and couldnt get a set of rules working that didnt block me from ssh! im so lame
-
grahamperrin
antranigv: irc.libera.chat private message failed for some reason, do you have a Matrix client handy? (I use <
app.element.io>, YMMV.)
-
VimDiesel
Title: Element
-
grahamperrin
Ah we're there
-
uskerine
hi, I just click on restart Firefox in my BSD and I get this: XPCOMGlueLoad error for file /usr/local/lib/firefox/libxul.so /usr/local/lib/libnss3.so: version NSS_3.79 required by /usr/local/lib/firefox/libxul.so not found Couldn't load XPCOM.
-
uskerine
any tip is welcomed
-
uskerine
pkg install nss <- fixed the issue
-
uskerine
what is the difference between pkg update vs pkg upgrade
-
uskerine
?
-
Molnija
pretty sure POWER is not a mainframe architecture
-
Molnija
I was scrolled up
-
parv
uskerine, "update" only "update[s] the local catalogues of the enabled package repositories" (from "pkg-update(8)" manual page) ; installed packages are not changed
-
grahamperrin
uskerine: if you were _without_ an installation of security/nss, you should wonder how the absence occurred.
-
grahamperrin
<
freshports.org/www/firefox/#requiredlib> security/nss is a required library for www/firefox.
-
VimDiesel
Title: FreshPorts -- www/firefox: Web browser based on the browser portion of Mozilla
-
uskerine
I am using firefox-esr
-
grahamperrin
uskerine: thanks, there's the same requirement <
freshports.org/www/firefox-esr/#requiredlib>.
-
VimDiesel
Title: FreshPorts -- www/firefox-esr: Web browser based on the browser portion of Mozilla
-
grahamperrin
Reviewing, committing. <
docs.freebsd.org/en/articles/commit…de_appropriate_metadata_in_a_footer> gives 're' as an example of the name of a team, however (unless I'm missing something) there's no such team in Phabricator.
-
VimDiesel
Title: Committer's Guide | FreeBSD Documentation Portal
-
uskerine
the nss was upgraded when I did pkg install nss
-
uskerine
maybe I did not run pkg upgrade in a long time (as I see I have 209 packages to upgrade)
-
anyone
"DHCPACK from ... Starting sendmail_submit. sm-mta[814]: My unqualified host name (freebsd) unknown; sleeping for retry". The VM-IMAGES download just hangs at boot for no good reason :(
-
anyone
two minutes of my life - gone
-
debdrup
Molnija: POWER is, POWERNV is what you find on anything else.
-
Molnija
debdrup: I didn't think either of them was MF.
-
debdrup
Well, it's possible I'm misremembering.
-
debdrup
publibfp.boulder.ibm.com/epubs/pdf/dz9zr010.pdf sure makes it seem separate, so it's probably just me misremembering
-
debdrup
yeah, the machine check handling is completely different, so it's gotta be a different thing all together
-
debdrup
i mean, it still uses ECC, because pretty much everything does, but it's described entirely differently from how the OpenPOWER spec describes it
-
rtprio
anyone: i think you can ^c during that
-
Erhard
When I do a "service unbound restart" it works fine. If I do "service unbound reload" I get: " fatal error: Could not read config file: /unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf"
-
Erhard
the checkconf retuns no errors. Running unbound -dd shows no erros either.
-
yuripv
path to file looks wrong, is it really in /?
-
Erhard
No, that is why I am confused.
-
Erhard
I am looking at the rc script
-
rtprio
so with that path $local_unbound_workdir is not defined, which is why it expands to /unbound.conf
-
Erhard
Where is that supposed to be defined?
-
rtprio
and there's no local_unbound_reload function; it might be a bug
-
rtprio
it's defined one line up,
-
Erhard
Which script, sorry. I am not finding in /usr/local/etc/rc.d/unbound
-
rtprio
oh, i was looking at /etc/rc.d/local_unbound
-
Erhard
Oh, I am not running local_unbound
-
Erhard
the real unbound
-
Erhard
But I guess that applies workdir
-
Erhard
I wonder if it is being borked by load_rc_config "${name}" (like it wasn't save dproperly)
-
cpet
eh?
-
Erhard
It calls that twice.
-
Erhard
When I do a "service unbound restart" it works fine. If I do "service unbound reload" I get: " fatal error: Could not read config file: /unbound.conf. Maybe try unbound -dd, it stays on the commandline to see more errors, or unbound-checkconf"
-
Erhard
That, cpet
-
cpet
is it a ports rc.d?
-
Erhard
Yes, pkg install unbound
-
cpet
why do you install unbound if its already in base ?
-
cpet
and why arent you emailing the maintainer rather here ?
-
Erhard
Only local_unbound is in base, no?
-
Erhard
Because I am trying to see if there actually is a problem
-
cpet
one listen on localhost other listend on all
-
cpet
basically what that means
-
Erhard
Right, I need to listen on external ips
-
Erhard
And I have it doing void-zones as well.
-
Erhard
Is it preferred to use "local_unbound" and change it's conf?
-
cpet
depend son use I personally hate it and wish it uberly death but thats me
-
Erhard
Hate what? unbound in general?
-
Erhard
I hate bind, and djb is getting very old
-
cpet
it works
-
cpet
but the error is self explainitory
-
Erhard
I use djb for lots of stuff, still.
-
cpet
it wants /unbound.conf and cant find it
-
Erhard
Of course, but trying to figure out WHY it is looking for that
-
Erhard
(where is the bug)
-
Molnija
djbdns?
-
cpet
human error ?
-
Erhard
I am troubleshooting unbound, but yes, I mean djbdns
-
Molnija
I pronounce that "jebdns" fwiw
-
Erhard
Likely, but which human, as I don't think it is this one.
-
Erhard
lol
-
cpet
well you fail to point configs and errors
-
cpet
so good lukc getting help :)
-
cpet
so start pasting some pastbins
-
Erhard
It has something to do with the script installed by the package
-
» Molnija creates another maildir
-
Molnija
(semi-serious)
-
cpet
my car makes a weird noise but without install a ODB scanner on it I can guess it's the belt ?
-
Erhard
I kinda figured other people used unbound as well. So they would have the same installed files.
-
Erhard
But I guess nobody uses the pkg version ??
-
cpet
I use bind
-
Erhard
After bind 4 bugs I never went back
-
rtprio
all software has bugs
-
Erhard
Of course.
-
cpet
all sotftware has bugs freebsd is no different
-
Erhard
Some developers don't code well. They make more bugs
-
cpet
stoping the use of a program casue it has 4 CVE's wihc arent even remote is well ...
-
cpet
-
VimDiesel
Title: ports - FreeBSD ports tree
-
cpet
try changing that back
-
Erhard
There was also the speed issue. Back then it was old HW. djb was significantly faster
-
Erhard
But the issue now is with unbound scripts ;-)
-
cpet
seeing how the root DNS still use NSD,bind
-
cpet
i fint that BS
-
Molnija
Erhard: are you trying to turn off Unbound?
-
cpet
hes using the port version
-
Erhard
No, I want service unbound reload to work correctly
-
Molnija
what?
-
Molnija
right
-
cpet
any reaosn why yopu dont email the maintainer ?
-
Erhard
Becaue I am trying to find the bug first.
-
Molnija
Erhard: how's /usr/local/etc/rc.d/ look with unbound installed from ports?
-
cpet
I just gave you saomething to try
-
Erhard
That is what I am looking at Molnija
-
Molnija
so...
-
rtprio
maybe do `sh -x /usr/local/etc/unbound reload` and pastebin the output
-
cpet
: ${unbound_config:=%%PREFIX%%/etc/unbound/unbound.conf}
-
cpet
default from port
-
cpet
which tells me human error
-
Molnija
sysrc unbound_enable=YES
-
Molnija
er, nvm
-
Molnija
this is too advanced for me
-
cpet
any reason why you dont paste your rc.conf or any other relative items instead of just saying "it doesnt work"
-
Erhard
sh -x /usr/local/etc/unbound reload works fine. It is service unbound reload that fails.
-
Erhard
Because it's not in rc.conf
-
cpet
bleh
-
cpet
you seem to know more yet your asking here for help
-
cpet
so enjoy
-
rtprio
cpet: chill out man
-
Erhard
LOL, ok
-
rtprio
`sh -x /usr/sbin/service unbound reload`
-
Molnija
rtprio: I've had a few tussles with cpet i think
-
Erhard
rtprio: Good call
-
cpet
you think ? its either a truse or false statement
-
Erhard
+ exec env -i -L -/daemon 'HOME=/' 'PATH=/sbin:/bin:/usr/sbin:/usr/bin' /usr/local/etc/rc.d/unbound reload
-
Molnija
oh good lord now you're words lawyering
-
rtprio
is that it?
-
Molnija
I've never been able to work unbound anyway.
-
cpet
it requires a little more than cp .sample to .conf and running it
-
rtprio
Erhard: ` env -i -L -/daemon 'HOME=/' 'PATH=/sbin:/bin:/usr/sbin:/usr/bin' /bin/sh -x /usr/local/etc/rc.d/unbound reload`
-
Molnija
A friendly question: If you like djbdns, why not use djbdns?
-
cpet
root@vm:/home/chris # service unbound reload
-
Erhard
rtprio: That has the same effect. Still debugging.
-
cpet
-
VimDiesel
Title: Nov 19 12:48:26 vm unbound[82204]: [82204:0] info: server stats for thread 0: re - Pastebin.com
-
Erhard
Just simply HUPping unbound causes the error
-
Erhard
So perhaps the unbound config itself... Checking that
-
Erhard
Nothing untoward there, must have to so with unbound being a jail.
-
parv
Forgot to run "etcupdate extract && etcupdate diff" before source update & world building (
docs.freebsd.org/en/books/handbook/cutting-edge/#makeworld ). Could|Should I do something else?
-
VimDiesel
Title: Chapter 25. Updating and Upgrading FreeBSD | FreeBSD Documentation Portal
-
parv
Here root is on a ZFS dataset, along with boot environment, if that would matter
-
richardbanger
question. say i want to build pkgs from source, can i build them on a beefier machine running a VM and then upload it to a repo and use them on the wimpier laptop?
-
parv
Answer is "yes". "How?" That I do not know (involved setting up the other 'puter as the package repository)
-
parv
s/involved/involves/
-
richardbanger
i know the how. i just needed the reassurance that i could
-
parv
Ok then, get building!
-
richardbanger
not until the holidays.
-
richardbanger
and i have to set up my diagram for what i want done and what will need to be done
-
zykotick9
richardbanger: you might want to check out poudriere (if you aren't familiar with it)
-
richardbanger
i was reading about poudriere which prompted the question
-
richardbanger
i just wanted reassurance.
-
cpet
parv, and?
-
parv
cpet, "and?" for what?
-
cpet
etcupdate*
-
weust
I don’t get zus snapshot and rollback. I create a snapshot of zroot@test with -r, create a file with content, do a rollback of zroot@test and the file still exists. What am I’m missing here?
-
parv
I had asked: I forgot to run etcupdate extract" before source update & world building per the handbook. Is there anything I could do to have the effect of "etcupdate extract" which would have the effect of running it before (source update & world building)?
-
weust
s/zus/zfs (damn autocorrect)
-
rtprio
parv: probably fine to leave until the next make world process
-
parv
rtprio, Certainly can do
-
weust
So, I can rollback a dataset like zroot/usr/home@test, but not the entire zroot@test?
-
rtprio
weust: yes
-
weust
OK. And there is no recursive option like there is with snapshot. So, I need to rollback every single dataset separately?
-
rtprio
i believe so
-
parv
From "zfs-rollback(8)" manual page: The -rR options do not recursively destroy the child snapshots of a recursive snapshot. Only direct snapshots of the specified filesystem are destroyed by either of these options. To completely roll back a recursive snapshot, you must roll back the individual child snapshots.
-
weust
I overlooked that. I did read the man.
-
rtprio
it happens, no problem
-
weust
But it sucks. Imagine wanting to rollback zroot after a failed system update. Why is there a recursive for snapshot, but not rollback. That last sentence doesn’t say why. At least, to me.
-
rtprio
just script it
-
weust
Yeah, will have too.
-
rtprio
zfs list -H -o name -t snapshot |grep 2022-09 |xargs -n1 zfs rollback
-
weust
Thanks. Will save that. Will come in handy again soon, no doubt. Trying to setup my laptop partially with ansible.
-
debdrup
Please make liberal use of the -n and -v flags on all zfs commands unless you use zpool checkpoints.
-
weust
Liberal as in use whenever possible, you mean?
-
weust
Sadly for both snapshot and rollback such flags do not exist
-
parv
What is a "stable" or "current" installation of the OS called: branch, version, other? Not "release", right?
-
cpet
release
-
parv
Hmm. Ok.
-
parv
cpet, Thanks
-
yuripv
called where?
-
KungFuJesus
So for the 802.11s mesh support - is there anyway to make freebsd use ethernet for the mesh backhaul?
-
parv
If I had installed a "stable/13" from source, what do I tell someone else what "it" is besides being installed from source or snapshot?
-
cpet
stable
-
yuripv
you say "13-stable"
-
yuripv
(instead of 13.something release)
-
parv
Right. Thank you
-
Molnija
that was interdasting.
-
parv
What is "stable" in the context, a "version", "type"?
-
cpet
version
-
parv
Looking for a noun here
-
cpet
dev
-
Molnija
non-release-engineered
-
cpet
after running freebsd for 25+ years still puzzles me why release stable and current is so hard
-
cpet
parv, 14.0-CURRENT what version am I running ?
-
rtprio
i gave up running stable partly for that reason and have stuck with -current since 5
-
parv
cpet, "14.0-CURRENT"
-
cpet
14-CURRENT
-
debdrup
STABLE denotes the KBI/ABI won't change, CURRENT denotes that it stays current with the head of the tree.
-
debdrup
s/won't/isn't meant to/
-
debdrup
That's all there is to it, really.
-
debdrup
RELEASE is the product that the FreeBSD project publishes, along with its documentation in the form of the handbook and articles.
-
debdrup
If you're not running RELEASE, you're expected to be willing to learn how it works and/or already know.
-
debdrup
-
VimDiesel
Title: Chapter 33. Advanced Networking | FreeBSD Documentation Portal
-
debdrup
weust: yeah, liberal as in use it as often as possible. I didn't know zfs-rollback didn't support it though, that seems like an oversight - but it's all the more reason to use zpool checkpoints then.
-
parv
I understand the purposes of "stable" & "current" branches. It is just that when I was trying to mention elsewhere that one should subscribe to appropriate -(stable|current)@ mailing list, I could not come up with general word to refer to each (regular "RELEASE", STABLE, & CURRENT)
-
debdrup
They're branches in the VCS, if that's what you're asking for.
-
debdrup
STABLE is branched from main (which is the CURRENT branch), and RELEASE is branched from STABLE.
-
debdrup
-
VimDiesel
Title: FreeBSD Release Engineering | FreeBSD Documentation Portal
-
Molnija
e
-
debdrup
It's not entirely accurate anymore since nowadays even a dot-zero RELEASE involves creating a new STABLE branch.
-
debdrup
..it also still references svn because 12 and 13 are still made using that.
-
Erhard
I figure out why cpet got unbound to reload, and I did not. It seems void-zones-tools does not place the zone in the correct location under the config directory. This works fine with s start or restart, but not with a reload.
-
Erhard
Not sure if that owuld be considered an unbound bug or a void-zones-tools bug.
-
Erhard
Or a bit of both. Seems wrong that unbound would have no problem with starting, but would have a problem reloading. Seemes like a separate issue as to where void-zones-tools put the files.
-
Erhard
And I think I found a security flaw in void-zones-tools I will have to address anyway.
-
debdrup
probably a good idea to take it up with the author
-
debdrup
it's not inconceivable that the problem with file location is an issue that can be solved in the port, either
-
debdrup
worth looking into, at least
-
Erhard
Yeah, I see why void-zones-tools is puttin ghte files in theother directory. It's because it is designed to work with local_unbound rather than the ports unbound.
-
Erhard
So there would need to be a config option for using it with either.
-
Erhard
However, I still think the behavior of unbound is a bug in terms of working on startup, but not on reload.
-
Erhard
And passing the checkconf
-
debdrup
I'm curious why you're using unbound from ports
-
debdrup
Not that I think it's wrong by any means, just curious
-
rtprio
is there an error in your config that maybe slips by, that causes it to crash in reload
-
Erhard
I perhaps incorrectly thought that local_unbound was only for listening on localhost.
-
debdrup
Erhard: heh
-
Erhard
rtprio: Kinda. There is an include: that doesn't work with the reload
-
debdrup
I mean, I can understand making that mistake if you just didn't think about it any more (which is something I'm sure I'd be capable of, too)
-
rtprio
Erhard: and if you remove the include does it reload?
-
Erhard
debdrup: Can you just as easily modify the local_unbound to listen everywhere? Is it really just unbound?
-
rtprio
man local-unbound.conf looks like yes, it will listen on 0.0.0.0
-
Erhard
rtprio: Yes, or after I fixed the location to be under /usr/local/etc/unbound
-
rtprio
🤷
-
rtprio
so its fixed now?
-
debdrup
Erhard: src/contrib/unbound is the location of the files
-
Erhard
I guess the question is.. what is different between local_unbound and unbound?
-
debdrup
it really is just a vendor import
-
debdrup
-
VimDiesel
Title: src - FreeBSD source tree
-
Erhard
Hmm. Then I guess I don't need the port version.
-
Erhard
Annoying.
-
debdrup
cgit.freebsd.org/src/tree/usr.sbin/unbound freebsd adds/changes a few things apparently, but i don't think it's major
-
VimDiesel
Title: unbound « usr.sbin - src - FreeBSD source tree
-
Erhard
When I saw local_unbound I stupidly assumed it was FreeBSD's answer to the systemd-resolver.. A neurtered local-only resolver that I didn't want.
-
Erhard
I guess I was wrong.
-
Erhard
Why the heck do they callit local_unbound and set it up like that?
-
Erhard
It could just be configured to listen on localhost by default
-
debdrup
isn't it?
-
Erhard
It is.
-
Erhard
But I mean rather than the rename and having a port
-
Erhard
I just switched from djsdns a few years back.
-
Erhard
djbdns even
-
haroldp
How do I set options for ports in batch mode? Like `make -DWITH_MYSQL install BATCH=1` or something like that?
-
debdrup
-
VimDiesel
Title: src - FreeBSD source tree
-
debdrup
I _think_ it might also be related to being able still install unbound from a package repo and have it not conflict in any way, if for whatever reason?
-
Erhard
Well, I think I will stick with the port for now, but good to know it works fine the other way.
-
Molnija
my brain is inconceivable
-
debdrup
it might also be because local_unbound can be controlled by a socket:
cgit.freebsd.org/src/commit/usr.sbi…40c9a9ccc46480c36781e2205ec9565be45'
-
Erhard
And there definitely is a security flaw in void-zones-tools. Rudimentary, local only, DoD mainly. But stupid practice nonetheless
-
Erhard
* DoS mainly
-
Erhard
INteresting, debdrup
-
Erhard
I prefer as few vendor patches as possible.
-
debdrup
hernan: BATCH is an environment variable, you can either set it for that instance of make or you can set it via setenv (or whichever method your shell uses)
-
haroldp
well I'm trying to inject it into a jail with a jexec one-liner
-
haroldp
`make BATCH=1` actually works. I'm just trying to set port options non-interactively
-
haroldp
like we used to do before dialog allowed us to forget :)
-
rtprio
i think you can set them in the environment also
-
haroldp
right, but what's the right way to do it? and can I one-liner it as a make argument?
-
rtprio
you should be able to; i check the makefile for which options to use
-
haroldp
hmmm, `make showconfig` is pretty cool and instructive
-
rtprio
ya
-
antranigv
anyone here running FreeBSD aarch64 on M1 macOS with QEMU/UTM? I am able to run it, but it uses like 100% CPU on the host.
-
debdrup
haroldp: you can also use make.conf to set things
-
debdrup
There are multiple ways of doing it, no "right" way as that depends on what in particular you want to accomplish
-
haroldp
yeah, or i could inject a /var/db/ports/${NAME}/options, but I don't think I love either option
-
rtprio
build the port on the host and `pkg install` it on the guest
-
yuripv
antranigv: there's also vmware fusion tech preview for m1, try that
-
haroldp
I just remember we used to do this back in the good old bad old days before ports were tricked out with dialog-ed options
-
haroldp
got it
-
haroldp
make -C /usr/ports/mail/maildrop OPTIONS_SET="AUTHLIB AUTH_MYSQL" BATCH=1 install
-
haroldp
OPTIONS_SET and OPTIONS_UNSET
-
debdrup
use poudriere!
-
debdrup
(I'm _almost_ maybe not entirely possibly perhaps semi kidding)
-
rtprio
... no; poudriere is the hammer used to solve this (thumbtack)
-
haroldp
I'd use it but I am too dumb to spell it correctly.
-
antranigv
aaa finally
-
antranigv
kern.hz=100
-
debdrup
..but why?
-
antranigv
according to the handbook: The most important step is to reduce the kern.hz tunable to reduce the CPU utilization of FreeBSD
-
Molnija
it also reduces the task switching frequency
-
debdrup
for what purpose, specifically?
-
Molnija
so, don't do that if you care about response
-
debdrup
no, freebsd is closer to soft-realtime in quite a lot of respects, so kern.hz doesn't control nearly as much as it does on other unix-likes
-
debdrup
kernel scheduling is controlled by a quanta, a unit in the scheduler itself
-
antranigv
Yes somehow, lowering that got my CPU from 350% to 5%
-
antranigv
:D
-
debdrup
its value can be found in the kern.sched.quantum OID
-
antranigv
I assume there's SOMETHING in the system that's using that.
-
antranigv
ohh lemme check that
-
debdrup
what was using 350% of your CPU, and how did you meassuure it?
-
antranigv
debdrup the VM was using 350% CPU, but the guest itself was idle (according to top)
-
debdrup
what VM?
-
debdrup
"according to top"?
-
debdrup
which flags were you using?
-
antranigv
debdrup I mean, top(1). the VM is the FreeBSD VM running on QEMU on M1 macOS
-
antranigv
I get kern.sched.quantum: 94488; debdrup what do you get on bare-metal?
-
debdrup
if memory serves, that's the default value
-
antranigv
I wonder what uses kern.hz that affected this change
-
debdrup
VM can stand for virtual memory and virtual machine, so it's not exactly easy to know which one people are talking about
-
antranigv
debdrup oh, a virtual machine.
-
debdrup
the real question is, what happens wne you set kern.hz to 1000 again?
-
antranigv
oh I tried that! the CPU goes back to 350% :( and my laptop gets hot! :D
-
debdrup
if you run top with the right flags, you should see in particular which kernel thread/or light-weight process is using what
-
antranigv
I think it's polling something.
-
antranigv
debdrup oh true. I should check
-
Molnija
i thought fbsd called lwps threads, not lwps as illumos does
-
debdrup
no, freebsd has both threads and lwps
-
antranigv
ahhh, I can't believe the pkt server is dead
-
Molnija
wHAT
-
Molnija
i need to go code diving
-
debdrup
Molnija: you don't even need to go code diving, both ps and top will let you see IDs to confirm it
-
Molnija
I don't disbelieve you
-
Molnija
I mean that I need to go code diving to understand
-
debdrup
antranigv: -IqSuZ as root should get you closer
-
debdrup
Molnija: if memory serves, it dates back to kernel M:N threading that was eventually backed out, whereas this stayed.
-
debdrup
Or maybe it came in with libthr? I don't remember :/
-
antranigv
huh, it's rand_harvestq
-
debdrup
so it's something specific to the hypervisor that the qemu frontend is using
-
Molnija
I have considered implementing user-level M:N M>N threading before
-
Molnija
am I likely to go insane?
-
debdrup
seems likely.
-
debdrup
antranigv: what's your kern.random.random_sources OID set to?
-
antranigv
debdrup VirtIO Entropy Adapter
-
debdrup
Yep, I thought so.
-
Molnija
mew
-
debdrup
antranigv: what version is this?
-
antranigv
debdrup FreeBSD 14.0-CURRENT #0 main-n259276-5d42ef55dec1
-
antranigv
what should I do? remove the RNG device?
-
debdrup
that's probably the easiest
-
debdrup
but that isn't really going to solve the issue
-
debdrup
i'd suggest you file a bug