-
warsoul
im trying to update and got this message
-
warsoul
Waiting for data... (^X or interrupt to abort)
-
nmz
what's /var/db/mergemaster.mtree
-
rwp
-
VimDiesel
Title: JRG Systems - 802.11ac on FreeBSD with wifibox
-
rwp
Oops. Replying to the wrong channel. Sorry for the non-sequitur.
-
rwp
nmz, I guess I could answer your question though. mtree(8) is a command that scans a directory hierarchy and stores the result in a file. Then on a later scan mtree can compare the current files to the saved db of them and report if any have changed.
-
rwp
mergemaster(8) uses this to know which files need to be prompted for merging.
-
nmz
should I erase it?
-
nmz
more like can you?
-
polyex
i just ran a 14.1 unattended bsdinstall. i got 2 nvme drives i wanna mirror and i want a mirrored swap. install finished but there's no swap?
termbin.com/t6j0. system boots too. just swapinfo returns nothing, top shows no swap
-
polyex
in /etc/fstab there's 2 lines. 1 for efiboot0 and 1 for /dev/mirror/swap.eli none swap sw 0 0
-
polyex
is it a bsdinstall bug?
-
polyex
zfs problem in 14.1 unattended bsdinstall. i got 2 nvme drives in mirror and i want a mirrored swap too. install finished and it boots fine. but there's no swap?
termbin.com/t6j0 swapinfo returns nothing, top shows no swap
-
polyex
why have a zfs dataset mounted in /zroot/ instead of directly off /?
-
nerozero
polyex, this depends how you use bsd
-
nerozero
if you use beadm - it creates additional mounting weirdness just to keep you safe in cases of bad upgrades
-
nerozero
this lets you switch between snapshots during a boot
-
nerozero
i dont like this way of solving the system integrity, couple of times i had an issue with zfs, and this type of mounting becoming a big pain in the ass during recovery
-
polyex
what's safer about mounting zroot/bhyve at /zroot/bhyve/ instead of /bhyve/?
-
nerozero
in case to change that you have to prior using partition the zfs in a different way, (manually)
-
nerozero
and then you have to control the snapshots by hand
-
nerozero
if you new to zfs and bhyve - then is is better to say in the "recommended" zfs partitions
-
nerozero
read about beadm
-
nerozero
modern openzfs become very stable and you probably do not need to recover anything..
-
nerozero
polyex, man bectl
-
polyex
zfs problem in 14.1 unattended bsdinstall. i got 2 nvme drives in mirror and i want a mirrored swap too. install finished and it boots fine. but there's no swap?
termbin.com/t6j0 swapinfo returns nothing, top shows no swap. in /etc/fstab there's 2 lines. 1 for efiboot0 and 1 for /dev/mirror/swap.eli none swap sw 0 0
-
angry_vincent
how do i get ISA x86-64-level on FreeBSD?
en.wikipedia.org/wiki/X86-64#Microarchitecture_levels. on linux one car run /lib64/ld-linux-x86-64.so.2 --help
-
VimDiesel
Title: x86-64 - Wikipedia
-
rtprio
jesus christ you and this unattended install
-
rtprio
just install it and start using it instead of fucking around
-
rtprio
unless you're going to do the same install on 1000 other systems
-
polyex
relax i think i found a bug in 14.1 bsdinstall. or atleast a hole in the man page
-
rtprio
does the non-interactive install create the swap properly?
-
rtprio
and how does it do it
-
rtprio
eli?
-
polyex
what im saying is from man bsdinstall,
termbin.com/t6j0 should be enough to create a zfs mirror with a mirrored swap. it does everything except making a swap
-
rtprio
does mdconfig -l show anything?
-
polyex
no
-
|cos|
rtprio: euhm. one (1!) system is an appropriate minimal number of systems to install with automation, because it gives documentation and reproducibility.
-
rtprio
... disagree. you use config management for that, not automated install
-
rtprio
polyex: so yeah, i suspect it gets confused when you do both encrypted and mirrored
-
rtprio
you could test this theory trying only one and then the other
-
polyex
rtprio k commented out the swap encryption line. reinstalled. on startup, says swapon: /dev/mirror/swap: no such file or dir
-
rtprio
ok, then looks like you found a bug
-
polyex
can anyone who knows more than me confirm it's a bug pls?
-
rtprio
how good are you at reading shell scripts
-
polyex
not
-
rafe
Is there a reason that D35694 was never merged?
-
rafe
It just seems lost in the aether
-
rafe
-
VimDiesel
Title: ⚙ D35694 Add ts(1) command
-
drathir_tor
polyex: wonder if there is possibility its get mounsted later than something try access it ?
-
polyex
try what drathir_tor?
-
polyex
it doesn't take 15 min to start swap up heh
-
drathir_tor
polyex: yes true, but more thought about hierarchical steps of encryption script maybe its happens before swap location get mounted... obviously its only just idea...
-
polyex
anyone have unattended bsdinstall end at rm: /mnt/tmp/installscript: no such file or dir?
-
polyex
i commented out any of the swap env vars and it seems a swap partition was made for me
-
polyex
how do i check if it's a mirror swap?
-
drathir_tor
polyex: normally df -h or lsblk -fs but need admit them from linux not sure if present under freebsd...
-
polyex
didn't show me if swap is mirrored
-
uskerine
hi, I want to set up a small "homelab". I have been looking for potential servers and found some recommendations for Dell 320-420-620-720 , or the subsequent generation Dell 330-430-630-730.
-
uskerine
I would like to know if someone has practical experience on FreeBSD support for this one or can recommend alternatives
-
uskerine
these ones*
-
drathir_tor
polyex: fast search " zpool status " maybe from
docs.freebsd.org/en/books/handbook/zfs
-
VimDiesel
Title: Chapter 22. The Z File System (ZFS) | FreeBSD Documentation Portal
-
polyex
that shows the main mirror but nothing on the swap
-
nerozero
polyex, why dont you partiton disk as you want and then extract bsd files there
-
nerozero
it is very simple to do
-
polyex
because i'm bug hunting in bsdinstall
-
nerozero
ah ok then
-
polyex
nerozero do you know how to check if my swap is mirrored or not?
-
nerozero
if your swap is placed on a mirror device - it is there
-
nerozero
if you have 2 swaps on 2 different drives - it is not
-
polyex
what command output would i look at?
-
nerozero
cat /etc/fstab ?
-
ridcully
swapinfo -h
-
nerozero
or that one
-
polyex
looks like it's not mirrored. the swaps are 2G in size, with 4G total
-
polyex
so can't be a mirror
-
nerozero
but this is depending on how you mounting your swap
-
polyex
since new ppl are here now:
-
polyex
zfs problem in 14.1 unattended bsdinstall. i got 2 nvme drives in mirror and i want a mirrored swap too. install finished and it boots fine. but there's no swap?
termbin.com/t6j0 swapinfo returns nothing, top shows no swap. in /etc/fstab there's 2 lines. 1 for efiboot0 and 1 for /dev/mirror/swap.eli none swap sw 0 0
-
nerozero
you can do that by using gmirror against yor drives then put the swap on the gm device
-
nerozero
but why ?
-
nerozero
look
-
nerozero
you do that wrong
-
polyex
how am i doing it wrong? i just followed man bsdinstall
-
nerozero
why you need your swap data in a mirror ?
-
nerozero
first
-
polyex
so i don't lose swap with a disk failure and lead to a crash
-
nerozero
second swap partitions is separate of zfs once
-
polyex
what?
-
nerozero
then make a volume partition on zfs and add is as a swap
-
polyex
how about you just let me find bugs in bsdinstall and get them fixed? why the pushiness
-
nerozero
zfs create -sV2T -o volmode=dev zyourpool/zyourvolume
-
nerozero
ok i forget that you are looking for a bugs .,.. sorry
-
nerozero
I'm not using bsd installer for ages .... (>15y or so ... its too restrictive for me)
-
nerozero
my turn to ask question. what is the best way to check if drive is mounted or not ( in scripting )
-
nerozero
also better approach to find mount_dir is used already by parsing `mount` output
-
drathir_tor
polyex: but isnt You loose ram anyway and swap is incomplete on crash ? to have full dump the system need to migrate all ram into swap file/device to being able resume from it... ?
-
polyex
sorry i dont understand what you say
-
drathir_tor
polyex: like in meaning when system crash before Your all ram is stored into swap file/device You will be unable to resume the system bc of incomplete swap data... at least if im not wrong...
-
polyex
dunno bro i just want mirrored swap
-
drathir_tor
polyex: oh i see...
-
drathir_tor
nerozero: not sure if best (probably not), but grep "df -h" for mountpoint handle or "lsblk -fs" for partition uuid could works i guess ?
-
polyex
meena gone?
-
polyex
what's better, swap on zfs, or no swap?
-
vortexx
polyex: no swap. Swap on ZFS can lead to kernel problems.
-
polyex
vortexx ok then very best option is swap the way bsdinstall sets it up, where it's separate from zfs?
-
vortexx
polyex: if you really need mirrored swap, you do create a raid 1 device and tell the swap config that that is the partition to swap to
-
vortexx
you don't involve ZFS in this
-
polyex
ya
-
polyex
that's how bsdinstall sets it up right? parallel to the zfs config
-
polyex
not mirrored, i gave up on that
-
vortexx
never used bsdinstall
-
vortexx
but
docs.freebsd.org/en/books/handbook/geom/#geom-mirror-two-new-disks <-- how to set up raid1 with two partitions, shouldn't be hard to add to bsdinstall
-
VimDiesel
Title: Chapter 21. GEOM: Modular Disk Transformation Framework | FreeBSD Documentation Portal
-
drathir_tor
polyex: get swap even if unused always safe approach... You at least notice slowdown and start investigate when swap kick in... (assume no monitoring present to mail scream first)
-
vortexx
yeah processes will get randomly killed if no swap and you run out of ram
-
regis
vortexx: Not fully randomly, and see protect(1)
-
rtprio
-
Demosthenex
ok, i wanted to buy a DVD of freebsd 14, and a few physical copies of the freebsd mastery books (ensuring the author gets paid), but i want to do that in EU
-
Demosthenex
where could i do that?
-
regis
-
VimDiesel
Title: Get FreeBSD | The FreeBSD Project
-
V_PauAmma_V
-
VimDiesel
Title: Appendix A. Obtaining FreeBSD | FreeBSD Documentation Portal
-
Demosthenex
yeah, i found a french vendor of the discs, i'll order one there
-
Demosthenex
but the cool books, physical prints seem to be a problem
-
regis
There's a German one, too, there:
hinner.de/linux/freebsd.html
-
VimDiesel
Title: Hinner EDV: FreeBSD und Linux
-
regis
I'm guessing that you're looking for EU-based vendor, not just shipping? If shipping is not a problem, you'll find the books on amazon.de
-
Demosthenex
the german one says no eu sales on the site, weird
-
Demosthenex
ugh, i have to give money to bezos?
-
regis
-
VimDiesel
Title: Frequently Asked Questions – Michael W Lucas
-
Demosthenex
regis: yeah, i was on that page.
-
Demosthenex
tiltedwindmill, bookshop.org, etc were all US specific
-
Demosthenex
really, i need a US credit card to order there.
-
Demosthenex
looks like it may only be amazon in EU to buy a physical copy with local currency
-
Demosthenex
*sigh* ideally he still gets paid if i buy it from that sleazy seller
-
Demosthenex
-
VimDiesel
Title: FreeBSD Mastery, Michael W Lucas Allan Jude | Donner
-
rwp
I am surprised tiledwindmill requires a US credit card. You might email him and suggest an alternative payment method allowing you to "tip his rats".
-
Demosthenex
well, he'd have to do EU shipping too, which is a PITA. i do understand
-
Demosthenex
i'm just trying to buy them from EU, and see that he's fairly paid too
-
Demosthenex
and i just don't get the same value from ebooks
-
rwp
I agree that I don't get the same value out of ebooks. I am much better with the physical paper books.
-
DanDare
Finally now I know how Daemon sounds like
youtube.com/live/uW9iEWv_UIE
-
VimDiesel
Title: Interview with Beastie, the BSD Daemon - YouTube
-
rwp
His Treat the Rats item though does not ship you anything. It's just a little extra cash to send to him directly.
-
regis
Heh, I got a flashback from Blank Reg:
youtu.be/dZ4qli_1C48?t=33
-
VimDiesel
Title: Some Blank Reg moments from Max Headroom - WIlliam Morgan Sheppard - YouTube
-
rwp
DanDare, Excellent. Hahaha!
-
DanDare
:)
-
ultramage
Hi, what could be the reason for dhclient to say "No working leases in persistent database - sleeping." at startup, when there are valid ones? (it happens after an outage when the ISP's infrastructure is not fully up yet)
-
ultramage
I'm revisiting a cascade of failures that happens in this scenario, that used to be fine in freebsd 12.0. I originally posted it in
forums.freebsd.org/threads/slow-mod…ng-up-ignores-timeout-setting.91250
-
VimDiesel
Title: slow modem results in dhclient 'no link, giving up', ignores timeout setting | The FreeBSD Forums
-
Demosthenex
yay, i bought about 100eur of books today
-
ultramage
I have found that 13.0 dhclient only waits 10 seconds for link (hardcoded). I have patched that. I have realized that I need to have dhclient 'timeout' at least 120s to wait for the ISP to prevent the abovementioned "No DHCPOFFERS received, Trying recorded lease. No working leases in persistent database" scenario. I still want to understand why it's doing this though (is it verifying the lease by
-
ultramage
pinging a host?). Finally, I have identified an ancient mistake in the pf 'nat' rule where I learned to make the rule dynamic by adding parentheses, but I didn't put them into the 'from !($ext_if)' part. Freebsd 12 and 13 seem to have autocorrected this, but 14 takes it literally and rejects the entire rc.conf file if ext_if isn't ready.
-
armin
ultramage: Hi, you could try if simply using dhcpcd instead of dhclient works for you if you have issues with dhclient. That worked for me many many times in the past with very different issues.
-
armin
ultramage: If you receive no DHCP offer, it looks if there is some DHCP assignment that is locally cached, at least that's my understanding of what a recorded lease is in that context.
-
ultramage
armin: yes it's supposed to use dhclient.leases - which it has, and there's a valid non-expired lease in there. Prior to freebsd 13 it had no problem binding to it. Now it gives up instead.
-
ultramage
I have the source code open. There have been no obvious changes to dhclient.c, but I do see that instead of just doing stuff, it crafts a short 'script' and then executes it, and only performs the binding if the script succeeds. So now I need to study the internal scripting engine to understand this change in behavior.
-
armin
ultramage: oh cool, interesting!
-
polyex
how is if_wg_load="YES" in freebsd 14 used? i currently use wireguard-tools on freebsd 13.
-
mzar
it works in the same way
-
polyex
well no it doesn't because i kept all the same config as 13 and wireguard didn't magically work
-
ultramage
man wg, I guess?
-
polyex
ya i read that. it doesn't say where to put the config file
-
polyex
with 13 wireguard-tools, i put wg0.conf in /usr/local/etc/wireguard/
-
ultramage
yeaaaa. driver src doesn't seem to either. I'm trying to locate the userland 'wg' component atm
-
ultramage
wg showconfig might reveal something
-
mzar
you still need net/wireguard-tools package
-
polyex
so why bother enabling if_wg_load if it doesn't add anything?
-
mzar
I don't know why you were bothered
-
ultramage
that's interesting, man has a 'wg(8)' page, implying it comes built in
-
polyex
that's not what that means
-
polyex
ya it's weird
-
mzar
other BSDs have native tools for management, ours lacks the tool yet
-
ultramage
polyex: my first guess is that having a kernel driver reduces the syscall / buffer i/o overhead.
-
mzar
but no worries
-
mzar
wg-tools will load it
-
polyex
is wg-tools the same as wireguard-tools?
-
mzar
yes
-
mzar
pkg install net/wireguard-tools
-
polyex
ok so keep everything the same with wg for 13, just enable the kernel module in boot loader for more efficient operation?
-
mzar
no need
-
mzar
it will delay boot, that's only benefit/drawback
-
polyex
no need to if_wg_load="YES"?
-
» ultramage will probably bake it into the kernel later
-
mzar
polyex: yes, please dd this line
-
mzar
polyex: how do you like FreeBSD ? are you considering migration to another BSD or other variant of Unix ?
-
polyex
no i like freebsd good enough. you?
-
mzar
same here, I got used to this OS
-
rwp
I am upgrading my desktop from 13 to 14.1 and it happens to have /usr/src/ populated and the upgrade has been runnning doing installs on /usr/src for the last FOUR hours.
-
rwp
I am about ready to kill it, snapshot things back to the previous state, and then do something different. Maybe remove all of /usr/src and associated and then try the upgrade again. It is just crawling slowly through /usr/src/ and this is taking forever and a day to get through it.
-
rwp
Any wisdom hints from the group?
-
amigan
rwp: what is it hanging on?
-
amigan
If you press ^T a bunch, what wait channel is it usually in?
-
rwp
The prompt is just "Installing updates..." but in another terminal I am running ps auxdww and looking at what it is doing in a loop and it is running "install -S -o 0 -m 0755 [long hex hashish] ///usr/src/tools/test/stress2/misc/mkdir.sh" and just crawling through every file in /usr/src/
-
amigan
I am quite confused. Are you doing a source or freebsd-update update?
-
rwp
I don't care about freebsd-update updating /usr/src/ and but it seems insistent.
-
amigan
I would just blast /usr/src and try again, as you suggested
-
rwp
It's running "freebsd-update install" after having run "freebsd-update -r 14.1-RELEASE upgrade"
-
rwp
I don't recall it taking so long to update /usr/src in past upgrades. And the other systems I have upgraded don't have /usr/src populated.
-
rwp
I am going to do it. Interrupt it. The worst that happens is that I have to revert to a previous Boot Environment and I am well practiced with that recovery.
-
amigan
freebsd-update often does weird shit for me. The machines I use it on usually don't have src present.
-
rwp
I had forgotten that /usr/src/ was populated on my desktop.
-
amigan
-
VimDiesel
Title: 279899 – pf_unlink_state mutex unlock page fault panic
-
rwp
I started this at 10:43 and it is now 14:30 so it has actually been running almost 6 hours now. It's just taking way too long.
-
rwp
amigan, That panic does not look like fun.
-
amigan
Yeah. I went through commit log trying to brain-bisect it and can't see anything obvious.
-
ultramage
rwp: do you happen to run the os off of an usb2 thumbdrive? it reminds me of how portsnap destroyed the one I was using way back when
-
rwp
ultramage, Nope. This one is a mirrored pair of 3TB SATA spinning drives.
-
amigan
I've seen etcupdate do something similar. In fact, is etcupdate in the process tree?
-
amigan
Might be too late now, of course
-
rwp
I have already interrupted it. I am cleaning out files now. Surprised by there being 120k files in /usr/obj for example. Quite a few.
-
rwp
I am purging out /usr/src and /usr/ports and /usr/obj as this is not a source upgraded machine.
-
rwp
But being as this is giving me trouble I might take this as motivation to simply copy over a good system from one of my other machines that I have already upgraded.
-
rwp
166k files in /usr/ports
-
rwp
In 42876 directories.
-
ultramage
yea no, after that incident I use a sparse git checkout. a pain to manage since portmaster fails hard on missing subdirs, but it's much easier on the filesystem
-
ultramage
and my usr/src is a md mount of a 4gb .img file with a git checkout inside, to keep all that crap boxed in.
-
rwp
Okay. Have all of that cleaned up. Will a "freebsd-update install" be idempotent enough to restart successfully from here? I guess there is only one way to find out. freebsd-version -kru says 14.1-RELEASE 14.1-RELEASE 14.1-RELEASE-p1 so it feels like it should be mostly done but cat /etc/os-release still shows 13.3 so it hasn't been updated yet.
-
rwp
At least it's installing files in /etc /usr/bin and so on now. Seemingly at no faster than a couple per second though which still seems like it is incredibly slow for some reason.
-
rwp
OMG! It uses install -S and the -S forces an fsync() after every action. No wonder it is crawling along so slowly! It's being forced to run at slow disk speeds.
-
rwp
That's got to be new damage with 14 as I do not remember it running that slowly in 13.
-
ultramage
installworld j1 from 13 to 14 only took a few minutes on a single sata drive. that package-based os update must be weird
-
rwp
I edited /usr/sbin/freebsd-update and hacked out the -S from "install -S" and am running it again and now it is moving along much faster.
-
rwp
This is not the pkg-base that everyone has been talking about. Not yet anyway.
-
rwp
It seems from experimental evidence that interrupting and restarting freebsd-update is idempotent and it picks up where it left off okay. That's good anyway.
-
rwp
This is running on a fairly fast ten year old desktop with 16GB of RAM and two Toshiba 3TB spinning SATA disks. It's not a slow system normally.
-
polyex
freebsd 14 unattended bsdinstall throws up a "rebooting" gui when it's done. 13 didn't do that. how can disable? because now every bsdinstall takes 10 seconds longer out of nowhere. not documented in bsdinstall man page
-
polyex
why does bsdinstall show mouse cursor during unattended install? should be hidden or off to the side lol
-
antranigv
polyex maybe moused is enabled?
-
polyex
well ya prolly but still
-
polyex
i type a key and mouse hides. no reason unattended bsdinstall can't hide mouse cursor too
-
rwp
Hiding the mouse pointer is a terminal feature, not a bsdinstall feature. It would need bsdinstall to add code to talk to the terminal. And then there is hte problem of which type of terminal.
-
polyex
ok then just unload moused?
-
rwp
Right. I would disable moused.
-
polyex
ya
-
rwp
moused_nondefault_enable="NO"
-
rwp
Hmm... Even though I purged /usr/src the freebsd-update is putting it back now. I must not have gotten the source freebsd-update is using to reference and it still thinks it needs to be there.
-
rwp
/etc/freebsd-update.conf Components lists only world and kernel and does not list src.
-
psionic
when will the wifi adapter be supported on the PI Zero W1.1 ?
wiki.freebsd.org/arm/Raspberry%20Pi
-
VimDiesel
Title: arm/Raspberry Pi - FreeBSD Wiki
-
psionic
WEN�
-
psionic
WEN��
-
psionic
WEN��
-
psionic
WEN�
-
polyex
why does the file i set for /etc/COPYRIGHT get overwritten now?
-
kevans
psionic: when someone who cares enough works on it
-
kevans
be the change you want to see in the world :-)
-
remiliascarlet
Because software patents suck.
-
circuitbone
-
polyex
kevans know why unattended bsdinstaller sits there for 10 seconds at the end before doing automatic reboot? that's different from 13 behavior
-
vortexx
polyex: I hope you're relaying to a bugs mailing list all your complaints about bsdinstall
-
vortexx
just dumping here isn't going to cover it
-
jauntyd
hi circuitbone
-
circuitbone
hello