-
markmcb
is it possible to have the loader check for a keyfile, and only if it doesn't exist ask for a passphrase for a geli encrypted root? not seeing much in the docs on this.
-
fireglow
I'm on 13.2-STABLE, and recently `uname -a` doesn't show the kernel build date anymore. Is there a way to get it without looking at filesystem timestamps?
-
rtprio
fireglow: what does it show?
-
fireglow
rtprio: right now it shows "FreeBSD localhost 13.2-STABLE FreeBSD 13.2-STABLE n255613-6322a6c9daaa TEST amd64"
-
RhodiumToad
iirc, that's a reproducible builds thing
-
RhodiumToad
WITHOUT_REPRODUCIBLE_BUILD=1 in src.conf might be what you want
-
fireglow
RhodiumToad: indeed! Impressive! Thank you!
-
RhodiumToad
markmcb: where would the loader check for a keyfile?
-
markmcb
i assume that'd have to be defined. ideally anywhere. a removable usb drive, a disk partition, etc.
-
markmcb
for example, in linux with luks, i just say "look for UUID 1234". if it exists, try to load /path/key. if that fails, passphrase is the fallback.
-
markmcb
judging by some posts i've read, i get the impression this isn't possible
-
RhodiumToad
/* XXX TODO: Support loading key files. */
-
RhodiumToad
I think that answers it
-
markmcb
indeed :)
-
rtprio
reproducible -- that's a new one to me
-
doug713705
Hello, since I made a pkg update and now zfs list shows "zroot" using 41.2GB but (same as zpool list) but ncdu or df show only 28.4GB. I really cant find where are the 12.4GB. (freebsd 13.2-p1).
-
RhodiumToad
do you have any snapshots?
-
doug713705
the pool is a single partition of 48G
-
doug713705
I deleted the remaining sanpshots
-
RhodiumToad
zfs list -o space
-
doug713705
I delete all snapshots except the most recent, which size 18G
-
doug713705
I may have misread that this one is needed for boot
-
doug713705
Can i safely delete it ?
-
RhodiumToad
are you using boot environments?
-
doug713705
I dont know, i discovered boot env today ! I deleted the other snapshots with bectl
-
RhodiumToad
(you don't need any snapshots in order to boot, but it's common when using boot environments to keep the previous one around as a snapshot in order to revert to it in the event of problems)
-
doug713705
I mean, if the default install use boot environment then I use it
-
doug713705
And I'm a bit confused about it. bectl list show 2 environement, one called "default" which I presume is actually running and another with a timestamp in its name.
-
doug713705
default was creation date is 2223-12-05 !
-
doug713705
sorry for my bad english, I tried to sort this out all day
-
doug713705
RhodiumToad: Thank you to point me out to boot environements. Reading the bectl man page wes enlightning. I deleted the remaining boot environements except the one noted "NR" and all is Ok now
-
yuripv
except for the "default" creation date being in distant future :)
-
doug713705
yes, this is very strange
-
RhodiumToad
what's a couple of hundred years between friends
-
RhodiumToad
possibly, when the install was done, the system clock was way wrong?
-
doug713705
this a virtualbox VM, everything is possible
-
uuidNuniq
how do you merge conf files in /usr/local/etc/ if any?
-
RhodiumToad
merge them with what?
-
RhodiumToad
the general principle for conf files from packages is that things like startup/shutdown scripts are part of the package and those just get updated,
-
RhodiumToad
while config files have two versions: a .sample file which belongs to the package, and the actual conf file which belongs to the user, and is created by installing the package _only if it doesn't already exist_
-
RhodiumToad
afaik (unlike /etc) there's no general assumption that package config files can be updated in any sane [semi-]automated way
-
uuidNuniq
looks like there aren't many important conf files in /usr/local/etc
-
RhodiumToad
well that depends on what packages you have installed :-)
-
uuidNuniq
so, when a pkg introduce a new conf file, the .sample is updated, the user conf file is untouched, there won't be stuff like /usr/local/etc/NAME/NAME.conf.new like most Linux distro does
-
uuidNuniq
let's say, the package sudo has a conf file in /usr/local/etc/sudoers . when sudo got upgraded AND it introduces new syntax or add/deperecates some options.
-
uuidNuniq
how does freebsd handle this by default? or the admin needs to read the changelog and do manual changes?
-
RhodiumToad
the admin needs to deal with it
-
uuidNuniq
i got it, thanks RhodiumToad
-
jean-loups
hello
-
RhodiumToad
good morning or other timezone-appropriate greeting
-
jean-loups
good morning RhodiumToad
-
debdrup
good <time of day>
-
megaTherion
Is starting a non-uefi VM (x86) still no thing in bhyve?
-
RhodiumToad
non-uefi in what sense?
-
otis
booting using "bios" perhaps? it is possible, you don't need to use UEFI
-
otis
althouhg, i'd recommend it.
-
megaTherion
I'd have a very old WinXP inst which I'd like to keep if possible.. don't need it often
-
RhodiumToad
have you tried booting it in bhyve using the CSM firmware?
-
megaTherion
RhodiumToad: loader="csm" ?
-
RhodiumToad
no
-
megaTherion
well as said, I don't know how to do it ;)
-
RhodiumToad
are you using bhyve raw or via some wrapper tool?
-
megaTherion
I use vm(8)
-
megaTherion
Churcher's bhyve tool
-
RhodiumToad
that looks a bit ... old?
-
RhodiumToad
even so, loader="uefi-csm" looks like the option you want
-
megaTherion
RhodiumToad: not sure if it's old, it just works ;)
-
megaTherion
well uefi-csm make's it start - but doesn't provide graphics_* ?
-
megaTherion
I knew there was a problem, it is just too long ago since I tried last time
-
RhodiumToad
graphics_vga="on" will be necessary, don't know if it's also sufficient
-
megaTherion
Juli 09 14:29:30: [bhyve options: -c 1 -m 1G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI_CSM.fd -H -U edcea0ad-1e52-11ee-a08b-ac1f6be8253a -u]
-
megaTherion
well graphics_vga="on" doesn't work either
-
megaTherion
but its booting, kind of
-
RhodiumToad
did it change the bhyve options at all?
-
megaTherion
no
-
RhodiumToad
do you also have graphics="yes" ?
-
megaTherion
no but thanks, that actually worked
-
RhodiumToad
graphical performance probably won't be great :-)
-
megaTherion
I dont need much, it's mostly for 1-2 IDEs
-
megaTherion
if I get RDP running thats great then :)
-
cadmio
Hello
-
cadmio
what's the definition of filesystem?
-
skered
Anyone having issues getting texlive-texmf-20230313.pkg from FreeBSD repos?
-
yuripv
Fetching texlive-texmf-20230313.pkg: 18% 216 MiB 14.3MB/s 01:31 ETA
-
skered
Lets see if it can finish.
-
yuripv
yes, Fetching texlive-texmf-20230313.pkg: 100% 1 GiB 13.7MB/s 01:31 :)
-
kevans
I had to disable fetch_timeout to get my pkgbase install to work
-
kevans
with pkg 1.20
-
kevans
apparently libcurl timeout is from request start and doesn't care if the transfer's still making progress, so anything longer than 30 seconds is borked here by default
-
skered
Ok that must be my issue too.
-
skered
Getting a size mismatch after 30 seconds
-
yuripv
why libcurl though?
-
skered
1.20 switched.
-
yuripv
i see, still on 1.19.2 (and pkg install pkg says i have the latest)
-
debdrup
a filesystem is a system of files, obviously
-
markmcb
is there anything like pstree, but for jails? i.e., a hierarchy view of which jail initiated which processes?
-
yuripv
ps -d -J <jid>?
-
markmcb
yuripv, thanks! didn't know about the -J option, this is perfect
-
antranigv
so now we have libcurl in base?
-
antranigv
markmcb a lot of commands have the -j/-J flag, it's just perfect.
-
uuidNuniq
antranigv: it's a whole system
-
uuidNuniq
not a kernel + psmisc
-
antranigv
uuidNuniq I know what FreeBSD is :) I was just wondering if we added libcurl into base or is pkg 1.20 using libcurl built into it
-
uuidNuniq
i want curl in the base
-
V_PauAmma_V
antranigv, ldd /usr/local/sbin/pkg doesn't show it using libcurl. Or libfetch.
-
antranigv
V_PauAmma_V 1.20?
-
V_PauAmma_V
Ah, not yet. 1.19.2.
-
V_PauAmma_V
Should I be wary of that?
-
V_PauAmma_V
Of that version, I mean?
-
antranigv
V_PauAmma_V I think we should do some good testing, since it's pretty massive change. I need to check if libfetch's env vars work properly as well. here's the file that does most of libcurl stuff in pkg
github.com/freebsd/pkg/blob/master/libpkg/fetch_libcurl.c
-
VimDiesel
Title: pkg/libpkg/fetch_libcurl.c at master · freebsd/pkg · GitHub
-
» antranigv Be right back.
-
V_PauAmma_V
-
VimDiesel
Title: pkg/libpkg/fetch_libcurl.c at caaafa6d6130a39f27fb48070598a394ba2f607d · freebsd/pkg · GitHub
-
CCFL_Man
wc -w should give me a file count if a pipe an ls to it, right?
-
V_PauAmma_V
Nope. Filenames can contain spaces and other nonword characters. You may want wc -l instead. (Can you create filenames with \n in them?)
-
thumbs
no, IIRC
-
paulf
I would say / and nul are the only two that you can't use
-
V_PauAmma_V
Or use one of the "display special characters as \... escapes" ls options.
-
CCFL_Man
so use ls -l then
-
markmcb
is there a way to list network interfaces that have been consumed by a jail, without querying the jail itself? i.e., ifconfig will show them absent, but is there a way to show the absent items?
-
uuidNuniq
CCFL_Man: ls is not suitable for parsing
-
uuidNuniq
use find -print0
-
CCFL_Man
ah
-
uuidNuniq
ohh , but wc does not have --files0-from=- option
-
markmcb
for example, ifconfig -l, outputs: ixl0 ixl1 igb0 igb1 lo0 iavf7 iavf8 iavf9. i would like to see iavf0 through iavf6, and ideally which jail has them.
-
uuidNuniq
CCFL_Man: oh you want to show the words in file? then, probably using this: ls -l | while read file; do wc -w "$file" ; done
-
uuidNuniq
sorry, not ls -l , but ls -1. but ls will list dirs as well.
-
uuidNuniq
so not a good idea, probably `find . -type f -maxdepth 1 -mindepth 1 | while read ... `
-
CCFL_Man
uuidNuniq: no, just an actual file count in a directory. there are no other directories inside, just files
-
uuidNuniq
CCFL_Man: you want count how many files in a directory?
-
uuidNuniq
ls -1A | wc -l
-
CCFL_Man
yes, just a count
-
CCFL_Man
perfect!!
-
CCFL_Man
thank you guys!
-
yuripv
there's also a zfs thing that "size of directory" shows the number of files, so dirty hack: stat -f %z dir/
-
CCFL_Man
thanks!
-
yuripv
(don't use it, saying just for fun :D)
-
last1
does anyone have a link to a guide/tutorial for installing FreeBSD using zfs but not on the entire disk ?
-
V_PauAmma_V
Do you mean "while leaving unused space other than the ZFS partition and the swap partition?
-
last1
I think I need a boot partition, zfs and swap yes
-
last1
and leave the rest unused
-
V_PauAmma_V
If you don't get an answer meanwhile, ping me in 2-3 hours? I need to install ZFS VMs (and can therefore refresh my memory of the details) after a nap.
-
last1
alright, thanks
-
skered
kevans: How do you get that timeout value down to a poudriere pkg? FETCH_TIMEOUT.
-
skered
kevans: poudriere jail ... start it jexec into add /usr/local/etc/pkg.conf?
-
meena
skered: you don't need to start / jexec for that. just copy the file in the right location
-
skered
I was thinking a start/jexec might be needed if it was bind mounting something that was already in the mount /usr/local/poudriere/jails/<jail>/usr/local
-
skered
Because it's empty right now
-
last1
I'm following a guide off the FreeBSD wiki and I've booted a FreeBSD installation USB
-
last1
I've gotten the partition installed but when I'm creating the zroot it says that it can't mount it because my install media is read-only
-
last1
I've tried remounting as rw with mount -o rw /
-
last1
but it won't let me
-
mason
last1: you want to mount onto /mnt probably
-
last1
I can't do it there either
-
mason
also note that in the installer media, everything's read-only by default
-
last1
I've tried zpool create -o altroot=/mnt
-
last1
cannot mount /mnt/zroot failed to create mountpoint, the fs is read-only
-
mason
Maybe zpool create -R /mnt
-
mason
Oh, that should be about the same. -R also turns off the cachefile, so maybe that's the issue.
-
mason
-R root Equivalent to -o cachefile=none -o altroot=root
-
mason
Try with -R or by adding the cachefile option, and maybe that'll work out better.
-
last1
nope, same error
-
mason
Strange.
-
last1
-
VimDiesel
Title: RootOnZFS/GPTZFSBoot/Mirror - FreeBSD Wiki
-
mason
Hm, that doesn't show that option. Wonder how that's supposed to work.
-
mason
-
VimDiesel
Title: MasonLoringBliss/ZFSandGELIbyHAND - FreeBSD Wiki
-
last1
they just show this: zpool create zroot mirror /dev/gpt/disk0 /dev/gpt/disk1
-
last1
which tries to create zroot on /
-
mason
Yeah.
-
mason
Weird.
-
last1
which is a nono
-
mason
Something else I do if I want to ssh in to do the install:
wiki.freebsd.org/MasonLoringBliss/InstallEnvironment
-
VimDiesel
Title: MasonLoringBliss/InstallEnvironment - FreeBSD Wiki
-
mason
The normal installer itself isn't bad, although it doesn't do a complete job if you're on a UEFI system. I'm maybe going to fix that if I get a thumbs-up from one of a collection of folks.
-
mason
s/one of/any &/
-
last1
normal installer is great, but I want to install only on part of the disk
-
last1
I fixed it by doing mount -uw /
-
last1
and then zfs mount zroot
-
last1
not ideal but it worked
-
mason
That doesn't seem quite right, that method.
-
mason
You'll have a hard time installing if 1) your pool is not mounted and accessible, or 2) it is but it's masking your actually root
-
mason
There could be something I'm entirely missing. If so, you can modify what I do in my install guide to accomodate a partial-disk install. I've done so to get FreeBSD to be one of like five OSes I installed on my (mirrored SSD) laptop once, to see if I could do it cleanly.
-
last1
I have nothing else to try :|
-
mason
Well.
-
last1
let me try to complete the install this way
-
last1
see if it works
-
mason
Sure.
-
last1
I'm doing this because my drives are 4Tb SSD and I only want to use 120Gb for the OS
-
last1
and the rest for the zfs special device
-
mason
Sure, that's fine.
-
egl
seems like an odd layout, but I just showed up
-
last1
why is it an odd layout ?
-
egl
when you say "I want to use 120Gb for the OS," what portions of the OS file system are you intending to place on that partition? Just /, /etc, /tmp, /usr, etc? What are you intending to use the ZFS pool for?
-
last1
I have 200Tb of attached HDDs that will be the actual storage
-
last1
the SSDs are just for boot/metadata
-
last1
I have 200Tb of attached HDDs that will be the actual storage
-
last1
the SSDs are just for boot/metadata
-
egl
So the 200Tb's are going to be zpool(s)?
-
last1
yes
-
egl
Did you want your home folders and /var/lib/ in zpools?
-
last1
no, those go with the os on zroot
-
CCFL_Man
last1: if i install an hba and disk shelf, as long as the hba is in IT mode, the drives installed in the disk shelf should simply appear as devices?
-
egl
I guess that is what makes it a bit of an odd layout for me.
-
CCFL_Man
i can mount them normally?
-
egl
Are the zpools for resilience? RAID? And snapshots?
-
egl
Most of my zfs setups minimize how much of the OS FS I place on a static drive. I mean, rigtnow im running root on zfs across two SSD's, but I have a few where root is next to the EFS(boot) vol, and the rest of the disk(s) are pooled to handle home, /var/lib/(docker, etc).
-
last1
but that's on an external shelf where I keep app data
-
last1
I don't want to put together os/user data with app data
-
egl
Aha.
-
last1
CGFL: correct
-
last1
mason: the setup worked fine with mount -uw /
-
mason
last1: I bet it was the cache file handling. I bet once you made root read-write it was able to write out the cachefile, or at least fail differently.
-
last1
could be
-
last1
one last question
-
last1
is there a way to see a list of all pools, even those that aren't imported yet
-
last1
zpool list only shows imported ones
-
rtprio
no; `zpool import ` will show not imported ones
-
rtprio
can someone explain why zroot/var has the property mounted=no ?
-
DrKK`
rtprio:
-
DrKK`
assuming you haven't done anything strange in the interim since the default install,
-
DrKK`
hang on, there are good explanation of this, and it doesn't make sense for me to just give a hackneyed explanation
-
DrKK`
here:
-
DrKK`
-
VimDiesel
Title: ZFS - Why are /usr and /var not in a boot environment? | The FreeBSD Forums
-
rtprio
DrKK`: right, default installer
-
rtprio
thanks, that's helpful. basically "for bectl" and you can mount them if you want but then you're way off the rails when bectl tries to make sense of it
-
last1
rtprio: thank you , that worked