-
BillyJoeBob
So...I'm trying to run some Linux applications and I have a Ubuntu system setup in Linuxulator but I'm still having issues where I get this error:
-
BillyJoeBob
ELF interpreter /lib64/ld-linux-x86-64.so.2 not found, error 2
-
BillyJoeBob
I ran "brandelf -t Linux *linux-bin*" but I still get the same error. I have this in my Linux path on sysctl: compat.linux.emul_path: /compat/ubuntu so I have no clue why I have to get into my chroot on my Linuxulator to even execute Linux binaries.
-
» _xor gets annoyed
-
_xor
Stupid PoE switch I bought a couple of months ago looks like it just went to the big LAN in the sky
-
RhodiumToad
BillyJoeBob: and presumably /compat/ubuntu/lib64/ld-linux-x86-64.so.2 exists?
-
BillyJoeBob
It does. ls -lah shows root:wheel 42B /compat/ubuntu/lib64/ld-linux-x86-64.so.2 -> /lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
-
BillyJoeBob
And I can run everything just fine if I'm chrooted in the Linuxulator.
-
CCFL_Man
/usr/local/etc/rc.d/ncidd: Permission denied.
-
CCFL_Man
i'm runnin g this as root. how can one investigate this?
-
RhodiumToad
you're not supposed to run rc.d scripts directly
-
CCFL_Man
oh, that's right
-
CCFL_Man
how can i add it as a service?
-
RhodiumToad
that said, are the permissions on it correct?
-
RhodiumToad
just the presence of the file makes it a service
-
CCFL_Man
i'm not sure. this is part of the ncid package
-
RhodiumToad
ls -l /usr/local/etc/rc.d/ncidd
-
CCFL_Man
-rw-r--r-- 1 root wheel
-
rtprio
RhodiumToad: maybe, but they (nearly always) work when run directly
-
CCFL_Man
service ncidd start does not start it, but it looks like it's not executable
-
rtprio
CCFL_Man: did you set ncidd_enable=yes in rc.conf or 'service ncidd enable' ?
-
CCFL_Man
oh
-
CCFL_Man
now it starts
-
CCFL_Man
well, /usr/local/etc/rc.d/ncidd: WARNING: failed to start ncidd
-
CCFL_Man
how can i see why it did not start?
-
rtprio
does ncidd have a log?
-
CCFL_Man
it seems to exit without writing any logs
-
rtprio
have you properly set a config file?
-
CCFL_Man
i think that might be it
-
CCFL_Man
i'll have to refer to ncid support. the program just exist and prints nothing
-
rwp
rc.d scripts should be executable. Look at the other scripts for example: ls -l /etc/rc.d/
-
RhodiumToad
does it have any debug option?
-
CCFL_Man
rwp: it might be the package
-
CCFL_Man
RhodiumToad: good thinking. it's the config file
-
rwp
Just for the sake of discussion... What is ncidd?
-
CCFL_Man
rwp: it's a network caller id server that passed caller id information from a modem over a network socket to clients
-
rtprio
yeah, i see it here in comms/ncid... but what uses it?
-
rtprio
will ... xbmc/kodi use it and show who's calling?
-
rwp
How was it installed? pkg binary package or source port compile install?
-
rwp
It bothers me that /usr/local/etc/rc.d/ncidd after install was mode -rw-r--r-- which implies to me that something is broken from the start.
-
rtprio
rwp: the port doesn't have a maintainer, maybe you should step up and fix that :P
-
CCFL_Man
rtprio: i primarily wanted to use to to log caller id data to a file
-
CCFL_Man
yes, pkg install ncid
-
rwp
For one I had never heard of this before a few minutes ago. For another I had previously written my own caller id thingie using perl-expect and voiced with festival. And finally, who has a house phone that would make use of this anymore? I mean besides me. But even I have the ring bell taped off. It's just a honeypot now.
-
CCFL_Man
ok, it required /dev/ttyU1 as the device, but it won't print caller id information
-
CCFL_Man
i have a house phone. i just had one installed, actually
-
rwp
My house phone is now VOIP through my ISP but I did keep the number. Version ncid-1.11_1 from packages?
-
CCFL_Man
yep
-
rwp
I am playing with jails tonight. I'm going to eat something first but then I will set up a jail and install this and poke at it with a stick.
-
CCFL_Man
do you have a pstn modem you can use with your provider voip?
-
CCFL_Man
the modem i have does not return caller id
-
CCFL_Man
i don't know if it's the wrong init string or not
-
CCFL_Man
RhodiumToad: thank you again for the help!
-
CCFL_Man
i should look at the windows driver ini files for the init strings
-
CCFL_Man
the product page for this modem has someone asking why the default init string does not activate caller id
-
rtprio
i haven't had a pstn modem in a long time
-
CCFL_Man
HKR, EnableCallerID,1,,"at+vcid=1<cr>"
-
CCFL_Man
that's in the winders driver
-
CCFL_Man
yep, that's in all the winders drivers
-
rwp
I installed it. Poked at it with a stick. And I think it definitely needs some work. For one it comes with 16 startup scripts!
-
rwp
Obviously not all of them are needed. None of them are installed executable.
-
rwp
The /usr/local/share/doc/ncid/INSTALL-FreeBSD.md and /usr/local/share/doc/ncid/README-FreeBSD files have some information about installing it manually.
-
rwp
Seems like the port does not quite finish all of the needed bits.
-
CCFL_Man
rwp: there is no maintainer
-
rwp
I think you are doing more work on it now than has been done in a while. Just say'in...
-
CCFL_Man
so for this modem, i might have to set the country code first
-
CCFL_Man
another user used a different baud rate to get caller id working
-
rwp
Can you talk to the modem yourself? Does it respond normally?
-
rwp
For my modem I would get its attention with sleep 1; +++; sleep 1; then send an ATZ and wait for the OK, then send it AT#CID=1\r to enable caller id.
-
rwp
That's all historical. I don't have a caller id modem on my phone line since it is now VOIP.
-
rwp
I don't know if the modem would work or not. Probably the modem has died in the years since it was last powered up.
-
CCFL_Man
i can talk to the modem's tty and send it commands manually
-
CCFL_Man
it does respond and returns ok when i send it the caller id string
-
rwp
Call your modem while talking to it. It should send you the caller id string.
-
CCFL_Man
it doesn't return anything
-
CCFL_Man
well, no caller ID, but it sees the ring
-
CCFL_Man
so it sees the ring, but no caller id information
-
CCFL_Man
but right, it creates lots of startup scripts that are not executable
-
CCFL_Man
broken package
-
rwp
So two problems. The modem is not (as of yet) emitting the caller id information. The package is not working.
-
rwp
But nothing can work unless the modem will produce the data so that's the place to start.
-
CCFL_Man
ncidd -Dv3 -C /usr/local/etc/ncid/ncidd.conf allows you to start in debug mode. you can see it exchanging with the modem and also print status output
-
CCFL_Man
the application runs fine, but this specific model is not emitting caller id data
-
CCFL_Man
i have ncid running on my tivo using the tivo
-
CCFL_Man
i have ncid running on my tivo using the tivo's dial up modem and it works quite well
-
CCFL_Man
Modem Identifier: CX93001-EIS_V0.2013-V92
-
rwp
You have a TiVo with a dial-up modem? That's pretty cool. I don't think either of my old beloved TiVo models had a phone modem on them.
-
CCFL_Man
the Tivo HD does. i hacked it and installed ncid on it and the built in dial up modem works great with caller id
-
rwp
CCFL_Man, Respect!
-
V-T60
why doesn't tzsetup work?
-
V-T60
Select local or UTC (Greenwhich Mean Time) clock
-
V-T60
I tried both Yes and No
-
V-T60
Does the abbreviation `EEST` look reasonable? I press Yes here!
-
V-T60
# date
-
V-T60
Mon Oct 16 05:40:07 EEST 2023
-
V-T60
but why on planet it is not 08:40:07? how it would be in EEST here
-
bapt
m
-
V-T60
bapt: ?
-
kenrap
-
VimDiesel
Title: Urban Dictionary: m
-
rwp
V-T60, The timezone names are ambiguous in some cases. It is better to always use an unambiguous format such as "date -R" provides.
-
rwp
V-T60, Also my previous question. Is "date -uR" correct for UTC time?
-
phryk
release candidates are based off the releng branch, correct? i.e. i can update to -RC1 via freebsd-update?
-
phryk
rwp: thanks for the quip about dpms tho. added 'xset -dpms' to my .xinitrc, that should fix things for now. gonna investigate and see about where to report this. far as i can tell asus probably is the culprit here, but there still is the memory leak in the amdgpu driver, so I'm not yet ruling out that having something to do with it.
-
phryk
going on with a completely different topic: sector sizes / alignment – can somebody give me a summary? i vaguely remember that 4k was recommended under… some conditions?
-
phryk
but i don't recall what the specifics where, i think either ssds or zfs, but it's been a long time.
-
phryk
background is i currently have my system on mechanical drives, but recently added 2 nvme drives to my desktop. i've noticed that my performance on these mechanical drives is quite awful (using defaults, so i assume an alignment of 512) and am wondering what to look out for to get the most performance out of both platter disks and ssds.
-
phryk
other pertinent info: running on ufs, planning to reinstall on the nvme drives with gmirror for full system redundancy.
-
babz
yup, beta & rc are based on releng branches, and you can download them using freebsd-update
-
phryk
babz: great. then i'm gonna update to RC1 as soon as i moved to the nvme drives.
-
phryk
mhh, testing with unencrypted ufs, it seems default, 512 and 4k alignments don't make much if any difference on the nvme drives…
-
phryk
tho the performance is only about 20% of what's advertised (~530MB/s vs 2.6GB/s) – is that expected?
-
babz
is the disk trimmed ?
-
bradd
do you have enough pcie lanes to support 2 nvme drives?
-
phryk
babz: i don't even know what that means. bradd i think so, i mean it has to m.2 slots. second one is slower from what i've read, but haven't tested that one yet.
-
babz
pre-erase the blocks
-
phryk
come to think of it, maybe /dev/urandom might've been the bottleneck in my test… i don't think it's often used to pull 10 gigabytes from?^^
-
phryk
babz: what does that mean? dd if=/dev/zero of=/dev/nda0?
-
babz
erasing a block is much lower than writing a page (what manufacturer advertises as "write thoughtput")
-
babz
s/lower/slower/
-
phryk
ah, so i do that dd of /dev/zero and see if the speed there aligns more with what's advertised?
-
phryk
also, i read that nvme has some weird hybrid sata mode. when I'm using nda, does that already imply i'm *not* using the sata mode?
-
phryk
mhh, yeah, seems like urandom was actually the bottleneck. not used to that.^^
-
phryk
bradd: thanks for pointing out trim, not sure if it matters for performance but sounds like it's important for ssd longevity. :)
-
phryk
tho i'm not sure if/how this will translate to things once geli is in play…
-
babz
last time I checked, it didn't pass throughout the geli layer
-
phryk
so using geli will by default result in more wear for the ssd?
-
babz
I don't think it will impact wear that much
-
babz
(Unless the ssd's firmware is plain stupid)
-
phryk
good^^
-
babz
But you'll have faster writes with trim
-
phryk
anyhow, creating my 10G file in /tmp first and then cp'ing that to the test partitions has it finish in ~2.4s, independent of alignment used. that would be way above the advertised speed…
-
phryk
mhh yeah, with sync after it, it's closer to 5s, tho i had to measure that externally because i can't figure out time(1) ^^
-
phryk
will geli authentication make use of hardware acceleration if it is available? is hw accel for sha even a thing freebsd supports?
-
vxwarlock
phryk > aesni module enable
-
vxwarlock
if you support cpu hw support aesni is working ...
-
vxwarlock
IRRC
-
phryk
vxwarlock: but… isn't that specific to… actually AESNI? not the SSE/AVX acceleration for SHA?
-
vxwarlock
-
VimDiesel
Title: aesni
-
phryk
ah, nice.
-
phryk
and this time, i'm putting geli on the mirrors instead of creating mirrors of multiple .eli devices. hoping this will be more performant. :)
-
phryk
I am a bit confused about the -j, -J and -U flags for newfs. They all kind of sound like they do the same thing, especially -j and -U…
-
dh
soft updates and <whatever> journaling are different things
-
dh
I personally have had only bad experience with journaling
-
phryk
the man page literally calls it "soft updates journaling" tho…
-
dh
Yeah, but the important part is the "journaling" part
-
phryk
so I should only use -U and that already gives me the faster fsck?
-
dh
And since it's built on soft updates mechanism it's called "soft updates journaning"
-
phryk
mhh, no that seems wrong…
-
dh
Not exacly, it just enables fsck to run in background, it still takes it's time though
-
phryk
i *think* i understand now. fsck only works faster with journaling, and -j and -J are two different implementations for journaling, with -j building on top of (and possibly implying) -U?
-
phryk
ah, okay background fsck is another nice thing.
-
phryk
so -U alone will already have me boot faster because of background fsck in case of a previous crash, but with -j *xor* -J the fsck (whether in foreground or background) will finish faster, too.
-
phryk
so I *definitely* want -U, possibly -j but should probably ignore -J, does that sound about right?
-
phryk
is it expected that using HMAC/SHA-256 authentication with geli literally halves the capacity?
-
phryk
nvm, it's a sector size thing.
-
phryk
(i.e. the fix is supplying "-s 4096" to geli init)
-
yds
OpenZFS Developer Summit 2023 is starting now, broadcasting live at:
youtu.be/bvTVPwofvLg
-
VimDiesel
Title: OpenZFS Developer Summit 2023 - YouTube
-
kraptv
fairly obscure question, but does FreeBSD have support for NVMe Reservations? (I know that SCSI-3 Persistent Reservations support exists for iSCSI as an example here, but wanted to know about the 'updated' version that goes over NVMe)
-
kraptv
use case being SAN-style storage failover for certain high availability workloads like databases
-
kraptv
oh gosh, how silly, It's been implemented there with no issue
-
kraptv
(since 12.1)
-
phryk
I'm trying out gelis -g ("geliboot") feature, but am having trouble getting it to boot.
-
phryk
I have a gmirror that's encrypted passphrase-only (i.e. no keyfile), has the geliboot flag set and contains /boot. I have an efi partition, copied loader.efi to EFI/BOOT/BOOTX64.EFI on that and I registered that loader with the uefi or whatever it is `efibootmgr -a -c -l <path/to/BOOTX64.EFI>` does. the efi loader itself starts fine, but gives an error that it can't find any bootable partitions.
-
kevans
phyber: need -b as well, iirc
-
phryk
kevans: i'm somewhat sure i already tried that 15 minutes ago, but no harm in trying that again to be extra sure, i guess.^^
-
RhodiumToad
is the encryption inside or outside the mirror?
-
RhodiumToad
i.e. is it a mirror of encrypted providers, or did you create the mirror first and then use that as provider for geli?
-
RhodiumToad
(because that second one won't work)
-
phryk
RhodiumToad: inside. right, that's also a difference to how my homeserver does this.
-
phryk
damn
-
phryk
why not?
-
RhodiumToad
(it will work when the kernel's up, but not for booting)
-
phryk
i thought i was halving computation for the encryption here :<
-
RhodiumToad
it won't work because loader doesn't do mirrors and so it won't find the geli metadata in the expected place
-
RhodiumToad
it looks at the last sector of the partition for geli metadata, but the mirror metadata will be there, with the geli metadata before it
-
RhodiumToad
(yes, encrypting the unmirrored partitions doubles the crypto work needed for writes (but not reads), but if the mirror is just /boot then you do not care about that)
-
phryk
yeah, just wanted to say, if it works as soon as the kernel is loaded, then my root fs can remain geli'd inside the mirror. :)
-
phryk
btw, does efibootmgr do some black magic to store settings from loader.conf somewhere? because it seems to honor the beastie_disabled i only have on the encrypted mirror…
-
RhodiumToad
don't think so... but if it can't find /boot it can't load any of the fancy scripts
-
phryk
ah, that makes sense.
-
RhodiumToad
all of the menu and fancy stuff is not in the loader binary itself but in lua scripts
-
phryk
ah right, i did see an error that it couldn't read some lua file from /boot
-
phryk
RhodiumToad: do i interpret it correctly, that what you said implies that single mirror providers are still normally mountable filesystems without gmirror running?
-
phryk
err, "consumers" rather, i think.
-
RhodiumToad
providers
-
RhodiumToad
they kind of are, but there are risks
-
phryk
so this even working at all on my server is already lucky? good to know. :'D
-
RhodiumToad
in the normal case if you need to handle the mirrors independently you should make gmirror instances with one provider
-
RhodiumToad
but for purposes of booting, the individual provider can be read as if it were a plain filesystem
-
phryk
are the dangers only providers going async or something else?
-
RhodiumToad
(writing to it is more of an issue, since that makes it inconsistent, which is why mirroring the ESP itself is tricky since the firmware or other OSes can write to that)
-
RhodiumToad
there's no real danger as long as you're just reading it
-
RhodiumToad
(putting the metadata at the end was explicitly done to allow this sort of thing)
-
phryk
mhh, sounds like fixing this wouldn't be too involved. might open an issue for that.
-
RhodiumToad
fixing what exactly?
-
phryk
geli-inside-mirror boot
-
RhodiumToad
eh
-
RhodiumToad
how?
-
phryk
i'm not sure i follow. how what?^^
-
kevans
you need actual mirror support in loader since we do actually try to write in some parts that aren't critical until you need them, not as simple as just understanding there's mirror metadata to blow past
-
phryk
ah, alright. i thought you could just bastardize whatever code gmirror has to recognize its metadata and condense it for loader.
-
kevans
you probably could if you kill nextboot in that configuration, but we only recently were able to declare support for nextboot pretty much anywhere and it'd be nice to not break that already
-
kevans
s/any/every/
-
monaco
ahh the lovely freebsd folks :)
-
RhodiumToad
hm, nextboot is hoping it can write to /boot/nextboot.conf ?
-
phryk
ah, the uefi setting for which entry is booted the next time the system starts. already thought uefi was already being deprecated.
-
RhodiumToad
(or some other configured file)
-
kevans
that one for ufs, the padded area of the pool for zfs
-
kevans
padding
-
kevans
i don't recall the technical name for it; iirc it was called pad1 in stand/libsa/zfs
-
phryk
okay, got my boot mirror redone, retrying boot now. :)
-
phryk
mhhh, now it asks for the passphrase, but still says it can't find a boot partition.
-
phryk
"cp -a /boot /my/mirror/mount" should be sufficient to prepare /boot on the new disk, shouldn't it?
-
phryk
grmpf. i'm not finding anything wrong with the way i set things up, but loader vehemently refuses to recognize the boot partition…
-
phryk
i even tried mounting one of the bare .eli providers for the boot mirror as plain ufs and that works without a problem.
-
phryk
is anything besides /boot required on a geliboot partition?
-
phryk
paste.xinu.at/igMX """screenshot""" of the error
-
rtprio
ls / or ls /boot show anything?
-
phryk
didn't try. i just did a plain "ls" and that showed the contents of the efi partition.
-
RhodiumToad
ls disk0p2: perhaps?
-
phryk
giving up for today, just gonna do this unencrypted and look into it next weekend or whatever.
-
phryk
henlo from ssd. i guess i at least know that the problem is specific to gelis -g feature.
-
phryk
also a nice thing i noticed: if you geli a mirror instead of creating a mirrof of multiple .eli devices, it only asks for the passphrase for the mirror/foo device, not all the constituent .elis. :)
-
phryk
now to finally get that rc1 going…
-
CCFL_Man
rwp: always be sure that your phone line even has caller id enabled, as well
-
CCFL_Man
my line does not have caller id. i tried my ATA and caller id comes up with no issues
-
CCFL_Man
the phone company charges $13.95 for caller ID service is you have a low use line
-
CCFL_Man
but nccid works pretty well
-
CCFL_Man
and so does the modem
-
rtprio
i should reallly set up up a test vm or two with root encryption
-
» phryk goes dark kermit and whispers into rtprio's ear: set up mirroring, you won't need backups anymore.
-
phryk
really, it's amazing. i've done open-heart surgery of degrading mirrors and just setting up the whole OS again, switch over, kill the old mirror, add the old device to the new mirror and it never failed me.
-
phryk
gmirror is a superpower.
-
» RhodiumToad has been doing that kind of thing for years
-
RhodiumToad
these days, though, zfs is encroaching on that space
-
phryk
heh, i first did that with zfs and only recently migrated away from it.
-
phryk
case in point, my online server still is zfs. only migrated my homeserver yet.
-
phryk
somehow, i always had problems with zfs… performance that was mysteriously degraded to complete shit, impossible to triage (even after days with help from people here). i never quite got rid of weird problems with automatic mounting either and it was just an almost universally miserable experience for me. tho i have to say i never lost data with it. tho i did come close once – but hey, what do
-
phryk
you expect when you just rip out running drives? ¯\_(ツ)_/¯
-
phryk
people always going "fragmentation is not an issue" while my pools had like 30% fragmentation and performance was degraded to like 800KB/s. :F
-
phryk
and no, it wasn't dedup. i mean, it was once, but i learned from that and gave it a huge berth afterwards. :P