Domain Dependency Examples
The following examples show how to configure domain dependencies.
Example 18-1 Configuring a Failure Policy by Using Domain Dependencies
The first command creates a master domain called twizzle
. This command uses failure-policy=reset
to specify that slave domains reset if the twizzle
domain fails. The second command modifies a master domain called primary
. This command uses failure-policy=reset
to specify that slave domains reset if the primary
domain fails. The third command creates a slave domain called chocktaw
that depends on two master domains, twizzle
and primary
. The slave domain uses master=twizzle,primary
to specify its master domains. In the event either the twizzle
or primary
domain fails, the chocktaw
domain will reset.
primary# ldm add-domain failure-policy=reset twizzle primary# ldm set-domain failure-policy=reset primary primary# ldm add-domain master=twizzle,primary chocktaw
Example 18-2 Modifying a Domain to Assign a Master Domain
This example shows how to use the ldm set-domain
command to modify the orange
domain to assign primary
as the master domain. The second command uses the ldm set-domain
command to assign orange
and primary
as master domains for the tangerine
domain. The third command lists information about all of these domains.
primary# ldm set-domain master=primary orange primary# ldm set-domain master=orange,primary tangerine primary# ldm list -o domain NAME STATE FLAGS UTIL primary active -n-cv- 0.2% SOFTSTATE Solaris running HOSTID 0x83d8b31c CONTROL failure-policy=ignore DEPENDENCY master= ------------------------------------------------------------------------------ NAME STATE FLAGS UTIL orange bound ------ HOSTID 0x84fb28ef CONTROL failure-policy=ignore DEPENDENCY master=primary ------------------------------------------------------------------------------ NAME STATE FLAGS UTIL tangerine bound ------ HOSTID 0x84f948e9 CONTROL failure-policy=ignore DEPENDENCY master=orange,primary
Example 18-3 Showing a Parseable Domain Listing
The following shows an example listing with parseable output:
primary# ldm list -o domain -p