Discovering resources
After you add the various HMCs, hosts, host groups, and storage subsystems to the KSYS
subsystem for disaster recovery management, you must run the ksysmgr discover
command to discover all the hosts that are managed by the HMCs in both the home and the backup
sites. During the discovery process, the KSYS subsystem captures the configuration information of
the home site and its relationship with the backup site and prepares the backup site to perform
disaster recovery operations later.
During the initial discovery operation, the KSYS subsystem uses this configuration information to gather the list of VMs from all the host groups across sites and the corresponding disks for disaster recovery management. During any subsequent discovery operations, the KSYS subsystem scans the environment for any changes to the environment (for example, addition of a new VM, addition of a disk to VM, Live Partition Mobility (LPM) movement of a VM from one host to another host, and so on) and adapts to the modified environment.
The KSYS subsystem interacts with the HMC to retrieve the details about the disks of each VM and to check whether the VMs are currently set up for the storage devices mirroring. If the disks are not set up for mirroring properly, the KSYS subsystem notifies you about the volume groups that are not mirrored. All volume groups of a VM must be mirrored. Disks can be available over N-Port ID Virtualization (NPIV), virtual SCSI (vSCSI), and combination of both these modes.
If the configuration is modified, for example, if a logical partition or a storage device is added, the KSYS subsystem rediscovers the home site, identifies the changes in the configuration, and marks the changes in its registries. The KSYS subsystem monitors this new environment for any disaster situations.
By default, the KSYS subsystem automatically rediscovers sites once in every 24 hours at midnight (00:00). You can change the time at which this automatic rediscovery is run by modifying the auto_discover_time attribute. However, if you modified the configuration by adding or removing any resource, and you want the KSYS subsystem to rediscover the resources immediately, you can manually run the ksysmgr discover command. If you run the discovery operation for a site, the KSYS subsystem might take a few minutes to discover all virtual machines from all the host groups across both the sites and to display the output. To save time, you can run the discovery operation for a specific host group that contains the hosts that you modified.
After a virtual machine migrated within a site or across the sites, and multiple disk is used, you must run the discovery operation manually. If you do not run the discovery operation manually, the periodic discovery suffices for the need of running discover manually.
To discover resources in the KSYS configuration settings, complete one of the following steps in the KSYS LPAR:
- To discover all the resources across both sites, run the following
command:
The KSYS subsystem discovers all the hosts and virtual machines from all the host groups across both the sites. Therefore, it might take a few minutes to discover all the hosts and to display the output.ksysmgr discover site site_name - To discover all the hosts in a specific host group, run the following
command:
ksysmgr discover host_group hg_name - To discover all VMs in a specific workgroup, run the following command:
ksysmgr discover workgroup workgroup_name
- To obtain boot disk information, which is used in multiple boot disk support during the verification and the move operations, the RMC connection of a virtual machine must be in active state.
VM auto-discovery
VM auto-discovery is a system-level property. You can disable or enable this property. By default, this property is enabled.
By default, the KSYS subsystem manages all VMs automatically. The VM auto-discovery property allows the KSYS subsystem to manage or unmanage the newly created VMs and undiscovered VMs.
If the VM auto-discovery property is enabled, all VMs are managed automatically. If the auto-discovery property is disabled, all the newly created VMs on the KSYS managed hosts and the undiscovered VMs (existing VMs that are not yet discovered by the KSYS subsystem) will not be managed by the KSYS subsystem.
- To check whether the VM auto-discovery property is enabled or disabled to discover the resources
across the site, run the following
command:
An output that is similar to the following example is displayed:ksysmgr -a vm_auto_discovery query systemSystem-Wide Persistent Attributes vm_auto_discovery: enable - To enable the VM auto-discovery property, run the following
command:
ksysmgr modify system vm_auto_discovery=enable - To disable the VM auto-discovery property, run the following
command:
ksysmgr modify system vm_auto_discovery=disable