intel / ipmctl

BSD 3-Clause "New" or "Revised" License
184 stars 62 forks source link

"sudo ipmctl show -region":Command not run. #197

Closed luckyq closed 2 years ago

luckyq commented 2 years ago

Hi, All.

I have encountered a problem after I reinstall the linux system.

I have a optane machine: Screen Shot 2022-10-02 at 3 59 15 PM

Before I reinstall the linux. It works well.

But now, when I want to configure it into numa mode.

This is the error.

sudo ipmctl show -region
Show region failed: Error 2 - Command not run
@optane04:~$ sudo ipmctl delete -goal
Error: Unable to complete operation due to existing PCD Configuration partition corruption. Use create -f -goal to override current PCD and create goal.
Delete memory allocation goal failed: Error 105 - The configuration data is invalid or unrecognized.

I also tried some solutions: ipmctl delete -f -dimm -pcd Screen Shot 2022-10-03 at 11 43 59 PM

I also run other command:

sudo ipmctl show -dimm

Screen Shot 2022-10-03 at 11 40 41 PM

sudo ipmctl start -diagnostic

Screen Shot 2022-10-03 at 11 41 45 PM

Could anyone help me to solve this problem?

Thanks in advance.

nolanhergert commented 2 years ago

Can you run "ipmctl create -f -goal" and report back? If it doesn't work, try adding "ipmctl delete -pcd" immediately beforehand.

luckyq commented 2 years ago
Screen Shot 2022-10-04 at 12 04 35 PM

The first cmd seems work well.

But still we can not create a goal.

nolanhergert commented 2 years ago

Interesting. I'm going to repeat that error for future searchers: "Create region configuration goal failed: Error 112 - Platform does not support changing configuration through management software"

luckyq commented 2 years ago

This is the results of "ipmctl show -system PCAT":

Screen Shot 2022-10-04 at 2 05 25 PM

The ipmctl version is

Screen Shot 2022-10-04 at 2 06 13 PM

Seems the ACPI table is the error.

nolanhergert commented 2 years ago

Yeah, we add support for that in 3794. If your distro doesn't have that version or newer, you can download the latest 2.* ipmctl version, 3885, from the link above.

StevenPontsler commented 2 years ago

I think trying a newer version of ipmctl makes sense.

What distro and version of that distro are you using?

luckyq commented 2 years ago

I just reinstall the newer version which is 02.00.00.3885. But when I run the binary,

Screen Shot 2022-10-04 at 3 07 13 PM

It seems still the 3709. I download the source code for the above link.

And it has the same error as before.

luckyq commented 2 years ago

I think trying a newer version of ipmctl makes sense.

What distro and version of that distro are you using?

LInux version: ubuntu 20.04 server LTS. Linux pasa 5.4.0-126-generic #142-Ubuntu

ipmctl : 2.00.00.3709 ; I update the ipmctl, it has the same error.

luckyq commented 2 years ago

I just solved the problem by remove libipmctl4 and also install acpid. (I am not sure which one should be the reason. But it works now.)

It should be installed with ndctl or ipmctl when I used apt install.

Screen Shot 2022-10-04 at 3 26 31 PM

After I remove libipmctl4. Everything goes well.

Screen Shot 2022-10-04 at 3 25 00 PM

I hope this will help if someone also uses "sudo apt install ipmctl " and get the errors like mine.

StevenPontsler commented 2 years ago

Thanks for the follow up. I was just going to suggest trying binaries from newer Ubuntu releases.

I would guess it is the acpid that changed things as it looked to me like ipmctl was having trouble with the ACPI tables.

If the issue is resolved please close it.

nolanhergert commented 2 years ago

Weird. My guess is that the newer libipmctl distributed with the executable was not getting used. Removing libipmctl4 forced it to use the proper one? Anyways, glad it's working.