ramlife

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

转自: https://www.ibm.com/support/knowledgecenter/en/linuxonibm/com.ibm.linux.z.lgdd/lgdd_r_hibkernelparameter.html

You configure the suspend and resume support by adding parameters to the kernel parameter line.

Read syntax diagramSkip visual syntax diagram
suspend and resume kernel parameter syntax

-resume=<device_node>--+---------------------+--+-----------+-><
'- no_console_suspend-' '- noresume-'

where:

resume=<device_node>

specifies the standard device node of the swap partition with the data that is required for resuming the Linux instance.

no_console_suspend

prevents Linux consoles from being suspended early in the suspend process. Without this parameter, you cannot see the kernel messages that are issued by the suspend process.

noresume

boots the kernel without resuming a previously suspended Linux instance. Add this parameter to circumvent the resume process, for example, if the data written by the previous suspend process is damaged.

Example

To use a partition /dev/disk/by-path/ccw-0.0.2f50-part1 as the swap partition and prevent Linux consoles from being suspended early in the suspend process specify:

resume=/dev/disk/by-path/ccw-0.0.2f50-part1 no_console_suspend

The example uses a "by-path" definition of the disk to ensure that the correct device is used, for example, after a reboot.

posted on 2019-04-27 12:42  ramlife  阅读(153)  评论(0编辑  收藏  举报