InnerhalbNach weiteren Dokumenten suchenSupport-Ressourcen | Dieses Buch im PDF-Format herunterladen (1391 KB)
scrgadm(1M)NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | ATTRIBUTES | SEE ALSO | NOTES NAME
SYNOPSISShow Current Configuration scrgadm -p[v[v]] [-t resource_type_name] [-g resource_group_name] [-j resource_name]Resource Type Commands scrgadm -a -t resource_type_name [-h RT_installed_node_list] [-f registration_file_path]scrgadm -c -t resource_type_name [-h RT_installed_node_list] [-y RT_system={TRUE|FALSE}] scrgadm -r -t resource_type_name Resource Group Commands scrgadm -a -g RG_name [-h nodelist] [-y property…]scrgadm -c -g RG_name [-h nodelist] -y property… scrgadm -r -g RG_name Resource Commands scrgadm -a -j resource_name -t resource_type_name -g RG_name [-y property…] [-x extension_property…]scrgadm -c -j resource_name [-y property…] [-x extension_property…] scrgadm -r -j resource_name Logical Host Name Resource Commands scrgadm -a -L -g RG_name [-j resource_name] -l hostnamelist [-n netiflist] [-y property…]Shared Address Resource Commands scrgadm -a -S -g RG_name -l hostnamelist [-j resource_name] [-n netiflist] [-X auxnodelist] [-y property…]DESCRIPTIONA resource type specifies common properties and callback methods for all resources of that type. Before you can create a resource of a particular type, you must first register the resource type using the following form of the command:
A resource group contains a set of resources, all of which are brought online or offline together on a given node or set of nodes. You first create an empty resource group before placing any resources in it. To create a resource group, use the following command:
There are two types of resource groups: failover and scalable. A failover resource group is online on only one node at a time. A failover resource group can contain resources of any type although scalable resources that are configured in a failover resource group run on only one node at a time. To create a failover resource group named MyDatabaseRG, use the following command:
A scalable resource group can be online on several nodes at once. A scalable resource group can contain only resources that support scaling and cannot contain resources that are constrained, by their resource type definition, to only failover behavior. To create a scalable resource group named MyWebServerRG, use the following command:
A newly created resource group is in an UNMANAGED state. After creating resources in the group, use the scswitch(1M) command to put a resource group in a MANAGED state. To create a resource of a given type in a resource group, use the following command:
Creating a resource causes the underlying RGM mechanism to take several actions. The underlying RGM mechanism calls the VALIDATE method on the resource to verify that the property settings of the resource are valid. If the VALIDATE method completes successfully and the resource group has been put in a MANAGED state, the RGM initializes the resource by calling the INIT method on the resource. The RGM then brings the resource online if it is enabled and its resource group is online. To remove a resource group, first remove all resources from that resource group. To remove a resource, first disable it with the scswitch(1M) command. Removing a resource causes the RGM to clean up after the resource by calling the FINI method on that resource. OPTIONS
Action OptionsAction options specify the actions performed by the command. Only one action option is allowed on the command line. The following action options are supported: Target OptionsTarget options identify the target object. The following target options are supported: Note – Resource group names, resource names, and resource type names are not case sensitive. You can use any combination of uppercase and lowercase letters when you specify property names. Resource Type-Specific OptionsThe following options are supported: Resource Group-Specific OptionsThe following options are supported: Resource-Specific OptionsThe following options are supported: LogicalHostName Specific OptionsThese options apply to logical host name resources. There are no special commands for removing a LogicalHostname resource:
resource_name is the same name that is supplied with the optional -j option when you create the LogicalHostname resource. If the -j option and resource_name are omitted when the LogicalHostname resource is created, then the name is generated by scrgadm. The following options are supported: netif may be given as network adapter name, such as le0, or as an IP Network Multipathing group name, such as sc_ipmp. The node may be a node name or node identifier. All nodes in the nodelist of the resource group must be represented in netiflist. If -n netiflist is omitted, an attempt is made to discover a net adapter on the subnet identified by the hostnamelist for each node in the nodelist. Single adapter IP Network Multipathing groups are created for discovered network adapters not already in an IP Network Multipathing group. Similarly, a single-adapter IP Network Multipathing group is created for a named adapter, if a group does not already exist. Refer to the NOTES section for more information. SharedAddress Specific OptionsAll of the LogicalHostname-specific options also apply to SharedAddress resources with the following changes and additions: EXIT STATUS
The following exit values are returned: Some operations are not permitted on resource types whose RT_System property is TRUE. Similarly, some operations are not permitted on a resource group (and its resources) whose RG_System property is TRUE. See rt_properties(5) and rg_properties(5). ATTRIBUTESSee attributes(5) for descriptions of the following attributes:
SEE ALSOifconfig(1M), scstat(1M), scswitch(1M), attributes(5), r_properties(5), rbac(5), rg_properties(5), rt_properties(5) NOTESA network adapter that is not already configured for use cannot be discovered or placed into an IP Network Multipathing group during LogicalHostname and SharedAddress add operations. See ifconfig(1M). If scrgadm exits nonzero with the error message cluster is reconfiguring, the requested operation might have completed successfully, despite the error status. If you doubt the result, you can execute scrgadm again with the same arguments after the reconfiguration is complete. NAME | SYNOPSIS | DESCRIPTION | OPTIONS | EXIT STATUS | ATTRIBUTES | SEE ALSO | NOTES |
||||||||||||||||||||