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

8.6.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 (Hosts)

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

    Point

    Notes on selecting VM hosts to register in the VM pool when using virtual storage resources

    It is recommended to register VM hosts that share the same virtual storage resources in the same VM pool.

    It is also recommended to register VM hosts that share different scopes of virtual storage resources in different VM pools.

    Figure 8.11 Register VM Pools

  2. Register storage resources

    Register the virtual storage resources to use when creating an L-Server, or disk resources for VM guests registered in advance, in the resource pool.

    • Register virtual storage resources

      1. Create a Storage Pool with Thin Provisioning Attributes Configured

        Create a storage pool with thin provisioning attributes configured.

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

      2. Register virtual storage resources

        When a VM host is registered as storage management software, the directory area specified as a target path in a libvirt storage pool is automatically detected as a virtual storage resource. Register the virtual storage resource detected automatically in the storage pool.

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

        Point

        This virtual storage resource has thin provisioning attributes.

        It can only be registered in a storage pool with thin provisioning attributes.

    • Registration of disk resources (raw devices or partitions) for VM guests registered in advance

      Refer to "Registration of disk resources (raw devices or partitions) for VM guests registered in advance".

      This operation is unnecessary when not using disk resources for VM guests created in advance.

    • Registration in a storage pool in an environment where both virtual storage resources and disk resources for VM guests created in advance exist

      Use the same operation and registration procedures explained above.

  3. Register network resources

    If the NIC and network resources are connected when an L-Server is created, the settings matching the network resource definition will be registered automatically for the VM host that the L-Server will operate on.
    For details, refer to "8.6.4 Manual Network Configuration".

    • In the ROR console orchestration tree, right-click the target network pool, and select [Create Network Resource].

      When creating a new network resource, select [New].

      When creating a resource using an already registered admin LAN subnet, select [Using existing admin subnet].

    • The [Create a network resource] dialog is displayed.

    • 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".

  4. Register network device resources

    Create network devices to be used on the L-Platform and register those with the type Firewall or SLB in the network pool.

    Refer to "14.4 Network Devices" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".

  5. Register Address Set Resources (MAC Addresses)

    Create and register an address set resource (MAC address) in the address pool.
    For details, refer to "14.6 Address Set Resources" in the "User's Guide for Infrastructure Administrators (Resource Management) CE".


Environments with Both Virtual Storage Resources and Disk Resources Created in Advance

Use of RHEL-KVM provides the following benefits:

When having both of the above types of resources, it is recommended to register each type of resource in different resource pools, as usage conditions differ depending on the resource type.

It is also recommended to register VM hosts that share the same scope of virtual storage resources and disk resources created in advance, in the same VM pool.

For details on the two types of cloning images, refer to "8.6.7 Collecting Cloning Images" in "Image Location Type and Storage Location of Cloning Images".


Registration of disk resources (raw devices or partitions) for VM guests registered in advance

Register the raw devices or partitions recognized by VM hosts 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.

Register the raw devices or the partitions to store cloning images shared between multiple VM hosts as disk resources defined as 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/FJSVrcxat/bin/rcxvmdiskagt -ip IP address of the managed server > rcxvmdiskagt_command_execution_result_XML_file <RETURN>

    Example

    Output Example of the rcxvmdiskagt Command

    Operated on a VM host (192.168.23.153)
    >rcxvmdiskagt -ip 192.168.23.153 <RETURN>
    <?xml version="1.0" encoding="utf-8"?>
    <VmHost ip="192.168.23.153">
     <Disks>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300010000" size="10.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020000" size="20.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030000" size="30.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300040000" size="10.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300050000" size="10.0"/>
     </Disks>
    </VmHost>

    Operated on a VM host (192.168.23.154)
    >rcxvmdiskagt -ip 192.168.23.154 <RETURN>
    <?xml version="1.0" encoding="utf-8"?>
    <VmHost ip="192.168.23.154">
     <Disks>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300010001" size="10.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020001" size="20.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030001" size="30.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300040001" size="10.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300050001" size="10.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 2.

    • 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

    XML file output on the VM host (192.168.23.153)
    <?xml version="1.0" encoding="utf-8"?>
    <VmHost ip="192.168.23.153">
     <Disks>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300010000" size="10.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020000" size="20.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030000" size="30.0"/>
     </Disks>
    </VmHost>

    XML file output on the VM host (192.168.23.154)
    <?xml version="1.0" encoding="utf-8"?>
    <VmHost ip="192.168.23.154">
     <Disks>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300010001" size="10.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020001" size="20.0"/>
      <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030001" size="30.0"/>
     </Disks>
    </VmHost>
  4. Create an XML file storage directory (admin server)

    Create a directory for storing the XML file created in steps 2 and 3 on the admin server.

  5. Store XML files (admin server)

    Store the XML file created in steps 2 and 3 in the directory created in step 4.

  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.1 Disk Resources [KVM]" 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="/dev/disk/by-id/scsi-3600000e00d0000000001321300010000" size="10.0"/>
        <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020000" size="20.0"/>
        <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030000" size="30.0"/>
       </Disks>
      </VmHost>
      <VmHost ip="192.168.23.154">
       <Disks>
        <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300010001" size="10.0"/>
        <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020001" size="20.0"/>
        <Disk name="*" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030001" 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 that was created in step 6, 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

    raw Device or Partition Path on the VM host (192.168.23.153)
    raw Device or Partition Path on the VM host (192.168.23.154)

    Disk Resource Name

    /dev/disk/by-id/scsi-3600000e00d0000000001321300010000
    /dev/disk/by-id/scsi-3600000e00d0000000001321300010001

    disk_resource_10gb

    /dev/disk/by-id/scsi-3600000e00d0000000001321300020000
    /dev/disk/by-id/scsi-3600000e00d0000000001321300020001

    disk_resource_20gb

    /dev/disk/by-id/scsi-3600000e00d0000000001321300030000
    /dev/disk/by-id/scsi-3600000e00d0000000001321300030001

    disk_resource_30gb

    In order to migrate 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.

    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="/dev/disk/by-id/scsi-3600000e00d0000000001321300010000" size="10.0"/>
        <Disk name="disk_resource_20gb" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020000" size="20.0"/>
        <Disk name="disk_resource_30gb" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030000" size="30.0"/>
       </Disks>
      </VmHost>
      <VmHost ip="192.168.23.154">
       <Disks>
        <Disk name="disk_resource_10gb" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300010001" size="10.0"/>
        <Disk name="disk_resource_20gb" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300020001" size="20.0"/>
        <Disk name="disk_resource_30gb" path="/dev/disk/by-id/scsi-3600000e00d0000000001321300030001" 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 which was created in step 7, 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>

Point

Register the disk resources that one VM host can use in one storage pool. Creating the L-Server might fail when disk resources have been divided between two or more storage pools.