Troubleshooting
Problem
During reboot of a Linux partition, A failure might occur during reboot or installation of a Linux partition indicating:
Could not allocate memory for RTAS
Or
No memory for flatten_device_tree (no room)
This failure can also occur after switching kernels.
Symptom
The following output can be seen on the console of the partition, with the key messages being shown at the end:
Elapsed time since release of system processors: 45 mins 32 secs
OF stdout device is: /vdevice/vty@30000000
Preparing to boot Linux version 3.10.0-514.el7.ppc64 (mockbuild@ppc-021.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Oct 19 11:30:41 EDT 2016
Detected machine type: 0000000000000101
Max number of cores passed to firmware: 256 (NR_CPUS = 2048)
Calling ibm,client-architecture-support... done
command line: BOOT_IMAGE=/vmlinuz-0-rescue-5b44b8e692ad4502afd3021524129f10 root=UUID=2eaa3129-c2b7-4775-b09a-2d6c3c8c4cbe ro crashkernel=auto
memory layout at init:
memory_limit : 0000000000000000 (16 MB aligned)
alloc_bottom : 000000000ee50000
alloc_top : 0000000010000000
alloc_top_hi : 0000000010000000
rmo_top : 0000000010000000
ram_top : 0000000010000000
Could not allocate memory for RTAS
EXIT called ok
0 >
Cause
Memory fragmentation can prevent the load of modules needed by the boot loader or the OS. This error can prevent the boot loader menu from being displayed.
Environment
This document could apply to all Power PC POWER7, POWER8, or POWER9 Linux® installations.
Diagnosing The Problem
1. Validate that the error being seen is a match to this document.
Elapsed time since release of system processors: 45 mins 32 secs
OF stdout device is: /vdevice/vty@30000000
Preparing to boot Linux version 3.10.0-514.el7.ppc64 (mockbuild@ppc-021.build.eng.bos.redhat.com) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Oct 19 11:30:41 EDT 2016
Detected machine type: 0000000000000101
Max number of cores passed to firmware: 256 (NR_CPUS = 2048)
Calling ibm,client-architecture-support... done
command line: BOOT_IMAGE=/vmlinuz-0-rescue-5b44b8e692ad4502afd3021524129f10 root=UUID=2eaa3129-c2b7-4775-b09a-2d6c3c8c4cbe ro crashkernel=auto
memory layout at init:
memory_limit : 0000000000000000 (16 MB aligned)
alloc_bottom : 000000000ee50000
alloc_top : 0000000010000000
alloc_top_hi : 0000000010000000
rmo_top : 0000000010000000
ram_top : 0000000010000000
Could not allocate memory for RTAS
EXIT called ok
0 >
Verify that the statement "Could not allocate memory for RTAS" is present.
- Record the range of text from the failing server partition.
- Enter the command "printenv" and record the output. This command provides information on the server partition non-volatile storage variables.
- Enter the command "dev /memory@0", then enter the command ".properties" (noticing the period ahead of the command properties), and record the output. This command provides information on the memory layout that is present.
Resolving The Problem
1. Attempt to clear partition NVRAM to recover.
- Enter "reset-all" to reset the partition.
- Watch for the boot options banner screen and enter "8" to request stop at Open Firmware prompt. (Note, it is different than the prompt seen).
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM IBM
1 = SMS Menu 5 = Default Boot List
8 = Open Firmware Prompt 6 = Stored Boot List
- Enter the following in order at the Open Firmware prompt:
(1) dev nvram
(2) wipe-nvram
The output looks like the following when entered:
0 > dev nvram ok
0 > wipe-nvram
Rebooting partition now to rebuild partition's NVRAM...
If the partition reboots now, the partition environment NVRAM is rebuilt. If there were changes to the partition NVRAM done by the user, they can need to be done again. If the partition fails to reboot and fails with the same symptom, proceed to the next step.
2. If the same failure re-occurs, then attempt to re-create the partition again.
- Ensure there is a valid backup of the profile data.
The following IBM Knowledge Center document can be used as a reference for backing up profile data.
https://www.ibm.com/support/knowledgecenter/TI0002C/p8eav/p8eav_backupprofile.htm - Next, delete the affected partition.
The following IBM Knowledge Center document can be used as a reference for deleting a partition.
https://www.ibm.com/support/knowledgecenter/8286-41A/p8hat/p8hat_deletelparp6.htm - After the partition is deleted, you can recover the partition by restoring the profile data.
The following IBM Knowledge Center document can be used as a reference for restoring profile data. You must only restore data for the partition that was deleted.
https://www.ibm.com/support/knowledgecenter/TI0002C/p8eav/p8eav_restoreprofdata.htm - Activate the partition from the profile.
The following IBM Knowledge Center document can be used as a reference for activating a partition from the partition profile.
https://www.ibm.com/support/knowledgecenter/en/POWER8/p8hat/p8hat_activateprofile.htm
Related Information
Was this topic helpful?
Document Information
Modified date:
07 December 2021
UID
ibm10732319