On 01/12/2021, 16:57:06, Laurent Dufour wrote:
On 01/12/2021, 16:30:29, Nathan Lynch wrote:
quoted
Laurent Dufour [off-list ref] writes:
quoted
The LPAR name may be changed after the LPAR has been started in the HMC.
In that case lparstat command is not reporting the updated value because it
reads it from the device tree which is read at boot time.
Could lparstat be changed to make the appropriate get-system-parameter
call via librtas, avoiding a kernel change?
You're right, I could do that directly in lparstat without changes in the
kernel.
Indeed, that's not so easy because the RTAS syscall can only be called by
privileged users, even to read some parameters.
So to have the lparstat command reporting the updated LPAR name, the only
way is to report that value in /proc/powerpc/lparcfg.
Furthermore, this would make sense to have this value reported in this file.
That's being said, I'll send a v2 to align the property title to the
existing "partition_id", naming it "partition_name".