CHREIPL(8)
CHREIPL(8) π β¨
okay bestie, welcome to chreipl β the System Manager's Manual page for changing the re-IPL configuration on Linux on System z. this is literally your glowy mainframe boot queen and she's about to eat π
β¨ NAME β¨
chreipl β change the re-IPL configuration for Linux on System z π¦
πΈ SYNOPSIS πΈ
chreipl [TARGET] [OPTIONS]
π DESCRIPTION π
so like, use the chreipl tool to modify the re-IPL configuration for Linux on System z. no cap, that's the whole vibe π
You can configure a certain boot device and, for zipl boot menu configurations, the boot menu entry that will be used for the next reboot. Also kernel parameters for the next Linux kernel can be defined. it's giving "prep your next glow-up" energy β¨
Initial program load (IPL) is the mainframe synonym for what is called "boot" under Linux. bestie, it's just mainframe-speak for booting, iykyk π«Ά Accordingly re-IPL can be translated to "reboot" in the non-mainframe context.
ngl, normally for reboot the last IPL device is used to restart the system. To reboot from another IPL device, you first have to change the re-IPL settings with chreipl and then run the reboot(8) command. two steps, no shortcuts, periodt π
All settings made with chreipl are preserved over reboots until they are changed again. your choices stick around like a loyal bestie π
π TARGET π
The first argument specifies the re-IPL target:
ccw: Specify a DASD CCW device for reboot π₯eckd: Specify a DASD ECKD device for reboot πfcp: Specify a FCP device for reboot π¦nvme: Specify an NVMe device for reboot βnss: Specify a named saved system (NSS) for reboot πΈnode: Specify a device for reboot using a device node or directory π§
If the target specification is non-ambiguous it can be omitted. See section AUTOTARGET for more information. Ambiguous setups are very rare, e.g. the name of a device node theoretically could be the same as a bus-ID. like, literally edge case of edge cases π
π OPTIONS π
-for--forceβ With this option, you can force the re-IPL from a target device even if the target cannot be verified by the system. This is the case, for example, if the device is on thecio_ignoreblacklist.
Note: Use this option with great care. You can specify non-existing devices, which will cause the re-IPL to fail. π like bestie pls be careful, this is the "chaotic impulsive friend" option fr fr
-por--bootparmsβ Specifies boot parameters for the next reboot. The boot parameters which are typically kernel parameters are appended to the kernel parameter line. If you specify the boot parameters with a leading equal sign (=), the boot parameters replace all parameters on the kernel parameter line. To remove boot parameters, specify an empty string for this option. π«Ά
Depending on the chreipl target a different maximum number of characters is allowed for boot parameters. Under LPAR it is not possible to specify boot parameters for the ccw target. π
Note: When replacing all parameters, you might inadvertently omit parameters that the boot configuration requires. Read /proc/cmdline to find out with which parameters a running Linux instance has been started. ngl that's the vibe check you don't wanna skip πΈ
-hor--helpβ Print help information, then exit. iconic, the "help me help you" flag π-vor--versionβ Print version information, then exit. π
All other options are specific to the re-IPL target and are discussed below in the respective section. For a more detailed description of the Linux on System z IPL mechanisms see zipl.conf(6). The mandatory options (e.g. device, wwpn, lun, etc.) can also be specified as positional parameters. lowkey convenient, highkey slay β¨
π¦ AUTOTARGET π¦
For the ccw, fcp, and node targets chreipl can find automatically the correct re-IPL target. To do this, omit the re-IPL target parameter and start specifying the required positional parameters. it's giving "she knows where she's going" energy π
Examples:
- Next time reboot from the DASD device
/dev/dasdausing the first boot configuration:
# chreipl /dev/dasda -L 1
- Next time reboot from the CCW device with the bus-ID
0.0.7e78and empty loadparm:
# chreipl 0.0.7e78
- Next time reboot from the SCSI disk with FCP bus-ID
0.0.1700, WWPN0x500507630300c562, and LUN0x401040b300000000. In addition to that append kernel parameter"mem="to restrict memory to 512 MB:
# chreipl 0.0.1700 0x500507630300c562 0x401040b300000000 -p "mem=512M"
- Next time reboot from the NVMe device with function id
0x13, namespace1:
# chreipl nvme 0x13 1
π ccw π
Use the ccw re-IPL target for DASD devices that are accessed by the hardware using channel command word (CCW) channels. it's the classic, the original, the main character π
-dor--deviceβ Specifies the CCW bus-ID. If the bus-ID starts with"0.0."this prefix can be omitted and the four digit short notation can be used (e.g.5000is the same as0.0.5000). π«Ά-Lor--loadparmβ Specifies an entry in thezipl(8)boot menu, and an active namespace in the installed zIPL environment block for evaluation of zIPL environment variables in the kernel command line. π
This option requires an argument, which has to be a string of the form "nSX", where optional number n indicates the boot menu entry, and optional token SX specifies the active namespace. This token consists of a mandatory leading capital S and of an optional trailing character X, which is either any decimal digit, indicating ID of the active site, or a capital S. In the last case, ID of the active namespace is determined as the SSID (Subchannel Set ID). okay that's a lot of letters bestie, but you got this π
If the menu entry is omitted in the argument, then the default menu entry is used. If the X is omitted, or the whole token SX is omitted, then the common namespace of the installed zIPL environment block will be activated. defaults are your friend fr fr
-cor--clearβ Specify whether memory should be cleared on re-IPL. Possible values are0to disable and1to enable memory clearing on re-IPL. Memory clearing is supported if the"clear"attribute is present in/sys/firmware/reipl/ccw/. πΈ
Examples:
- Next time reboot from the CCW device with the bus-ID
0.0.7e78and empty loadparm:
# chreipl ccw 0.0.7e78
- Next time reboot from the CCW device with the bus-ID
0.0.7e78using the first entry of the zipl boot menu and the second site namespace in the installed zIPL environment block for evaluation of zIPL environment variables in the kernel command line:
# chreipl ccw -d 0.0.7e78 -L 1S2
β eckd β
Use the eckd re-IPL target for DASD devices that are accessed by the hardware using channel command word (CCW) channels. In contrast to the ccw re-IPL target, the eckd target uses a list-directed bootloader that supports secure boot. so she's the upgraded, secure-boot-supporting sister of ccw β obsessed π₯
-dor--deviceβ Specifies the device bus-ID of the DASD. If the bus-ID starts with"0.0."this prefix can be omitted and the four digit short notation can be used (e.g.5000is the same as0.0.5000). π«Ά-bor--bootprogβ Specifies an entry in the ECKD boot configuration by defining the IPL boot program selector. If omitted,'0'is used. defaults stay winning π--brchrβ Specifies the block on the DASD where the boot record is located. If omitted,0is used. The specification comprises comma-separated values for cylinder, head, and record:"--brchr C,H,R". Alternatively, specifying"0"or"auto"makes the bootloader determine the boot record location from the volume label. auto-pilot mode activated β¨-Lor--loadparmβ The loadparm for theeckdre-IPL target is not used to control the ECKD boot configuration that is defined by thezipl(8)boot menu. Instead it can be used to control higher level boot loaders like GRUB. For more details refer to distribution specific documentation. iykyk, check your distro docs π¦-cor--clearβ Controls whether memory is cleared on re-IPL. Possible values are0to disable and1to enable memory clearing on re-IPL. Memory clearing is supported if the"clear"attribute is present in/sys/firmware/reipl/eckd/. πΈ
Examples:
- Next time reboot from the ECKD device with the bus-ID
0.0.7e78and boot program selector0:
# chreipl eckd 0.0.7e78
- Next time reboot from the ECKD device with the bus-ID
0.0.7e78and boot program selector2:
# chreipl eckd -d 0.0.7e78 -b 2
- Next time reboot from the ECKD device with the bus-ID
0.0.7e78and tell the bootloader that the bootrecord is located in Cylinder 3, Head 0, Record 1:
# chreipl eckd -d 0.0.7e78 --brchr 3,0,1
π§ fcp π§
Use the fcp re-IPL target for SCSI disks that are accessed by the hardware using Fibre Channel Protocol (FCP) channels. fibre channel realness π
-dor--deviceβ Specifies the bus-ID of the FCP adapter that should be used to access the SCSI re-IPL device. If the bus-ID starts with"0.0."this prefix can be omitted and the four digit short notation can be used (e.g.5000is the same as0.0.5000). π«Ά-wor--wwpnβ Specifies the world wide port name (WWPN) for the FCP attached SCSI disk. π-lor--lunβ Specifies the logical unit number (LUN) for the FCP attached SCSI disk. β-bor--bootprogβ Specifies an entry in the FCP boot configuration by defining the IPL boot program selector. If omitted,'0'will be used. π-Lor--loadparmβ The loadparm for thefcpre-IPL target is not used to control the FCP boot configuration that is defined by thezipl(8)boot menu. Instead it can be used to control higher level boot loaders like GRUB. For more details refer to distribution specific documentation. same vibe as eckd, check your docs bestie π¦-cor--clearβ Specify whether memory should be cleared on re-IPL. Possible values are0to disable and1to enable memory clearing on re-IPL. Memory clearing is supported if the"clear"attribute is present in/sys/firmware/reipl/fcp/. πΈ
Examples:
- Next time reboot from the SCSI disk with FCP bus-ID
0.0.1700, WWPN0x500507630300c562, LUN0x401040b300000000, and boot program selector0:
# chreipl fcp 0.0.1700 0x500507630300c562 0x401040b300000000
- Use same configuration as (1) but choose boot program selector
2and use options instead of positional parameters:
# chreipl fcp -d 0.0.1700 -w 0x5005076... -l 0x401040b3... -b 2
and that's part 1 bestie, we're literally only getting started πβ¨π
nvme πΎβ¨
Okay so when your re-IPL target is an NVMe disk, that's this one. It's giving "reboot but make it flashy storage" and honestly? Iconic.
-i,--fidβ the PCI Function ID of the NVMe IPL device, and ngl bestie it's in hex, so don't come at it with decimals π-s,--nsidβ the Namespace ID of the NVMe IPL device. This one is decimal, and the default is1π-b,--bootprogβ picks an entry in the boot configuration by setting the IPL boot program selector. Leave it out and it just uses'0', easy peasy π¦-L,--loadparmβ heads up bestie, for thenvmere-IPL target the loadparm does not control the boot configuration that thezipl(8)boot menu defines. It's for controlling higher level boot loaders like GRUB instead π«Ά for the deets you gotta check your distribution's own documentation, iykyk-c,--clearβ says whether memory should be cleared on re-IPL. Possible values are0to disable and1to enable memory clearing on re-IPL. Memory clearing is only supported if the"clear"attribute is actually present in/sys/firmware/reipl/nvme/β so vibe check that path first bestie π
Examples β¨
- Next time reboot from the NVMe disk with function-id
0x13and namespace1:
# chreipl nvme 0x13 1
- Use same configuration as (1) but choose boot program selector
2and use options instead of positional parameters:
# chreipl nvme -i 0x13 -s 1 -b 2
nss πΈ
This is the re-IPL target for z/VM named saved systems (NSS) β yeah, that's what NSS stands for, you're welcome π use it when you want to reboot into an NSS, periodt.
-n,--nameβ specifies the name of the NSS. That's it, that's the whole option, she's simple and she serves π
Examples π
Use the NSS named LINUX1 for the next reboot:
# chreipl nss LINUX1
node π¦
okay this one is genuinely so convenient β you can identify DASD, SCSI, or NVMe re-IPL devices indirectly, through a device node or a directory π and chreipl then figures out the info that you'd otherwise have to type out yourself with the ccw or fcp target. literally doing the homework for you, main character energy fr fr.
Examples β
- Next time reboot from the DASD device
/dev/dasda:
# chreipl node /dev/dasda
- Next time reboot from the SCSI disk
/dev/sda:
# chreipl node /dev/sda
- Next time reboot from the device where directory
/mnt/bootis located:
# chreipl node /mnt/boot
- Next time reboot from the NVMe device represented by
/dev/nvme0n1
# chreipl node /dev/nvme0n1
β¨ SEE ALSO β¨ π
Like, go read those too, they're the friend group π
and that's the whole page bestie!! π this lil masterpiece is from s390-tools, dated July 2010, and the manual page is CHREIPL(8) β go forth and re-IPL responsibly, mwah ππ
π¦ where this page comes from
- opensuse-leap 16.0: s390-tools 2.44.1-160000.1.1 Β· MIT
- Copyright 2017 IBM Corp
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms