Wednesday, December 11, 2013

Setting LDOM auto-boot to false and to be persistent across a CDOM reboot

I ran into this problem recently where you set auto-boot to false (be it via ldm command on the cdom, or eeprom on the host), and once the control domain is powered cycled, the logical domains revert back to their previous state of auto starting. The correct method is as follows:

List current vars for your ldom
# ldm list-variable
it should show - auto-boot?=true (or the var doesn't exist at all)

set host not to autoboot
# ldm set-variable "auto-boot?=false"

view current spconfig
# ldm list-spconfig

save new spconfig
# ldm add-spconfig

Apply new config
# ldm set-spconfig

view spconfig settings for next reboot
# ldm list-spconfig

view current vars
# ldm list-variable CUSRGNAS01DR1
auto-boot?=false

Shutdown hosts from the OS
# init 5

Shutdown CDOM
# init 0

Power off CDOM from the ILOM
-> stop /SYS

Check it's powered off
-> show /SYS power_state

Power on from the ILOM
-> start /SYS

view current spconfig
# ldm list-spconfig

List current vars for your ldom
# ldm list-variable

Check LDOM state
# ldm list

It show as active, but if you telnet to the console port, you'll see it sitting at the OK prompt.