-
Demosthenex
arg, what a weird one... i have a tiny desktop i setup as a miniserver with mirrored zfs ssds. two decent samsung EVO's 500G. i just had one go offline for a few days, 300+ write errors and it's degraded. smartctl wouldn't dump any info. suddenly smartctl works again but i haven't rebooted or reset the hardware. should i attempt a zpool clear?
-
Demosthenex
i was thinking of trying to swap out the sata cable hot since it's already technically offline. just not sure if camcontrol rescan is enough
-
scoobybejesus_tl
similar thing has happened to me, both on beelink EQ12 I think it is, and on a Deskmini i think it's called. Crappy little sata connectors. Makes me want to go with nvme, or at least m.2, only for mini pc's. i tend to take it apart, put it back together, and hopefully everything is fine after a zpool clear and/or resilver
-
Demosthenex
yeah, well... this is mirrored boot. i just replaced an offbrand secondary disk with a second evo
-
Demosthenex
i thought i setup the boot sector and copied over the efi files
-
Demosthenex
i really didn't want to get in a reboot test ;]
-
Demosthenex
i'm now running on the replaced drive, it's the primary that failed. it does sound like a connector
-
Demosthenex
i have a new sata cable... if this were AIX i'd just rmdev -l hdiskX, and service the hardware
-
Demosthenex
i'm considering a camcontrol stop on that disk, and go hot rewire it
-
Demosthenex
and then a camcontrol rescan
-
Demosthenex
to see if it comes back
-
Daboone72
So the question is Wayland or Xorg on Freebsd? I'm thinking Wayland and Xfce on my old Netbook
-
Daboone72
And I guess that doesn't preclude any nice old BSD windowing apps.
-
mccd
Hmm, it seems the freebsd encryption for home is broken?
-
mccd
I setup home encryption and just noticed that zroot/home/me is actually just never mounted
-
f451
mccd: znf native datasets are not automounted
-
f451
zfs*
-
f451
*native encryption
-
f451
i think it's by design
-
f451
you'd have to ssh in and be allowed via doas or sudo to zfs load-key and zfd mount for that dir. if it's $HOME then you'd have to log out then back in
-
mccd
Okay, that makes sense. I think then I'll remove encryption from the dataset and enable it for root instead
-
mccd
if that's possible
-
f451
it's not. you'll need to mount the encrypted contents, write it all to some temporary space, then destroy the vdev/dir. enabling it for root instead is also not possible, I think, as it's set on install. Also, IIRC zfs-on-root uses GELI which isn't zfs native encryption
-
f451
i might be wrong on that last point. but if i root-on-zfs install, i get to set encryption there and its a GELI prompt i get on rebooting
-
f451
first, figure out why you need encryption, then where
-
f451
by "mount the encrypted contents" i mean mount and then decrypt it
-
mccd
Well I mostly just wanted to encrypt my laptop in case it gets stolen
-
nimaje
I would hope that you can use zfs allow to allow someone to manage their own encrypted datasets, but no idea about encrypted home and my knowlage about FDE comes from before zfs native encryption where of course geli was used, no idea if loader got support to load from zfs native encrypted datasets
-
Demosthenex
am i reading this right that freebsd's automatic ACPI support tries to do cpu freq reduction for passive cooling first by default? my server needs to run max freq, max fan all the time... i've been seeing weird temperature fluxes, could this be the cause?
-
nimaje
you mean powerd? not sure it is enabled by default, but it reads like you just want it disabled
-
Demosthenex
no, i mean like sysctl -a | grep therm
-
nimaje
you mean hw.acpi.thermal.tz%d.passive_cooling and hw.acpi.thermal.tz%d.active ? these seem to be deactivated for me, but also no idea what they should do
-
jgh
lf_
-
f451
mccd: for a laptop i'd recommend zfs-on-root with encryption. But if you have any data you want to keep, back it up, do a brand new install with zfs-on-root and enable encryption, then copy yr data accross. There is no in-place method of doing what you want.
-
mccd
f451: cheers! I'll leave it unencrypted for now and do that later
-
nimaje
mccd, f451: did you see pam_zfs_key
reviews.freebsd.org/D28018 ? I have it on my system, but it seems like it is missing a man page
-
johnny_b
hi
-
viker
hello everybody, can anyone point me in right direction ? i have older machine with I219-LM SPT-H(2) network adapter. Got into interesting situation with freebsd 14.2 (clean install). when i set ip address staticaly, it wont work. when i leave it to dhcpcd, it works. seems to me like problem with driver. Even tried modified driver from intel (found info on forum), but no luck, still same situation. Any
-
viker
hints please ?
-
viker
and for info, i tried manual settings, rc.conf settings, even create bridge over that iface, none works. no indication of any problem in logs. it just wont resolve arp and on tcpdump on other side i see no packets comming through. But on dhcp client it works.
-
nimaje
are you sure you don't need dhcp in your network and can set it up statically too? With this symptoms my first guess would be the network refusing to cooperate if you don't get your ip via dhcp
-
viker
ee problem is local in that machine. there are 5 other machines in that segment, all setted up staticaly and no problem. even virtual on 1 of that machines (libvirt on linux , fbsd14.2 installed) working through bridge like charm. It's specific to this network interface.
-
viker
on linux it works, but i dont want linux on that particular machine
-
viker
and yes i tested to connect it to cable from other machine, same result, link is up, nothing working till dhcpcd somehow get ip
-
nimaje
do your routing tables look sensible? netstat -r -W -n
-
viker
thats interesting on that
-
viker
it looks fine
-
ek
viker: Can you paste the relevant lines to that interface from /etc/rc.conf as well as the "ifconfig" and "netstat -rn" output somewhere such as
pastebin.com ?
-
johnny_b
there's a missing content at ch22.8 in the pdf version of the fbsd handbook. where should i report this?
-
johnny_b
i'd like to install fbsd 14 on my mac mini 6,2. is the info about asmc support still valid on this page:
wiki.freebsd.org/IntelMacMini#Mac_mini_6.2C2 ?
-
nimaje
you mean "22.8. ZFS Features and Terminology"? report on
bugs.freebsd.org/bugzilla there is even a link that directly uses Documentation as the product
-
f451
nimaje: thank you,
reviews.freebsd.org/D28018 looks v cool
-
nimaje
f451: I read some forum posts too and it seems like the installer lets you select to encrypt home directories, but forgets to configure pam_zfs_key for it
-
f451
yes thats what i found
-
johnny_b
nimaje: exactly
-
f451
in the OP's context though (laptop) i think GELI would be a better fit though
-
f451
in a server or headless context, enc via zfs enc is better, at least the machine will come up without oob-management
-
viker
@ek standard ifconfig_em0="inet [ip] netmask [mask]" and its not working
-
viker
@ek not even arp resolve working. and netstat shows in routing table ip on interface
-
burie
creating a network alias of netmask 255.255.255.255 on an interface isn't supposed to be accessible from different hosts right? When I set 255.255.255.0 it works, but
serverfault.com/questions/199329/wh…-255-255-255-for-alias-addresses-in docs.huihoo.com/darwin/opendarwin/a…rticles/network_config/ar01s03.html says it won't work right because internal tables aren't set up correctly.
-
burie
netstat -rn shows routes were set up so is anything more needed when setting 255.255.255.0 on an alias on modern versions of freebsd?
-
Demosthenex
nimaje: the passive_cooling is exactly what i'm talking about. i have powerd set to max, but the acpi documentation seems to indicate the kernel will alter the cooling and cpu speed
-
wez
Can FreeBSD do virtualisation yet?
-
dstolfa
wez: has been able to for over a decade
-
dstolfa
and if you count xen, even longer
-
Aedil
Yes. I assume it also hardware accelerated on suitablke Intel.
-
Macer
viker maybe awkwardness with cache across the network? Or having had the same ip on something else?
-
wez
dstolfa: FreeBSD works under XEN on Linux?
-
wez
What about under Docker?
-
Macer
And you’re sort of missing a router there.. probably best to look at how you’re trying to do it in rc.conf
-
dstolfa
wez: freebsd can be used as dom0 on xen. if you want freebsd as a *host*, you should use bhyve. if you want freebsd in a vm, you can use any hypervisor you like. docker uses cgroups and namespaces, so obviously won't be able to run a different kernel. however, on macos (and presumably windows), docker will spawn a vm running a different kernel which could feasibly be freebsd. this isn't a thing on linux,
-
dstolfa
however
-
wez
dstolfa: No, Linux needs to be dom0, the company finally aggreed to get off Windows to Linux, switching to FreeBSD as the base OS is going to take another 10 years or so :S At least if I can run it in a VM then I get to use it
-
dstolfa
wez: well, freebsd can also be domU, so if you need to use linux you could do it either via xen or via kvm (the latter is probably easier to set up)
-
wez
\o/
-
wez
Good news, I will read up on that, thanks!
-
nimaje
Demosthenex: did you try with powerd and passive_cooling disabled?
-
deimosBSD
is there documentation for how to give a public ip to a bhyve vm? no nat, just bridged with its own mac addr on the local lan
-
sbr
Isn't that the default state?
-
sbr
state/option
-
sbr
I forgot I use VM-BHYVE(8) aka `vm` but thats the default state when using vm
-
nimaje
you have to give the vm a network interface, normally you create a bridge (virtual switch) for that, attach a epair (virtual network cable) and give the not attached side of the epair to the vm, but if you have multiple physical network interfaces you can give one completly to the vm
-
ivy
for bhyve you don't normally use an epair, just put the tap interface in the bridge
-
deimosBSD
i have a bridge and tap interface
-
deimosBSD
tap interface for each vm
-
Demosthenex
nimaje: so i have stopped powerd... as to passive_cooling, i'm not sure how to tweak those
-
Demosthenex
because part of the docs say it's locked out until you do an override
-
ivy
"gstreamer1-plugins-bad -- stack buffer overflow in H.266 video parser" - i guess they really are bad, huh
-
ek
hah
-
armin
lol
-
armin
nice find :)
-
treefrob
what is the FreeBSD equivalent of the Linux "lsblk" command? (show all block devices)
-
ivy
treefrob: probably "camcontrol devlist", but this doesn't show certain non-CAM devices like MMC disks
-
ivy
(there is ongoing work to make mmc(4) a CAM device)
-
treefrob
ivy, thanks
-
treefrob
cam as in Common Access Method?
-
ivy
yes, cam(4)
-
treefrob
heh, even Tru64 knew about cam
-
ivy
it's quite possible it was inspired by Tru64... all physical storage devices on FreeBSD are supposed to use CAM, while virtual devices (like mirrors) use GEOM
-
treefrob
ivy, I attached an external disk enclosure which presents two SATA drives as a logical (mirrored) volume via USB3. I saw a few lines in /var/log/messages, but I don't see anything new with "camcontrol devlist"
-
treefrob
in fact the beast is a FreeNAS
-
ivy
does it show up in dmesg?
-
treefrob
this is what it produced in dmesg:
termbin.com/bu08
-
ivy
that's not a storage device, if it was it should show up as a da(4) device
-
ivy
possibly it's expecting the host to support UASP? FreeBSD does not
-
treefrob
oh shit