InfoScale™ Cluster Server 9.0 Bundled Agents Reference Guide - Linux
- Introducing bundled agents
- Storage agents
- DiskGroup agent
- DiskGroupSnap agent
- Notes for DiskGroupSnap agent
- Sample configurations for DiskGroupSnap agent
- Volume agent
- VolumeSet agent
- Sample configurations for VolumeSet agent
- LVMLogicalVolume agent
- LVMVolumeGroup agent
- LVMVolumeGroup agent notes
- Sample configurations for LVMVolumeGroup agent
- Mount agent
- Sample configurations for Mount agent
- VMwareDisks agent
- SFCache agent
- Network agents
- About the network agents
- IP agent
- NIC agent
- Notes for the NIC agent
- Sample configurations for NIC agent
- IPMultiNIC agent
- MultiNICA agent
- IP Conservation Mode (ICM) for MultiNICA agent
- Performance Mode (PM) for MultiNICA agent
- Sample configurations for MultiNICA agent
- DNS agent
- Agent notes for DNS agent
- About using the VCS DNS agent on UNIX with a secure Windows DNS server
- Sample configurations for DNS agent
- AWSIP agent
- AWSRoute53 agent
- AzureDNSZone agent
- File share agents
- NFS agent
- NFSRestart agent
- Share agent
- About the Samba agents
- NetBios agent
- Service and application agents
- Apache HTTP server agent
- Application agent
- Notes for Application agent
- Sample configurations for Application agent
- AzureAuth agent
- CoordPoint agent
- KVMGuest agent
- Notes for KVMGuest agent
- Sample configurations for KVMGuest environment
- Sample configurations for RHEV environment
- Process agent
- Usage notes for Process agent
- Sample configurations for Process agent
- ProcessOnOnly agent
- RestServer agent
- Infrastructure and support agents
- Testing agents
- Replication agents
- RVG agent
- RVGPrimary agent
- RVGSnapshot
- RVGShared agent
- RVGLogowner agent
- RVGSharedPri agent
- VFRJob agent
- Dependencies for VFRJob agent
- Notes for the VFRJob agent
GoogleDisk agent
The GoogleDisk agent lets you configure data disks for HA in GCP, so that the disks can also be failed over during an application failover between instances.
To store the data of the applications that you configure for HA, InfoScale supports the following storage types with GCP VM instance:
Zonal persistent disks - Standard and SSD
Regional persistent disks - Standard and SSD
The GoogleDisk agent brings the GCP data disks online, monitors their status, and takes them offline. The GoogleDisk agent uses GCP Python SDK to determine whether the data disks are attached to the virtual machines or not.
Your Google service accounts must have the following permissions, at the least:
compute.projects.get (at the project level, to fetch the project metadata)
compute.instances.get (at the instance level, to fetch the instance metadata)
compute.instances.attachDisk (at the instance level, to attach a disk to the instance)
compute.instances.detachDisk (at the instance level, to detach a disk from the instance)
compute.zoneOperations.get (to check the status of operations in the zone)
compute.disks.get (to fetch the list of the current users of a disk)
iam.serviceAccountUser (lets a principal attach a service account to a resource)
To access Google APIs, the
google-api-python-client
Python module must be present on the InfoScale cluster nodes.You can install Python SDK for GCP on each of the cluster nodes by running the following command:
# /opt/VRTSpython/bin/pip install google-api-python-client
You must first create a disk before you configure a resource for it. Otherwise, the online operation fails.
Add dependencies in the service group as depicted in Figure: Sample service group dependency
Open | Fetches the current GCP VM instance name and the zone and project to which the instance belongs, using its metadata. |
Online | Attaches the GCP disk to the VM instance. |
Offline | Detaches the GCP disk from the VM instance. |
Monitor | Determines whether the GCP data disk is attached to the current VM instance or to any other VM instance within or outside the cluster. It also identifies the mode in which the disk is attached and accordingly returns a status value. |
Clean | Detaches the GCP disk from the VM instance. |
ONLINE | Indicates that the GCP disk is attached to the current VM instance. |
OFFLINE | Indicates one of the following:
|
FAULTED | Indicates that the GCP disk was unexpectedly detached from the VM instance outside of VCS control. |
UNKNOWN | Returns UNKNOWN if:
|
Table: Required attributes
Attribute | Description |
---|---|
DiskName | Name of the disk. Type and dimension: string-scalar |
ReadOnly | Mode in which to attach the disk:
Default value: 0 (READ_WRITE) Type and dimension: boolean-scalar |
RegionalDisk | Type of the disk:
Default value: 0 (zonal disk) Type and dimension: boolean-scalar |
Table: Optional attribute
Attribute | Description |
---|---|
ProjectID | Project to which the VM instance belongs. Type and dimension: string-scalar |
Zone | Zone to which the instance belongs. Type and dimension: string-scalar |
VMName | Name of the GCP VM instance on which the agent runs. Type and dimension: string-scalar |
type GoogleDisk ( static int FaultOnMonitorTimeouts = 0 static str ArgList[] = { DiskName, ReadOnly, RegionalDisk, ProjectID, Zone, VMName, tempProjectName, tempVMName, tempZone } boolean ReadOnly = 0 boolean RegionalDisk = 0 str DiskName str ProjectID str Zone str VMName temp str tempProjectName temp str tempZone temp str tempVMName )
GoogleDisk VVRSG-GoogleDisk ( DiskName = sql-disk )
The GoogleDisk agent uses the DBG_1 and the DBG_2 debug log levels.