Top
ServerView Resource Orchestrator Cloud Edition V3.2.0 Setup Guide
FUJITSU Software

8.8.3 Registering Resources in Resource Pools

This section explains the registration of resources to resource pools.
Use the following procedure to register a resource to a resource pool:

  1. Register VM host resources

    1. In the ROR console orchestration tree, right-click the target VM pool, and select [Register Resources] from the popup menu.

      The [Register Resources] dialog is displayed.

    2. Select the VM host to register.

    3. Click the [OK] button.

    For details, refer to "14.1 VM Host Resources" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".

  2. Register disk resources

    Register the raw devices or partitions used by VM guests as disk resources.

    When migrating VM guests for virtual L-Servers, register the raw devices or the partitions shared between multiple VM hosts as disk resources defined to be shared.

    Perform the following procedure:

    1. Create a storage pool (admin server)

      To use a storage pool other than default one, create the storage pool.

      For details on how to create a storage pool, refer to "20.2 Creating" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".

    2. Execute the rcxvmdiskagt command (managed servers)

      Execute the rcxvmdiskagt command on each managed server. The rcxvmdiskagt command displays the raw device or partition information recognized by the VM host. In addition, this command performs redirection and outputs the execution results to a file with the extension "xml".

      Execute this command on all managed servers where disk resources are to be registered.

      For details on the rcvmdiskagt command, refer to "5.25 rcxvmdiskagt" in the "Reference Guide (Command/XML) CE".

      # /opt/FJSVrcvat/bin/rcxvmdiskagt -ip IP address of the managed server -vmtype ovm-sparc > rcxvmdiskagt command execution result XML file <RETURN>

      Example

      Output Example of the rcxvmdiskagt Command

      >rcxvmdiskagt -ip 192.168.23.153 <RETURN>
      <?xml version="1.0" encoding="utf-8"?>
      <VmHost ip="192.168.23.153">
       <Disks>
        <Disk name="*" path="vol0@primary-vds0" size="10.0"/>
        <Disk name="*" path="vol1@primary-vds0" size="20.0"/>
        <Disk name="*" path="vol2@primary-vds0" size="30.0"/>
        <Disk name="*" path="vol3@primary-vds0" size="40.0"/>
        <Disk name="*" path="vol4@primary-vds0" size="50.0"/>
       </Disks>
      </VmHost>
    3. Delete unnecessary Disk elements (managed servers)

      Delete the <Disk> elements for the following items, from the file that was output in step b.

      • raw devices or partitions not used by the VM guests

      • raw devices or partitions which are to be used by the VM host but are not mounted

      • LVM disks

      Example

      Example of an XML file with <Disk> Elements Deleted

      >rcxvmdiskagt -ip 192.168.23.153 <RETURN>
      <?xml version="1.0" encoding="utf-8"?>
      <VmHost ip="192.168.23.153">
       <Disks>
        <Disk name="*" path="vol0@primary-vds0" size="10.0"/>
        <Disk name="*" path="vol1@primary-vds0" size="20.0"/>
        <Disk name="*" path="vol2@primary-vds0" size="30.0"/>
       </Disks>
      </VmHost>
    4. Create an XML file storage directory (admin server)

      Create a directory for storing the XML file created in step b and step c on the admin server.

    5. Store XML files (admin server)

      Store the XML file created in step b and step c in the directory created in step d.

    6. Execute the rcxvmdisk command (admin server)

      Execute the rcxvmdisk command on the admin server. The rcxvmdisk command displays part of the disk resource configuration information for virtual L-Servers in XML format. In addition, this command performs redirection and outputs the execution results to a file with the extension "xml".

      For details on the rcxvmdisk command, refer to "5.24 rcxvmdisk" in the "Reference Guide (Command/XML) CE".

      For details on the XML file, refer to "15.4.4 Disk Resources [OVM for SPARC]" in the "Reference Guide (Command/XML) CE".

      # /opt/FJSVrcvmr/bin/rcxvmdisk -dir Storage directory_for_XML_files_of_command_execution_results > XML_file_of_disk_resource_configuration_information_for_virtual_L-Servers <RETURN>

      Example

      Execution Example of the Following Case:

      Storage directory for XML files of rcxvmdiskagt command execution results: /root/rcxvmdiskagt_dir
      XML file of disk resource configuration information for virtual L-Servers: /root/rcxvmdiskagt_dir/rcxvmdisk_Storage_Pool_1.xml

      # /opt/FJSVrcvmr/bin/rcxvmdisk -dir /root/rcxvmdiskagt_dir > /root/rcxvmdisk_Storage_Pool_1.xml <RETURN>

      Example XML file of disk resource configuration information for virtual L-Servers

      <?xml version="1.0" encoding="utf-8"?>
      <Storage>
       <Pool name="*" />
       <VmHosts>
        <VmHost ip="192.168.23.153">
         <Disks>
          <Disk name="*" path="vol0@primary-vds0" size="10.0"/>
          <Disk name="*" path="vol1@primary-vds0" size="20.0"/>
          <Disk name="*" path="vol2@primary-vds0" size="30.0"/>
         </Disks>
        </VmHost>
       </VmHosts>
      </Storage>
    7. Specify the storage pool name

      For the name attribute of the <Pool> element in the XML file of disk resource configuration information for virtual L-Servers which was created in step f, specify the name of the storage pool in which disk resources for virtual L-Servers are to be registered. For the name attribute of each <Disk> element, specify the disk resource name.

      Example

      Example of the XML file of disk resource configuration information for virtual L-Servers when registering disk resources based on the following information:

      XML file name of disk resource configuration information for virtual L-Servers: rcxvmdisk_Storage_Pool_1.xml
      Storage pool name: Storage_Pool_1

      Virtual Disk Service Information

      Disk Resource Name

      vol0@primary-vds0

      disk_resource_10gb

      vol1@primary-vds0

      disk_resource_20gb

      vol2@primary-vds0

      disk_resource_30gb

      XML file of disk resource configuration information for virtual L-Servers

      <?xml version="1.0" encoding="utf-8"?>
      <Storage>
       <Pool name="Storage_Pool_1" />
       <VmHosts>
        <VmHost ip="192.168.23.153">
         <Disks>
          <Disk name="disk_resource_10gb" path="vol0@primary-vds0" size="10.0"/>
          <Disk name="disk_resource_20gb" path="vol1@primary-vds0" size="20.0"/>
          <Disk name="disk_resource_30gb" path="vol2@primary-vds0" size="30.0"/>
         </Disks>
        </VmHost>
       </VmHosts>
      </Storage>
    8. Create and register disk resources in a storage pool (admin server)

      Specify the XML file of disk resource configuration information for virtual L-Servers that was created in step g, then execute the rcxadm disk command. Disk resources for virtual L-Servers are created and registered in the storage pool.

      # /opt/FJSVrcvmr/bin/rcxadm disk register -file XML_file_of_disk_resource_configuration_information_for_virtual_L-Servers <RETURN>

      Example

      Execution Example of the Following Case:

      XML file of disk resource configuration information for virtual L-Servers: /root/rcxvmdiskagt_dir/rcxvmdisk_Storage_Pool_1.xml

      # /opt/FJSVrcvmr/bin/rcxadm disk register -file /root/rcxvmdiskagt_dir/rcxvmdisk_Storage_Pool_1.xml <RETURN>

  3. Register network resources

    1. In the ROR console orchestration tree, right-click the target network pool, and select [Create Resource] from the popup menu.

      The [Create a network resource] dialog is displayed.

    2. Enter the items necessary for network resources.

    For details, refer to "14.3 Network Resources" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".

    Point

    In order to connect to an installation server, an IP address of the admin LAN is needed for creation of an L-Server an image specified.
    Therefore, create a network resource for the admin LAN of the VM host in the pool within the access scope of the user.

  4. Register virtual image resources

    Register the virtual image resources used when creating virtual L-Servers in the resource pool.
    It is necessary to create a BladeLogic system package and register it with Resource Orchestrator.

    1. Template configuration

      Specify the data store instance name constructed in "E.7.2 Preparations for Servers" in the "Design Guide CE" as "DATA_STORE" of the "Local Properties" of the system package stored in the following location.

      Depot/ROR/Solaris/vm/ovm/template

    2. Create the BladeLogic system package

      From the console of BladeLogic, create the BladeLogic system package in the following folder.

      Depot/ROR/Solaris/vm/ovm

      The name of the system package must start with an alphabetic character (upper or lower case), and can contain up to 32 alphanumeric characters or underscores ("_").
      For details, contact Fujitsu technical staff.

      Point

      A default system package is created under the following folder at the time of registration of server management software. Copy the system package and use it.

      Depot/ROR/Solaris/vm/ovm/template

      The minimum parameters required for operation are set in these system packages. Modify the parameters depending on your environment.
      Correct the following parameters according to the environment.
      If correction of other parameters is necessary, contact Fujitsu technical staff.

      In the case of Solaris 11

      • [Computer Settings]

        All the items

      • [Network]

        - Name service type

      • [Finish Script/Agent Install]

        - Installing RSCD agents

        - Pushing ACL

        - Executing batch job after installation

        - Forced batch job after installation

        - Application server for BMI callback

      In the case of Solaris 10

      • [Disk partition]

        All the items

      • [Computer Settings]

        All the items

      • [Network]

        - Name service type

      • [Package Specifications]

        All the items

      • [Rules File Script]

        All the items

      • [Begin Script]

        All the items

      • [Finish Script/Agent Install]

        - Installing RSCD agents

        - Pushing ACL

        - Executing batch job after installation

        - Forced batch job after installation

        - Application server for BMI callback

    3. Register the BladeLogic system package with Resource Orchestrator

      Refer to "17.5.1 Collecting and Registering" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".

    4. Register the virtual image resource in the resource pool

      For details, refer to "14.7.1 Virtual Image Resources" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".