Ilya Tatar

pageicon Tuesday Jan 06, 2009

LDom configuration persistence across various power events.

In this post I will try to clear up the confusion many new LDom users have about persistence of configuration changes across power cycles, resets, reboots etc.

First, lets break up all possible power events into two groups we care about in this discussion - poweron reset events and soft reset events:

  • Poweron reset events are system-wide events that result in the host processor performing a poweron reset system boot.

  • Soft reset events are domain-wide events that result in the hypervisor performing a domain reboot.


LDom configuration persistence is tightly related to the two power events. The main two points to remember are:

  • After a poweron reset event, either an LDom configuration previously saved on the service processor (SP) (also known as Service Controller (SC)) or the factory default configuration is used to boot the system.

  • The configuration changes done by LDom manager are saved only to memory. One needs to explicitly save current in-memory configuration to the service processor with the LDom manager "add-spconfig" subcommand. See LDom Administration Guide for more details on how to use the LDom manager.


Keeping in mind the above four points, its easy to understand that an LDom configuration which has not been saved to the SP will be lost after a poweron reset event but not after a soft reset event.

The more difficult part is keeping track of which commands cause which reset events. These commands may be invoked from different environments (SP, Openboot, Solaris) and the behavior is known to have been tweaked with certain firmware and OS versions. I suggest avoiding any dependencies on these differences and adopting a policy of always saving your current LDom configuration before *any* power or reset related command, just as you would always save your document before restarting your word processor.


If you still want to know which commands cause which power events keep in mind these rules of thumb:

  • Power commands executed from non-control domain guests do not cause host-wide poweron reset events, they only cause soft reset events. Examples include the Solaris "reboot" and OBP "reset-all, "power-off" commands.

  • Commands executed on the SP are usually host-wide poweron reset events. Examples include the ALOM shell "reset" and "powercycle" commands. An exception is the ALOM shell "reset" command with the "-d" option, which only resets the control domain.

  • Commands executed on the control domain may result in either power cycle or soft reset power events. Table 9-1 of LDoms 1.1 Administration Guide describes the effects of Solaris "halt", "reboot", and "shutdown -i 5" commands. OpenBoot "reset-all" and "power-off" commands act the same as Solaris "reboot" and "halt" commands respectively.


« November 2009
SunMonTueWedThuFriSat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
     
       
Today

Feeds

Search this blog

Links

Weblog menu

Today's referrers

Today's Page Hits: 1