-
jbk
rmustacc: i don't suppose you thought any about the topo map stuff? basically an internal NVMe slot w/ a label, and the right 'place' (probably not the right term) to enumerate it
-
rmustacc
I don't have an answer yet, but I need to do that soon and should have a few better ideas.
-
jbk
ok no rush..
-
rmustacc
But I have a board with an internal M.2 slot I have to do that for so hopefully I'll have not just an example but useful topo stuff as well there.
-
jbk
that always helps
-
gitomat
[illumos-gate] 15304 assert() could provide hints to compilers -- Andy Fiddaman <illumos⊙fn>
-
copec
-
toasterson
No, But the Arm tools are intended to also cover Risc-v
-
toasterson
So once we have the loader changes to ARM Risc-V only requires the Headers to be ported and somebody to verify the specs with the headers
-
toasterson
And ACPI/UEFI and other bringups
-
andyf
Does anyone know why SMF services that disable themselves from the start method often start a "sleep 5" in the background before exiting?
-
andyf
We have 7 of them in gate that do that, but they seem to work without, although it could be to avoid a race
-
andyf
-
andyf
Solaris has $SMF_EXIT_TEMP_DISABLE of course...
-
toasterson
Race avoidance might be the reason
-
toasterson
had to code sleeps into non shell interactions with SMF a lot
-
toasterson
something about the design needs it to not have SMF try restarting it endless
-
toasterson
But I never figured out why
-
andyf
bnsmb.de/solaris/My_Little_SMF_FAQ.html says it was discussed on an opensolaris list at one time, and that it's fine, but of course the link to the discussion is dead.
-
toasterson
Yep svcadm is somehow a bit async
-
rmustacc
But svcadm enable/disable have an explicit sync flag.
-
jlevon
andyf: I forget the details but yes.
-
toasterson
rmustacc: I haven't had any luck but that might be me
-
andyf
If I try it synchronously, I get a good error
-
andyf
# svcadm enable -s ipcc
-
andyf
svcadm: Instance "svc:/system/ipcc:default" has been disabled by another entity.
-
rmustacc
That's from within a method context?
-
rmustacc
toasterson: Trouble with it from within a method context or outside of it?
-
andyf
the start method is running `svcadm disable $SMF_FMRI` - my attempt to enable it from the shell has the -s flag. Without that flag I just get the prompt back (but the service is properly disabled)
-
jbk
andyf: at least there's like information there -- i spent a good chunk yesterday afternoon figuring out why a service was (essentially) bricking a system with 'Hardware is invalid' error :)
-
andyf
I just don't like magic like 'sleep 5 &'
-
toasterson
From outside. But calling svccfg to fast after svcadm.
-
toasterson
svcadm does not wait for the transition to complete
-
rmustacc
toasterson: OK, then we need to file bugs and get it fixed.
-
rmustacc
I have encountered bugs with -s there and we've tried to fix them. If something like svcadm -s isn't working it's important folks report it and we try to fix it.
-
toasterson
rmustacc: Oh, OK will do was not aware it was a bug
-
toasterson
it was not with -s
-
rmustacc
I mean, if you use svcadm enable -s and then svccfg fails, not sure how that can't be a bug.
-
rmustacc
Oh.
-
rmustacc
Well, try -s then.
-
rmustacc
It's exactly for that purpose.
-
toasterson
Now that I know of it I will :)
-
toasterson
I didn't find it in the manpages for some reason. Let me check if it's there
-
rmustacc
I see it there.
-
toasterson
It's there. I'll have to check my script then.
-
toasterson
It's been a while since I made the cleanup job for the buildserver
-
rmustacc
all good.
-
toasterson
-s worked. Must have overlooked it. Now that script is a bit faster thanks :)
-
andyf
fenix 6245225
-
fenix
OpenSolaris issue 6245225: RFE: SMF_EXIT_DISABLE and SMF_EXIT_DISABLE_TEMPORARY (Accepted)
-
fenix
-
andyf
That bug has some detail on the need for the sleep
-
rmustacc
Thanks, andyf.
-
jbk
ahh nice...
-
jbk
that reminds me too.. I have a patch somewhere that might be useful with the console-login service
-
jbk
the idea is that if the console is one of the serial devices, it self-disables that instance
-
jbk
but it needs the ioctl that toomas added there to work
-
jbk
so things mostly figure itself out
-
andyf
issue 15320 (fenix)
-
fenix
FEATURE 15320: Add support for SMF_EXIT_TEMP_DISABLE (In Progress)
-
fenix
-
jclulow
that would be neat
-
andyf
I'm looking at a weird problem with one of hadfl's servers. It's started to fail to vfs_mountroot with NOTICE: zfs_parse_bootfs: error 5
-
andyf
but the loader can see the filesystem and pool fine, and the pool can be imported if you boot from CD to the installer shell
-
andyf
I don't think anything has changed in that area though.
-
andyf
The only slightly unusual thing is that the rpool is a two disk stripe - I don't think that's very common
-
andyf
(it's just a test server)
-
andyf
spa_load(rpool, config untrusted): FAILED: couldn't get 'config' value in MOS directory [error=5]
-
andyf
I mean, it could be hardware failure, but the pool's importable and the first few MB of each disk is readable without errors
-
richlowe
That is the basic problem I hit during bringup, whereby if we pass a bootdev via the loader zfs trusts it _regardless_ of any sense of reality, then fails.
-
richlowe
v. if we pass guids where it will fall back into Josh's code and search
-
andyf
Oh, interesting, so "Cannot mount root on rpool/56407 fstype zfs"
-
andyf
that ID may not exist?
-
richlowe
no that's a good one (I think), the bad one is the disk path
-
richlowe
let me look
-
andyf
I did do things like forcing a full scan
-
andyf
and checking the retire store, etc.
-
richlowe
bootfs, bootpool, bootvdev are good. bootpath is bad.
-
richlowe
if you set bootpath zfs will trust it and never fall back to a search
-
richlowe
I'm not sure it's the same problem, but where you're failing is where I would fail
-
richlowe
because it would try to read the config off the bootpath, and then go down a blind alley
-
andyf
I'll take a look tomorrow (the server is turned off for the night)
-
andyf
but thanks for the pointer
-
jclulow
andyf: if it is a stripe, it is not a single vdev pool so the /devices scan won't do anything for you
-
richlowe
oof
-
jclulow
(it requires enhancement)
-
jclulow
(sorry!)
-
andyf
well it worked in as much as it built the same devid cache as before
-
andyf
I didn't think it was the problem, but I was poking all of the buttons
-
jclulow
richlowe: I believe with this, your issue during bringup goes away right?
illumos.org/issues/15122
-
fenix
→
BUG 15122: vdev_disk_preroot_fini can race against the child vdev open taskq (Closed) |
code.illumos.org/c/illumos-gate/+/2498
-
richlowe
jclulow: that was my race during boot, separate to bootpath being set and trusted way too much
-
jclulow
ah
-
jclulow
ok
-
richlowe
your "just use this" patch would make that go away (without the full searh)
-
jclulow
ah right
-
jclulow
-
fenix
→ FEATURE 15137: ZFS should allow direct import of a root pool from a /devices path (Closed) |
code.illumos.org/c/illumos-gate/+/2498
-
richlowe
but I don't think andy can use that, because of the stripe
-
jclulow
But also: won't help with a stripe
-
jclulow
right
-
andyf
It doesn't look like it's struggling to find the devices
-
jclulow
Broadly speaking, the enhancement we need is mildly architectural: we need to do the early boot scan, which we can do, but then we need to keep it around _and use it_ to locate all of the vdev disks, some of which we open a few times
-
andyf
-
jclulow
to basically open by (pool_guid, vdev guid) when we cannot open by /devices path or devid -- or, worse, if we _can_ open by those paths but the guids are not as we expect
-
richlowe
"children count mismatch" sounds exciting.
-
richlowe
also like home alone
-
andyf
"spa_load_verify found 0 metadata errors and 1 data errors" seems to be the issue that makes it all fall down
-
jclulow
1 data errors is bad
-
andyf
but yes, that's strange
-
andyf
and yet `zpool import` from a .iso boot works
-
jclulow
interesting
-
jclulow
feels like finding out what error it is will be valuable
-
jclulow
It doesn't seem like your devices have moved around though
-
andyf
Yes, that's where I'll dig tomorrow.
-
andyf
although it might have WoL..
-
andyf
Yes it does :)
-
andyf
-
andyf
ah, ECKSUM
-
andyf
(I should mention that this pool has been scrubber while imported from the installer shell)
-
andyf
*scrubbed