Top
PRIMECLUSTER  Installation and Administration Guide 4.5
FUJITSU Software

F.1 Controlling and monitoring a guest OS by a cluster application on a host OS.

Adding the hvlibvirt script to the Cmdline resource of a cluster application on a host OS enables a guest OS to be started and shut down in response to start and shut down of the cluster application. The cluster application can also monitor the guest OS status. By the virsh command, the hvlibvirt script executes following procedures that are set as arguments: starting and shutting down the guest OS, and monitoring the guest OS status.

Specify each script Start, Stop, and Check to configure the Cmdline resource that uses the hvlibvirt script.

<Start script>

/opt/SMAW/bin/hvlibvirt -c -z <dom_name> -t <timeout>

<Stop script>

/opt/SMAW/bin/hvlibvirt -u -z <dom_name> -t <timeout>

<Check script>

/opt/SMAW/bin/hvlibvirt -m -z <dom_name> -t <timeout>

Specify the domain name of the target guest OS for <dom_name>.

Specify the timeout value to shut down the guest OS by seconds for <timeout>. The script shuts down the guest OS in offline processing. When the shutdown process is not completed beyond the shutdown time specified by <timeout>, use the destroy command of virsh (virsh destroy <dom_name>) to shut down the guest OS.

Set flags for the Cmdline resource as follows. See "6.11 Notes When Setting Cmdline Resources" for more information.

See "6.7.3.1 Setting Up Cmdline Resources" to set the Cmdline resource.

Information

Execute virsh command as below to check the domain name of the guest OS.

(Example) The domain name of the guest OS is domain 1

# virsh list --all
 Id  Name               Status
----------------------------------
  0 Domain-0             Active
  - domain1              Shutoff