How To
Summary
This document shows how to add or remove a CP or IFL (Integrated Facility for Linux) dedicated processor to a Linux guest running on the IBM Z mainframe platform under z/VM.
Please see the warning below regarding removing a CPU from a running Linux guest.
Steps
Adding CPUs to our Linux guest hosted under z/VM on the IBM Z mainframe.
You can dynamically add CPUs to your guest and have them available to Linux.
* If you manually add CPUs to the guest, and reboot Linux, they will be seen again when Linux is up.
* If you manually add CPUs to the guest, but do not define them in the guest’s USER DIRECT, they will go away when the guest logs out.
CPU 02 defined
CPU 03 defined
00: CP DEFINE CPU 02 TYPE CP
00: CPU 02 defined
00: CPU 03 defined
CPU 01 ID FF0288F728288000 CP CPUAFF ON
CPU 02 ID FF0288F728288000 STOPPED CP CPUAFF ON
CPU 03 ID FF0288F728288000 STOPPED CP CPUAFF ON
CPU 00 ID FF0288F728288000 (BASE) CP CPUAFF ON
They won’t show up in Linux lscpu -ae yet until we online them
Triggered rescan of CPUs
03: HCPGSP2627I The virtual machine is placed in CP mode due to a SIGP initial C
PU reset from CPU 01.
s390linux:~ # lscpu -ae
CPU NODE DRAWER BOOK SOCKET CORE L1d:L1i:L2d:L2i ONLINE CONFIGURED POLARIZATION ADDRESS
0 0 0 0 0 0 0:0:0:0 yes yes horizontal 0
1 0 1 1 1 1 1:1:1:1 yes yes horizontal 1
2 0 2 2 2 2 2:2:2:2 yes yes horizontal 2
3 0 3 3 3 3 3:3:3:3 yes yes horizontal 3
s390linux:~ # vmcp q v cpus
CPU 02 ID FF0288F728288000 CP CPUAFF ON
CPU 03 ID FF0288F728288000 CP CPUAFF ON
CPU 00 ID FF0288F728288000 (BASE) CP CPUAFF ON
CPU 01 ID FF0288F728288000 CP CPUAFF ON
# chcpu -e 02
CPU 2 enabled
02: HCPGSP2627I The virtual machine is placed in CP mode due to a SIGP initial C
PU reset from CPU 00.
# cd /sys/devices/system/cpu
s390linux:/sys/devices/system/cpu # cat online
0-3
Disabling and removing CPUs
CPU 00 ID FF0288F728288000 (BASE) CP CPUAFF ON
CPU 01 ID FF0288F728288000 CP CPUAFF ON
CPU 02 ID FF0288F728288000 CP CPUAFF ON
CPU 03 ID FF0288F728288000 CP CPUAFF ON
CPU 3 disabled
on the console you’ll see:
03: HCPGSP2629I The virtual machine is placed in CP mode due to a SIGP stop from
CPU 03.
CPU 2 disabled
s390linux:~ # lscpu -e
CPU NODE DRAWER BOOK SOCKET CORE L1d:L1i:L2d:L2i ONLINE CONFIGURED POLARIZATION ADDRESS
0 0 0 0 0 0 0:0:0:0 yes yes horizontal 0
1 0 1 1 1 1 1:1:1:1 yes yes horizontal 1
2 0 - - - - ::: no yes horizontal 2
3 0 - - - - ::: no yes horizontal 3
s390linux:~ # vmcp q v cpus
CPU 00 ID FF0288F728288000 (BASE) CP CPUAFF ON
CPU 01 ID FF0288F728288000 CP CPUAFF ON
CPU 02 ID FF0288F728288000 STOPPED CP CPUAFF ON
CPU 03 ID FF0288F728288000 STOPPED CP CPUAFF ON
At this point they are seen by Linux but are not processing.
IMPORTANT WARNING:
00: CPU 02 detached
00: Storage cleared - system reset.
00: DETACH CPU 03
00: CPU 03 detached
00: Storage cleared - system reset.
00: Q V CPUS
00: CPU 00 ID FF0288F728288000 (BASE) STOPPED CP CPUAFF ON
00: CPU 01 ID FF0288F728288000 STOPPED CP CPUAFF ON
Document Location
Worldwide
Was this topic helpful?
Document Information
More support for:
SUSE Linux Enterprise Server
Software version:
All Versions
Operating system(s):
Linux on IBM Z Systems
Document number:
964670
Modified date:
01 April 2021
UID
ibm10964670