-
suqdiq
pikvm rox, happy owner of 1
-
n30
hi all, how do i skip upgrade openssl from 1.1.1 to 3.0
-
n30
?
-
nimaje
n30: did you figure out why you even have an openssl package installed? and from the pkg output you shared previously it seemed like you already have 3.0 installed; maybe pkg lock but no idea what other effects that will cause
-
n30
na this is on a jail
-
nimaje
then you could try pkg lock
-
» _xor really wants to get multi-machine parallel builds going for ports/poudriere
-
» _xor just changed DEFAULT_VERSIONS+=ssl=openssl111 to openssl and saw that it needs to rebuild 2100+ ports
-
n30
pkg version|grep "<" say that perl5-5.34.1_3 needs to be upgraded but portmaster -aD say that nothing is to be upgraded
-
nimaje
UPDATING has instructions for portmaster users to update perl, but you should have said that you build your packages yourself earlier, then I would have suggested that DEFAULT_VERSIONS+=ssl=openssl111 (ok, that also forces stuff that would use base openssl to use an openssl package
-
nimaje
using poudriere makes managing that stuff a bit easier
-
parv
n30, What OS version is running in jail?
-
n30
i have upgraded perl
-
n30
parv: freebsd
-
parv
n30, I was asking for the version, not the name. Is it 13.2?
-
n30
parv: ah then yes
-
parv
n30, Thanks
-
n30
but im srsly confused why pkg version says that i need to upgrade perl when i recently have done it and all the dependencies for perl
-
nimaje
the default version of perl changed to 5.36 and it seems like portmaster gets confused by default version changes that don't change something else of that port or something
-
nimaje
ah, that default version change changes the dependencies of every port depending on perl and I don't think portmaster checks if it should rebuild because of changed dependencies
-
rtprio
n30: i suspect you're going to have a bad time
-
n30
ahhh 5.36 then
-
n30
wonder where i got from that 5.34 was the latest
-
nimaje
oh seems like -> 5.34 was 20230730
-
n30
yeah noticed that now ... then its just to upgrade :d
-
wikan
do I have to use .eli postfix for geli labels?
-
wikan
may i use eli0?
-
wikan
because eli0a looks much better
-
skyenosaur
hello, could anyone link me to a manual that describes the steps for installing freeBSD manually without using the installer? i have tried search engines but the results were either incomplete or 5+ years old
-
wikan
exactly this is what i am doing now
-
wikan
i can give you my wscript
-
skyenosaur
(stuff is going wrong and i think i know why, i don’t need further help at this point, just a complete list of steps to reproduce exactly what the installer would do, what partitions are required etc, so i can change the parts that i need to)
-
skyenosaur
wikan: please and thank you
-
wikan
wait
-
wikan
which pastebin to use?
-
skyenosaur
chat title seems to link one that looks good enough
-
vkarlsen
wikan: bsd.to
-
wikan
-
VimDiesel
Title: script - Pastebin
-
wikan
this is old and BAD script
-
wikan
today i will have good, new version ;)
-
wikan
this script works fine up to 180 line
-
wikan
i know what i did wrong :)
-
wikan
-
VimDiesel
Title: FreeBSD mount img files · GitHub
-
wikan
this script install freebsd on ecrypted / partition
-
wikan
today i will have correct script
-
wikan
and maybe in 2 weeks my own dialog based installer
-
wikan
if you want me to share with you, priv me your mail, so i will send it to you
-
skyenosaur
wikan: thank you! i just want to get freeBSD running on my weird old laptop with a weird EFI, so i think i should be fine with this, i will probably be back if i can’t figure it out
-
wikan
in my code is a bug. script stops when creating users
-
wikan
so I had have to finish installation by hand :D
-
wikan
well this is my first script I wrote maybe 1 month after I started using freebsd :)
-
cedb
how do you all organize your poudriere runs? the automatic number of builders is dicey cause it fires 11 builders seeing as i have a ryzen which is swell for most packages until we get to the heavy hitters (llvm,rust,gcc,browser)
-
Dianora
Gooooood mornininink
-
cedb
!gm
-
skyenosaur
what does "Root mount waiting for: CAM" mean?
-
Dianora
means just that
-
Dianora
the CAM system is a physical layer that has to settle before a disk can be mounted
-
Dianora
man -k cam will give you a bunch of man pages
-
skyenosaur
hmh, and what does it mean when i get repeated errors and timeouts that mean it takes forever to boot and even when it’s finally finished booting keeps spamming my console?
-
Dianora
man 4 cam will give you more than you need to know
-
Dianora
skyenosaur: could be you have a failing disk
-
Dianora
skyenosaur: could be a bad device driver
-
Dianora
it would help to know the hardware involved.
-
skyenosaur
it’s 10 year-old thinkpad that is kind of banged up anyway, but has so far been running smoothly under linux, i just need it as a freeBSD test machine
-
Dianora
skyenosaur: pkg install smartmontools might help you
-
Dianora
smartd will tell you what's up
-
Dianora
skyenosaur: which thinkpad?
-
skyenosaur
it keeps complaining about ahcich1 on different slots
-
skyenosaur
Dianora: z50-75
-
skyenosaur
it does have a broken cd drive, maybe it’s that
-
Dianora
that would do it
-
Dianora
man 4 ahci
-
Dianora
hope that helps. I have to step out
-
skyenosaur
yes i got it from here, thank you Dianora!
-
Dianora
you are welcome.
-
Dianora
skyenosaur: you should be able to disable it in device.hints
-
Dianora
man device.hints
-
Dianora
gotta go
-
skyenosaur
i'll probably just disconnect the drive instead :)
-
antranigv
Hey all, any LDAP fans out here? I wrote this article, and if you're interested in running LDAP+LDAPScripts, I would love if you can test this article to make sure it's all working fine.
wiki.freebsd.org/LDAP/Setup
-
VimDiesel
Title: LDAP/Setup - FreeBSD Wiki
-
cedb
antranigv: tks, will take a look!
-
antranigv
cedb thank you! I will add the client side as well, using SSSD
-
cedb
antranigv: i dont see any pam related stuff, do you have a recomendation for a link on setting that up? its probably pretty simple just sanity/best practices yk
-
antranigv
cedb so for that I use SSSD, I haven't documeented that yet, but lemme paste the code
-
antranigv
sorry for typoes, texting iin a cabb
-
antranigv
bsd.to is dead? sad
-
antranigv
cedb here's the basic gist:
reviews.freebsd.org/P614
-
VimDiesel
Title: ✎ P614 SSSD config
-
antranigv
cedb as you can see, I'm using NSSwitch instead of PAM, but the idea is the same. I used nsswitch because I'm more familiar with it, due to working with NIS for years.
-
cedb
antranigv: ahh okay not familiar with centralized auth i guess that makes a lot of sense to just nss into using ldap, theres just a bunch of pam modules id like (like u2f) hmmm
-
antranigv
cedb u2f is for 2FA?
-
cedb
yep
-
nimaje
cedb: I configured poudriere to work on 2 ports in parrallel each with 3 jobs as most stuff doesn't benefit from jobs anyway, but building 4 heavy ports in parallel was to much (as my cpu has 4 cores poudrieres default was 4 builds in parallel)
-
Schamschula
nimaje: I found that the limit on building packages in parallel is memory rather than CPU cores.
-
nimaje
Schamschula: yep, but poudriere just looks at the cores for its default, well any default for that setting will be wrong, they should have just set it to 1
-
Schamschula
Yes, but "heavy" packages, like gcc, llvm and rust fail because of insufficient memory.
-
skyenosaur
well i think my earlier question of what does this error mean has been succinctly answered by the hard drive dying, lol. my freebsd adventures are not off to a good start
-
cedb
skyenosaur: zfs or ufs
-
Dianora
skyenosaur: I did say eh? ;)
-
skyenosaur
Dianora: you did! and honestly i'm a little impressed that freeBSD started printing errors from the start, whereas linux didn't say a peep this whole time. the HD has been iffy for a while
-
skyenosaur
cedb: not sure what your question relates to, sorry
-
cedb
your drive that is dying what is the fs on it
-
skyenosaur
cedb: it was zfs, but i didn’t get file system errors, the system started freezing whenever it was running from hd (memory is fine, usb systems run)
-
skyenosaur
i kind of gave up on it, its a 10 y/o laptop and i have other systems. i'm now preparing to install on my desktop
-
cedb
hm ya zfs sounds a little mean to old commodity hardware (why im asking in the first place)
-
skyenosaur
cedb: why? (just trying to understand what’s so special about it)
-
skyenosaur
but either way that can't really be the source of the problem. performance issues i could understand but not this, especially with the CAM timeouts and the system freezes and the way the HD has been excruciatingly slow for months. i was just waiting for it to fail tbh
-
skyenosaur
can i mount a luks encrypted linux lvm partition under freebsd? sorry searching kinda hard bc no X yet and phone screen tiny
-
antranigv
skyenosaur nope :( it works only on Linux. most encrypted disks are like that. However, you can use a bhyve VM to mount it using USB passthro
-
skyenosaur
antranigv: aww okay thank you! its ok i will simply change it then
-
ghoti
rwp: pikvm has been on my radar to check out for a while. Just had a closer look, and I'm very intrigued! In the mean time, I'm investigating installing an old FF in a jail for JRE (via ports-mgmt/portdowngrade probably), and I'll document my process just in case it works. :)
-
n-st
hi, i've got a bit of a problem: my boot ssd (for a manually installed fileserver) died (doesn't event speak sata anymore). i've got an `rsync -haHAX / /data/zroot-backup/` of the boot drive, _but_ i don't know the zfs dataset layout of the original system, and i don't know what freebsd version it was running in the end. what's the best way forward from here?
-
Dianora
n-st: ugh.
-
n-st
i guess the blunt approach would be to reinstall from a boot iso (to get the partitioning, boot sector, and zfs datasets set up for me), then steamroll it over with the old filesystem contents?
-
Dianora
n-st: that happened to me some months ago, which is why I ended up spending the $ to zfs mirror
-
Dianora
n-st: yes
-
Dianora
that's what you will need to do
-
n-st
(that would need the same freebsd version though -- how do i find that when i've only got the filesystem contents, including /boot though?)
-
n-st
or i could manually set up the partitioning and zfs datasets… would be more convenient since i can do it on my "proper" computer rather than hunched over with a portable screen -- but would have more room for error when it comes to dataset optinos
-
n-st
hmm, since i'll need to know that either way: how do i find out what version it was running? (i've got the zpool imported, but i'm on a linux machine, so can't just run `freebsd-version` from the backup)
-
Dianora
n-st: man freebsd-version gives you one method in the man page
-
wikan
can you share any link to information about custom binary package repositories?
-
wikan
i wold like to make my own with my tools
-
Dianora
so you could dig into /boot/defaults/loader.conf and /boot/loader.conf
-
Dianora
wikan: poudriere
-
Dianora
safest best bet
-
Dianora
n-st:
-
Dianora
To inspect a system being repaired using a live CD:
-
Dianora
mount -rt ufs /dev/ada0p2 /mnt
-
Dianora
env ROOT=/mnt /mnt/bin/freebsd-version -ku
-
Dianora
good luck with it!
-
n-st
Dianora: `env ROOT=/mnt /mnt/bin/freebsd-version -ku`? that would need a running freebsd kernel, though…
-
Dianora
you'd be using a repair cd or usb stick no?
-
wikan
Diamora, nope, I want my own repo
-
Dianora
so you'd mount your old system copy on /mnt
-
Dianora
wikan: lots of stuff about it on the ML and it's documented but start with man pkg. You could add your local repo
-
n-st
Dianora: oh, actually that's a shell script and (mostly) functions on linux. turns out it was a 13.2-RELEASE :)
-
wikan
thanks
-
Dianora
I've never had to make my own binary repo. Unless someone else here has I'd suggest crawling the ML as well.
-
Dianora
wikan: You are welcome
-
Dianora
n-st: ;) that makes it easier
-
n-st
Dianora: i will be using a repair stick eventually, yeah, but first i needed to find out which version i should download and use
-
Dianora
n-st: good luck... and mirror that disk preferably with two different manufacturers
-
n-st
would have been a bit tedious to download one version, then inspect the dead system and find out i'd need a different one after all ':D
-
Dianora
;)
-
n-st
but that's sorted, time to grab a 13.2 boot medium then ^^
-
n-st
Dianora: i wish i could :/ that thing is built down to a budget and size, so it only has two sata ports. one used for the os ssd, one for a data hdd. most of the data is backed up offsite anyway, so it's a reasonable trade-off to trade a cheaper system for longer recovery time on failure
-
n-st
and looky what we've got now: a failure and long recovery time >.<
-
n-st
what i would do different, though: zfs send|receive for the backup, instead of the rsync. would make recovery of the os at least a bit more convenient
-
n-st
and i see that some of the data might not be backed up offsite at all right now, which needs fixed as well
-
n-st
fwiw, this is the current backup cronjob:
-
n-st
# makeshift backup because of failing SSD 2019-07-28
-
n-st
0 6 * * * root rsync -haHAX --exclude=/data/ --exclude=/dev/ --exclude=/proc/ --exclude=/tmp/ --exclude=/var/cache/ --exclude=/qua/ --delete --delete-excluded / /data/zroot-backup/
-
Dianora
n-st: fair enough
-
Dianora
yes zfs send|receive is wonderful
-
n-st
the failing SSD in 2019 at least had the decency to throw SMART errors in advance, so i replaced it in time back then. but now the replacement has failed without any warning whatsoever…
-
Dianora
n-st: that's exactly what happened to me
-
n-st
last question about the restoration: there really isn't anything special/"magic" stored somewhere, right? i.e. partition table + boot sector + default zfs options from installer + filesystem contents = the whole system, there's nothing missing from that?
-
Dianora
n-st: You *are* doing gpt + zfs root?
-
Dianora
in fact easiest for you is to install your 13.2 on that disk boot to make sure it works, then go back to install isk zap the /etc etc. etc. etc.
-
Dianora
skip the second step if you want to save time
-
n-st
Dianora: uh, not sure to be honest… whatever was the default in 11.1 (bsdinstall_log says that's what i originally installed)
-
n-st
well it says it did `gpart create -s gpt "ada1"`
-
n-st
and `zpool create […] ada1p4`
-
n-st
so i guess that's that ^^
-
Dianora
n-st: This is why all sys admins should keep a paper logbook
-
Dianora
;)
-
n-st
Dianora: what do you log there?
-
Dianora
I log the disk partition format, what is on each etc.
-
Dianora
that's a bare minimum. saves a lot of time when recovering
-
Dianora
log the commands needed to recover from a disaster etc. etc.
-
n-st
hmm, that's a pretty neat idea
-
n-st
until now that sort of information (if i even wrote it down) got lost in text files someplace or other, but i've had a logseq database for a while now, that would actually be a good place for that sort of documentation
-
cedb
what kind of stuff could trigger that? 'sh 91809 [zfs teardown inactive] 2095.72r 0.81u 8.37s 0% 4052k'
-
zwr
hmm, if I have a VM on a zvol, and the OS inside the VM uses ZFS, should I enable compression on both or just one of them, and if so, which?
-
zwr
I guess I'll disable checksumming and compression on the child and let the host handle that because VMs are slower
-
rwp
zwr, In practical terms it does not matter much if you enable compression both places or not.
-
rwp
The popular compressors like lz4 and zstd detect poor compression on already compressed data very quickly and auto-disable themselves quickly.
-
rwp
If it is compressed both places then the hosting storage will detect the already compressed data and it won't matter. Not much.
-
rwp
And then the VM will be configured just like any other. And the storage values for it will be on the compressed data. So I would tend to prefer it that way.
-
rwp
But if compression is turned off in the VM then the hosting storage will do the work instead. So don't think it really matters one way or the other.