This appendix contains reference information for Rapid Home Provisioning commands, including the Rapid Home Provisioning Control (RHPCTL) utility and Server Control (SRVCTL) utility.
This appendix includes the following topics:
This section describes RHPCTL command usage information, and lists and describes RHPCTL commands.
RHPCTL is a command-line utility with which you perform Rapid Home Provisioning operations and manage Rapid Home Provisioning Servers and Clients. RHPCTL uses the following syntax:
rhpctl command object [parameters]
In RHPCTL syntax:
command
is a verb such as add
, delete
, or query
object
(also known as a noun) is the target or object on which RHPCTL performs the command, such as client or image.
parameters
extend the use of a preceding command combination to include additional parameters for the command. Specify parameters as -keyword value
. If the value
field contains a comma-delimited list, then do not use spaces between the items in the list.
You can use RHPCTL commands to perform several Rapid Home Provisioning operations, including:
Rapid Home Provisioning Client operations, such as creating a Rapid Home Provisioning Client configuration.
Role operations, such as adding and deleting roles, and granting and revoking roles for users.
Site operations, such as obtaining configuration information for Rapid Home Provisioning Servers.
Image operations, such as adding, deleting, and importing images.
Image series operations, such as adding and deleting image series.
Working copy operations, such as adding and deleting working copies.
To see help for all RHPCTL commands, from the command line enter:
rhpctl -help
To see the command syntax and a list of parameters for each RHPCTL command, from the command line enter:
rhpctl command (or verb) object (or noun) -help
Use the rhpctl add client
command to add a Rapid Home Provisioning Client to the configuration.
rhpctl add client -client client_name -toclientdata path [-maproles role=user_name[,role=user_name[,...]]]
Table F-1 rhpctl add client Parameters
Parameter | Description |
---|---|
-client client_name
|
Specify the name of the cluster in which you want to create the client. |
-toclientdata path
|
Specify the path to the XML file that is created by the Rapid Home Provisioning Server (specific to the client cluster), which contains the information the client needs to configure its connection to the server. |
-maproles role= user_name[,...] |
You can specify either built-in roles or roles that you have defined. |
Use the rhpctl add database
command to add a database using a specific working copy.
rhpctl add database -workingcopy workingcopy_name -dbname unique_db_name -datafileDestination datafileDestination_path {-node node_list | -serverpool pool_name [-pqpool pool_name | -newpqpool pool_name -pqcardinality cardinality] | -newpool pool_name -cardinality cardinality [-pqpool pool_name | -newpqpool pool_name -pqcardinality cardinality]} [-dbtype {RACONENODE | RAC | SINGLE}] [-dbtemplate file_path | image_name:relative_file_path]
Table F-2 rhpctl add database Parameters
Parameter | Description |
---|---|
-workingcopy
workingcopy_name
|
Specify the name of an existing working copy for the database that you want to add. |
-dbname unique_db_name
|
Specify the unique name of the database ( |
-datafileDestination
datafileDestination_path
|
Specify the data file destination location or the name of the Oracle Automatic Storage Management (Oracle ASM) disk group. Note: You cannot specify a disk group for Oracle Database versions before Oracle Database 11g release 2 (11.2). |
-node node_list
|
Specify a node or comma-delimited list of several nodes on which to create the database. |
-serverpool
server_pool_name
|
Specify the name of an existing server pool. |
-pqpool
server_pool_name
|
Specify the name of an existing server pool. Note: This parameter is only applicable in an Oracle Flex Cluster environment and refers to server pools (either already defined, as in this case, or to be created when you use the |
-newpqpool
server_pool_name
|
Optionally, you can create a new server pool to be used for parallel queries. Specify a name for the new server pool. Note: This parameter is only applicable in an Oracle Flex Cluster environment because it refers to server pools running on Leaf Nodes. |
-pqcardinality cardinality
|
If you create a new server pool, then you must specify a cardinality value for the server pool. Note: This parameter is only applicable in an Oracle Flex Cluster environment. |
-newpool
server_pool_name
|
Optionally, you can create a new server pool. Specify a name for the new server pool. |
-cardinality cardinality
|
If you create a new server pool, then you must specify a cardinality value for the server pool. |
-dbtype {RACONENODE | RAC | SINGLE} |
Specify whether the database is Oracle RAC One Node, Oracle RAC, or a nonclustered database. |
-dbtemplate file_path | image_name:relative_file_path |
Specify the absolute file path to a database template or the relative path to the image home directory on a Rapid Home Provisioning Server. |
Use the rhpctl add image
command to create an image from an existing working copy and add it to the list of existing images on the Rapid Home Provisioning Server configuration.
rhpctl add image -image image_name -workingcopy working_copy_name [-series series_name] [-state {TESTABLE | RESTRICTED | PUBLISHED}]
Table F-3 rhpctl add image Parameters
Parameter | Description |
---|---|
-image image_name
|
Specify the name of the image that you want to add. |
-workingcopy
working_copy_name
|
Specify the name of the working copy from which to create the image. |
-series series_name
|
Specify the name of the series. |
-state {TESTABLE | RESTRICTED | PUBLISHED |
Specify the state of the image. |
Use the rhpctl add role
command to create roles and add them to the list of existing roles on the Rapid Home Provisioning Server configuration.
See Also:
"Rapid Home Provisioning Roles"Table F-4 rhpctl add role Parameters
Parameter | Description |
---|---|
-role role_name
|
Specify a name for the role that you want to create. |
-hasRoles roles
|
Specify a comma-delimited list of roles to include with the new role. GH_ROLE_ADMIN GH_SITE_ADMIN GH_SERIES_ADMIN GH_SERIES_CONTRIB GH_WC_ADMIN GH_WC_USER GH_IMG_ADMIN GH_IMG_USER GH_IMG_TESTABLE GH_IMG_RESTRICT GH_IMG_PUBLISH GH_IMG_VISIBILITY GH_SA GH_CA GH_OPER |
Use the rhpctl add series
command to add a series to the Rapid Home Provisioning Server configuration.
Use the rhpctl add workingcopy
command to create a working copy.
rhpctl add workingcopy -workingcopy workingcopy_name -image image_name [-oraclebase oraclebase_path] [-path absolute_path] [-storagetype {NFS | LOCAL} [-user user_name] [-dbname unique_db_name [-dbtype {RACONENODE | RAC | SINGLE}] [-datafileDestination datafileDestination_path] [-dbtemplate file_path | image_name:relative_file_path {-node node_list | -serverpool server_pool_name [-pqpool pool_name | -newpqpool pool_name -pqcardinality cardinality] | -newpool server_pool_name -cardinality cardinality [-pqpool pool_name | -newpqpool pool_name -pqcardinality cardinality]} [-cdb] [-pdbprefix pdb_prefix [-pdbcount pdb_count]]] [-client cluster_name] [-ignoreprereq]
Table F-6 rhpctl add workingcopy Parameters
Parameter | Description |
---|---|
-workingcopy
workingcopy_name
|
Specify a name for the working copy that you want to create. |
-image image_name
|
Specify the name of a configured image from which to create a working copy. |
-oraclebase
oraclebase_path
|
Specify an Note: This parameter is required only for the |
-path absolute_path
|
Specify the absolute path for provisioning the software home on the client side (this location must be empty). For Oracle Database images, this becomes the Note: You cannot use this parameter if you are provisioning a working copy to a Rapid Home Provisioning Server because, in that case, Oracle ACFS creates a snapshot path within the file system. |
-storagetype {NFS | LOCAL} |
Specify the type of storage for the software home. The default is |
-user user_name
|
Specify the name of the user that will own the working copy being provisioned. If you do not specify this parameter, then the working copy is owned by the user running the command. If you are provisioning to a remote cluster, then the user name must be a valid user on the remote cluster. The user ID need not be the same between the two clusters, but the user name must exist on both. |
-dbname unique_db_name
|
Specify the unique name of the database ( |
-dbtype {RACONENODE | RAC | SINGLE} |
Specify whether the database is Oracle RAC One Node, Oracle RAC, or single instance (non-Oracle RAC). |
-datafileDestination
datafileDestination_path
|
Specify the data file destination location or the name of the Oracle Automatic Storage Management (Oracle ASM) disk group. Notes:
|
-dbtemplate file_path | image_name:relative_file_path |
Specify the absolute path to a database template or the relative path to the image home directory on the Rapid Home Provisioning Server. If you do not specify a database template, then RHPCTL uses the default template. |
-node node_list
|
Specify a node or comma-delimited list of several nodes on which to create the database. Note: This parameter is required when the value of |
-serverpool
server_pool_name
|
Specify the name of an existing server pool. Note: This defaults to the name of the working copy. |
-newpool
server_pool_name
|
Optionally, you can create a new server pool. Specify a name for the new server pool. |
-cardinality cardinality
|
If you create a new server pool, then you must specify a cardinality value for the server pool. |
-pqpool
server_pool_name
|
Specify the name of an existing server pool. Note: This parameter is only applicable in an Oracle Flex Cluster environment and refers to server pools (either already defined as in this case, or to be created when you use the |
-newpqpool
server_pool_name
|
Optionally, you can create a new server pool. Specify a name for the new server pool. Note: This parameter is only applicable in an Oracle Flex Cluster environment because it refers to server pools running on Leaf Nodes. |
-pqcardinality cardinality
|
If you create a new server pool, then you must specify a cardinality value for the server pool. Note: This parameter is only applicable in an Oracle Flex Cluster environment. |
-cdb |
Use this parameter if you want to create the database as a container database (CDB). |
-pdbprefix pdb_prefix
|
Specify the pluggable database (PDB) prefix if you are creating one or more PDBs. |
-pdbcount pdb_count
|
Specify the number of PDBs you want to create. |
-client cluster_name
|
Specify the name of the client cluster. |
You can obtain context sensitive help for specific use cases for the rhpctl add workingcopy
command, as follows:
$ rhpctl add workingcopy -help [REMOTEPROVISIONING | STORAGETYPE | ADMINDB | POLICYDB | DBWITHPQPOOLS | DBTEMPLATE | PDB]
The following example provisions an Oracle Database software home from a gold image:
$ rhpctl add workingcopy -workingcopy workingcopy_name -image image_name -oraclebase oraclebase_path
The following example provisions an Oracle Database software home and creates a policy-managed database from a gold image:
$ rhpctl add workingcopy -workingcopy workingcopy_name -image image_name -oraclebase oraclebase_path -dbname unique_db_name -datafileDestination datafileDestination_path -serverpool pool_name
The following example provisions an Oracle Database software home on a user-specified storage location and creates a policy-managed database:
$ rhpctl add workingcopy -workingcopy workingcopy_name -image image_name -oraclebase oraclebase_path -storagetype LOCAL –path storage_path -dbname unique_db_name -datafileDestination datafileDestination_path -newpool server_pool_name -cardinality cardinality
Note:
If you are provisioning Oracle database software to a Rapid Home Provisioning Client that has been configured with a disk group, then do not specify the-path
parameter, so as to enable the Rapid Home Provisioning Client to use storage provided by Rapid Home Provisioning.
If the Rapid Home Provisioning Client is not configured with a disk group, then specify the -storagetype
parameter with either NFS
or LOCAL
, in addition to specifying the -path
parameter.
This section describes the rhpctl allow image
command.
Use the rhpctl allow image
command to allow access to an image by a user or a role.
rhpctl allow image -image image_name {-user user_name [-client cluster_name] | -role role_name}
Table F-7 rhpctl allow image Parameters
Parameter | Description |
---|---|
-image image_name
|
Specify the name of the image to which you want to allow access. |
-user user_name -client cluster_name | -role role_name |
Specify the either of the following:
|
Use the rhpctl delete client
command to delete a specific Rapid Home Provisioning Client from the configuration.
Use the rhpctl delete database
command to delete a database that was created from a working copy.
Use the rhpctl delete role
command to delete a role from the list of existing roles on the Rapid Home Provisioning Server configuration.
Use the rhpctl delete series
command to delete a series from the Rapid Home Provisioning Server configuration.
Before deleting an image series, you must first remove all images from the series by using the rhpctl deleteimage series
command.
Use the rhpctl delete user
command to delete a user from the Rapid Home Provisioning repository.
You can delete non-built-in users only if that user does not own any working copies.
If the user created an image or image series, then you can still delete the user, but the creator of the image or image series is changed to internal-user@GHS.
If the user was the owner of an image series, then you can delete the user, but the owner of the image series will be changed to internal-user@GHS. You can still use the affected image series as normal, such that you can still provision a working copy from the affected image series, and you can still insert or delete images from the affected image series.
Use the rhpctl delete workingcopy
command to delete an existing working copy.
Use the rhpctl deleteimage series
command to delete an image from a series.
Use the rhpctl disallow image
command to disallow access to an image by a user or a role.
rhpctl disallow image -image image_name {-user user_name [-client client_name] | -role role_name}
Table F-12 rhpctl disallow image Parameters
Parameter | Description |
---|---|
-image image_name
|
Specify the name of the image to which you want to disallow access. |
-user user_name -client cluster_name | -role role_name |
Specify either of the following:
|
Use the rhpctl export client
command to export data from the repository on the Rapid Home Provisioning Server to a client data file.
Use the rhpctl grant role
command to grant a role to a client user or to another role.
rhpctl grant role {–role role_name {-user user_name [-client cluster_name] | -grantee role_name}} | {[-client cluster_name] [-maproles role=user_name[+user_name...] [,role=user_name[+user_name...]...]}
Table F-14 rhpctl grant role Parameters
Parameter | Description |
---|---|
-role role_name
|
Specify the name of the role that you want to grant clients or users. |
-user user_name -client cluster_name |
Specify the name of a user and, optionally, a client cluster to which you want to grant a role. The user name that you specify must be in the form of |
-grantee role_name
|
Use this parameter to specify a role to which you want to grant another role. |
[-client client_name] -maproles role= user_name[+user_name...] |
You can map either built-in roles or roles that you have defined to specific users. Use a plus sign ( |
Use the rhpctl import image
command to create an image by copying the entire software contents from the specified path to the Rapid Home Provisioning Server.
rhpctl import image -image image_name -path path_to_installed_home [-imagetype ORACLEDBSOFTWARE | SOFTWARE] [-owner user_name] [-state {TESTABLE | RESTRICTED | PUBLISHED}]
Table F-15 rhpctl import image Parameters
Parameter | Description |
---|---|
-image image_name
|
Specify the name of the image that you want to add. |
-path path_to_installed_home
|
Specify the absolute path location of the software home that you want to import (for Oracle Database images, this is the |
-imagetype ORACLEDBSOFTWARE|SOFTWARE |
Specify the type of image you are importing. If you are using Oracle Database software, then specify |
-pathowner user_name
|
Specify the user with read access to the files and directories under the specified path. Note: This parameter is applicable only for non-Oracle database software homes. |
-state {TESTABLE | RESTRICTED | PUBLISHED |
Specify whether the state of the image is testable, restricted, or published. |
Use the rhpctl insertimage series
command to insert a new image into a series.
Table F-16 rhpctl insertimage series Parameters
Parameter | Description |
---|---|
-series series_name
|
Specify the name of the series into which you want to insert an image. |
-image image_name
|
Specify the name of the image that you want to insert into a series. |
-before image_name
|
Optionally, you can specify the name of an image before which you want to insert the new image. |
Use the rhpctl move database
command to move one or more databases from a source working copy or any Oracle home to a patched working copy. The patched working copy need not exist and can be created dynamically, in which case you must specify an image name from which to create the patched working copy.
rhpctl move database {-sourcewc workingcopy_name | -sourcehome Oracle_home_path [-oraclebase Oracle_base_path] [-client cluster_name]} -patchedwc workingcopy_name [-dbname unique_db_name] [-nonrolling] [-image image_name] [-path where_path]
Table F-17 rhpctl move database Parameters
Parameter | Description |
---|---|
-sourcewc workingcopy_name
|
Specify the name of the working copy from which the database is to be moved. |
-sourcehome Oracle_home_path
|
Specify the source Oracle home path. |
-oraclebase Oracle_base_path
|
Specify the ORACLE_BASE path for provisioning the Oracle database home (required only for |
-client cluster_name
|
Specify the name of the client cluster. |
-patchedwc workingcopy_name
|
Specify the name of the working copy to where you want to move the database. |
-dbname unique_db_name
|
Specify the unique name of the database ( |
-nonrolling |
Specify this parameter to move the database in a non-rolling mode. By default, databases move in a rolling mode. |
-image image_name
|
Optionally, you can specify the name of the database software image you want to move. |
-path where_path
|
Optionally, you can specify the directory path to where you want to move the database. |
Use the rhpctl modify client
command to modify a client.
rhpctl modify client –client cluster_name [-enabled {TRUE | FALSE}] [-maproles role=user_name[+user_name...][,role=user_name[+user_name...]...] [-password]]
Table F-18 rhpctl modify client Parameters
Parameter | Description |
---|---|
-client cluster_name
|
Specify the name of the client cluster that you want to modify. |
-enabled {TRUE | FALSE} |
Specify whether the client is enabled. |
-maproles role= user_name[+user_name...] |
You can map either built-in roles or roles that you have defined to specific users. Use a plus sign ( |
-password |
Optionally, you can modify the password for the client cluster. |
Use the rhpctl query client
command to display configuration information of a specific Rapid Home Provisioning Client cluster.
Use the rhpctl query image
command to display the configuration information of an existing image.
Use the rhpctl query role
command to display the configuration information of a specific role.
Use the rhpctl query workingcopy
command to display the configuration information of an existing working copy.
Use the rhpctl revoke role
command to revoke a role from a client user.
rhpctl revoke role –role role_name {-user user_name [-client cluster_name] | -grantee role_name} | {[-client cluster_name] [-maproles role=user_name[+user_name...] [,role=user_name[+user_name...]...]}
Table F-23 rhpctl revoke role Parameters
Parameter | Description |
---|---|
-role role_name
|
Specify the name of the role from which you want to revoke clients or users. |
-user user_name -client cluster_name |
Specify the name of a user and, optionally, a client cluster from which you want to revoke a role. The user name that you specify must be in the form of |
-grantee role_name
|
Specify the name of the role. |
[-client client_name] -maproles role= user_name[+user_name...] |
You can map either built-in roles or roles that you have defined to specific users. Use a plus sign ( |
This section lists and describes all SRVCTL commands related to Rapid Home Provisioning.
See Also:
Oracle Real Application Clusters Administration and Deployment Guide for SRVCTL command usage informationAdds a record for an Oracle ASM instance to the entire cluster. This command must be run only one time from the Oracle Grid Infrastructure home.
Notes:
You can only use this command and the parameters described with Oracle Clusterware.
To manage Oracle ASM on Oracle Database 12c installations, use the SRVCTL binary in the Oracle Grid Infrastructure home for a cluster (Grid home). If you have Oracle RAC or Oracle Database installed, then you cannot use the SRVCTL binary in the database home to manage Oracle ASM.
See Also:
Oracle Database Administrator's Guide for other command parameters that you can use with Oracle RestartUse the srvctl add asm
command with the following syntax:
srvctl add asm [-listener listener_name] [-pwfile password_file_path [-remote [-count {number_of_instances | ALL}] | -proxy]
Table F-24 srvctl add asm Parameters
Parameter | Description |
---|---|
-listener listener_name
|
Enter the name of a listener. If you do not specify this parameter, then the listener name defaults to |
-pwfile password_file_path
|
Enter the full path to the location of the password file on Oracle ASM. |
-remote [-count {number_of_instances |ALL}] | -proxy] |
Indicates that the Oracle ASM instances are configured as Oracle Flex ASM instances. You can optionally specify the number of Oracle ASM instances to create or that an Oracle ASM instance should be created on all nodes. Additionally, you can specify the |
Creates an export file system configuration in Oracle Clusterware.
Note:
This command is only available with Oracle Clusterware.Use the srvctl add exportfs
command with the following syntax:
srvctl add exportfs -name unique_name -id havip_name -path path_to_export [-clients nfs_client_string] [-options nfs_client_string]
Table F-25 srvctl add exportfs Parameters
Parameter | Description |
---|---|
-name unique_name
|
Enter a unique name for the NFS export you are creating. This parameter is required. |
-id havip_name
|
Enter the number or name that identifies an existing HAVIP, that you specified in the |
-path path_to_export
|
Enter the path to the Oracle Automatic Storage Management Cluster File System (Oracle ACFS) that you want to export. This parameter is required. |
-clients nfs_client_string -options nfs_client_string |
Optionally, enter a comma-delimited list of clients to which you want the file system exported. You can enter net groups and wildcards. For example: -clients @netgroup1, *.us.domain.com, 16.140.0.0, hostname1 Note: You can use the |
Adds a device containing a file system (Oracle Automatic Storage Management Cluster File System (Oracle ACFS) or other) to the Oracle Clusterware stack for automount and high availability. This command must be run only one time from the Oracle Grid Infrastructure home.
An Oracle ACFS file system resource is typically created for use with application resource dependency lists. For example, if an Oracle ACFS file system is configured for use as an Oracle Database home, then a resource created for the file system can be included in the resource dependency list of the Oracle Database application. This will cause the file system and stack to be automatically mounted because of the start action of the database application.
Notes:
Use this command only with Oracle Clusterware.
To manage Oracle ACFS on Oracle Database 12c installations, use the SRVCTL binary in the Oracle Grid Infrastructure home for a cluster (Grid home). If you have Oracle RAC or Oracle Database installed, then you cannot use the SRVCTL binary in the database home to manage Oracle ACFS.
Use the srvctl add filesystem
command with the following syntax:
srvctl add filesystem -device volume_device -path mountpoint_path [-volume volume_name] [-diskgroup disk_group_name] [-node node_list | -serverpool server_pool_list] [-user user_list] [-fstype {ACFS | EXT3 | EXT4}] [-fsoptions options] [-description description] [-appid application_id] [-autostart {ALWAYS | NEVER | RESTORE}]
Note:
Oracle supports theEXT3
and EXT4
values for the -fstype
parameter only for Linux.Table F-26 srvctl add filesystem Parameters
Parameter | Description |
---|---|
-device volume_device
|
Specify the path to the file system volume device you want to add. |
-path mountpoint_path
|
Specify the mount point path that is used to set up dependencies on other resources for nested mounts. This must be an absolute path. |
-volume volume_name |
Specify the name of the volume. |
-diskgroup disk_group_name
|
The name of the Oracle ACFS disk group to which you want to add the device. |
-node node_list |
-serverpool server_pool_list
|
Specify a comma-delimited list of nodes on which to mount the file system device. If you specify a list of nodes or a server pool, then SRVCTL creates a single-node file system resource. Without any nodes or server pools, SRVCTL creates a file system resource that runs on every cluster node. Specify a comma-delimited list of server pools in which a file system will run. If you specify a list of server pools, then you dynamically limit the number or type of nodes on which a file system will run. Note that this does not count as a clusterwide file system for later usage that may require a clusterwide Oracle ACFS resource, such as HANFS. Note: Nodes and server pools are mutually exclusive. |
-user user_list
|
Specify a comma-delimited list of users authorized to mount and unmount the file system. If you specify no users, then only |
-fstype {ACFS | EXT3 | EXT4} |
Specify the type of file system to be mounted. The default value is If the type of file system to be mounted is not |
-fsoptions options
|
Specify options used to mount the file system. The options are file system and operating system dependent. |
-description description
|
Specify a description of the file system. This is stored as an attribute for later viewing by an administrator. |
-appid application_id
|
Specify an application ID, which is a unique identifier used to group file systems into logical groupings. This method is used to group file systems that may be different on different nodes but are used by an application that must have a dependency on the resource type, which is |
-autostart {ALWAYS | NEVER | RESTORE} |
Specify the file system resource autostart policy.
|
You must run this command as root
user on Linux and UNIX platforms, or as an Administrator user on Windows platforms.
To add the d1volume1-295
disk device in the disk group RAC_DATA
as the Oracle ACFS volume VOLUME1
with a mount point of /oracle/cluster1/acfs
:
# srvctl add filesystem -device /dev/asm/d1volume1-295 -path /oracle/cluster1/acfs1
To add an Oracle ACFS file system on the dynamic volume device asm-test-55
, with this file system mounted on one of the specified nodes at a time:
# srvctl add filesystem -fstype ACFS -device asm-test-55 -path myacfs -node node1,node2,node3
Use this command to add the Grid Naming Service (GNS) to a cluster when you are using a DHCP public network or to create a client cluster.
Note:
Use this command only with Oracle Clusterware.Use the srvctl add gns
command with one of the following syntax models:
To add GNS to a cluster that is not currently running GNS:
srvctl add gns [-domain domain_name] -vip {vip_name | ip_address} [-verbose]
To change a cluster that is not running GNS to be a client cluster of another cluster that is running GNS:
srvctl add gns -clientdata file_name
Table F-27 srvctl add gns Parameters
Parameter | Description |
---|---|
-domain domain_name
|
The network subdomain that is used for Forward DNS Lookup of cluster IP addresses. You can only use this parameter if you specify If you do not specify |
-vip {vip_name |ip_address} |
Specify either the virtual IP (VIP) name or IP address on which GNS listens for DNS requests. You cannot use Use the |
-clientdata path_to_file
|
Specify the path to the file you created with the The cluster to which you add GNS using You cannot use the |
-verbose |
Verbose output |
You must run this command as root
user on Linux and UNIX platforms, or as an Administrator user on Windows platforms.
When you are adding GNS to a cluster for the first time, use the -vip
parameter with the -domain
parameter.
When you are adding GNS to a cluster using the -clientdata
parameter, you must first export the GNS data to a file and manually copy the file to a node in the cluster you are adding. Use the -clientdata
parameter and run this command on any node in the cluster.
You cannot specify the -vip
and -clientdata
parameters at the same time.
Adds a management database (CHM repository) resource to the cluster.
Note:
Use this command only with Oracle Clusterware.Adds a management listener resource (for Cluster Health Monitor) to the cluster.
Note:
Use this command only with Oracle Clusterware.Use the srvctl add mgmtlsnr
command with the following syntax:
srvctl add mgmtlsnr [-endpoints "[TCP:]port_list[/IPC:key][/NMP:pipe_name [/TCPS:s_port][/SDP:port]"] [-skip]]
Table F-29 srvctl add mgmtlsnr Parameters
Parameter | Description |
---|---|
-endpoints "[TCP:]port_list [/IPC:key][/NMP:pipe_name [/TCPS:s_port][/SDP:port]] |
Protocol specifications for the listener. |
-skip |
Indicates you want to skip the checking of ports. |
Adds Network Attached Storage (NAS) configuration to Oracle Clusterware.
Note:
Use this command only with Oracle Clusterware.Use the srvctl add mountfs
command with the following syntax:
srvctl add mountfs -name mountfs_name -path mount_path -exportserver server_name -exportpath path [-mountoptions mount_options] [-user user]
Table F-30 srvctl add mountfs Command Parameters
Parameter | Description |
---|---|
-name mountfs_name
|
Specify a unique name for the NAS. |
-path mount_path
|
Specify a mount path for the NAS. |
-exportserver server_name
|
Specify a name for the export server. |
-exportpath path
|
Specify an export file path. |
-mountoptions mount_options
|
Optionally, you can specify mount options for the NAS. |
-user user_name
|
Optionally, you can specify a user authorized to mount and dismount the NAS. |
Use this command to add a Rapid Home Provisioning Client configuration file to the Oracle Clusterware configuration.
Use the srvctl add rhpclient
command with the following syntax:
srvctl add rhpclient -clientdata path_to_file [-diskgroup disk_group_list -storage base_path]
Notes:
This command is only available with Oracle Clusterware.
This command does not create an Oracle Clusterware resource.
Table F-31 srvctl add rhpclient Parameters
Parameter | Description |
---|---|
-clientdata
path_to_file
|
Specify the path to the file that contains the Rapid Home Provisioning Client data |
-diskgroup
disk_group_list
|
Specify a list of disk groups to create the Oracle ACFS file system for storing images. |
-storage base_path
|
Specify a location that is available on all cluster nodes and that is used for mounting an Oracle ACFS that you create for image storage on the Rapid Home Provisioning Client. |
You cannot run this command on a Rapid Home Provisioning Server.
You must be root
user on Linux and UNIX platforms, or as an Administrator user on Windows platforms, to run this command.
You must have a configured Oracle ACFS if you specify the -storage
parameter.
The default user is the user that installed Oracle Clusterware, and this user gets added to the user list.
Use this command to add a Rapid Home Provisioning Server to the Oracle Clusterware configuration.
Use the srvctl add rhpserver
command with the following syntax:
srvctl add rhpserver -storage base_path -diskgroup disk_group_name
Note:
This command is only available with Oracle Clusterware.Table F-32 srvctl add rhpserver Parameters
Parameter | Description |
---|---|
-storage base_path
|
Specify a location that is available on all cluster nodes. It is not necessary that this location be shared. The catalog for the server is kept in this location and all the image file systems are mounted on |
-diskgroup
disk_group_list
|
Specify a particular disk group from which to create the Oracle ACFS file system for storing images. |
Displays the configuration for all Oracle ASM instances.
Notes:
Use this command only with Oracle Clusterware.
To manage Oracle ASM on Oracle Database 12c installations, use the SRVCTL binary in the Oracle Grid Infrastructure home for a cluster (Grid home). If you have Oracle RAC or Oracle Database installed, then you cannot use the SRVCTL binary in the database home to manage Oracle ASM.
Displays the configuration for an export file system in Oracle Clusterware.
Note:
Use this command only with Oracle Clusterware.Use the srvctl config exportfs
command with the following syntax:
srvctl config exportfs [-name unique_name | -id havip_name]
If you specify the -name
parameter, then this command returns output similar to the following, whether you specify -name
or -id
:
$ srvctl config exportfs -id havip1 export file system kep1 is configured Exported path: /scratch/ghnew/base/mymount3 Export options: Exported clients: export file system kexp2 is configured Exported path: /scratch/ghnew/base/mymount3 Export options: Exported clients:
Displays the configuration for a specific file system resource.
Note:
Use this command only with Oracle Clusterware.Displays the configuration for GNS.
Note:
Use this command only with Oracle Clusterware.Use the srvctl config gns
command with the following syntax:
srvctl config gns [-subdomain] [-multicastport] [-node node_name] [-port] [-status] [-version] [-query name] [-list] [-clusterguid] [-clustername] [-clustertype] [-loglevel] [-network] [-detail]
Table F-35 srvctl config gns Parameters
Parameter | Description |
---|---|
-subdomain |
Display the subdomain served by GNS. |
-multicastport |
Display the port on which the GNS daemon is listening for multicast requests. |
-node node_name
|
Display the configuration information for GNS on the specified node. |
-port |
Display the port that the GNS daemon uses to communicate with the DNS server. |
-status |
Display the status of GNS. |
-version |
Display the version of GNS. |
-query name
|
Query GNS for the records belonging to a specific name. |
-list |
List all records in GNS. |
-clusterguid |
Display the globally unique identifier of the cluster where GNS is running. |
-clustername |
Display the name of the cluster where GNS is running. |
-clustertype |
Display the type of configuration of GNS on this cluster. |
-loglevel |
Print the log level of the GNS. |
-network |
Display network on which GNS is listening. |
-detail |
Print detailed configuration information about the GNS. |
Displays configuration information for the management database (CHM repository) resource.
Note:
Use this command only with Oracle Clusterware.Displays configuration information for the management listener resource (for CHM).
Note:
Use this command only with Oracle Clusterware.Displays the configuration information for a specific NAS.
Note:
Use this command only with Oracle Clusterware.Use this command to display configuration information for a Rapid Home Provisioning Client instance.
Use the srvctl config rhpclient
command with the following syntax:
srvctl config rhpclient
Note:
This command is only available with Oracle Clusterware.This command returns output similar to the following:
$ srvctl config rhpclient
Rapid Home Provisioning Client is configured
Cluster name: mjk9394
Storage base path: /scratch/aime/storage
Disk group: MJKRHPCDG
Rapid Home Provisioning Server (RHPS): mjk8990clust
Rapid Home Provisioning Server discovery string: 198.51.100.191
Port number: 23795
Rapid Home Provisioning Client is enabled
Rapid Home Provisioning Client is individually enabled on nodes:
Rapid Home Provisioning Client is individually disabled on nodes:
Use this command to display configuration information for a Rapid Home Provisioning Server.
Use the srvctl config rhpserver
command with the following syntax:
srvctl config rhpserver
Note:
This command is only available with Oracle Clusterware.This command returns output similar to the following:
$ srvctl config rhpserver
Storage base path: /scratch/aime/storagedg
Disk Groups: MJKRHPSDG
Port number: 23795
Rapid Home Provisioning Server is enabled
Rapid Home Provisioning Server is individually enabled on nodes:
Rapid Home Provisioning Server is individually disabled on nodes:
Disables the Oracle ASM proxy resource. Oracle ASM will restart if it contains Oracle Clusterware data or if the node restarts and it was running before the node failed. The srvctl disable asm
command also prevents the srvctl start asm
command from starting Oracle ASM instances.
Disabling the Oracle ASM proxy resource prevents the databases and disk groups from starting because they depend on the Oracle ASM proxy resource.
Notes:
To manage Oracle ASM on Oracle Database 12c installations, use the SRVCTL binary in the Oracle Grid Infrastructure home for a cluster (Grid home). If you have Oracle RAC or Oracle Database installed, then you cannot use the SRVCTL binary in the database home to manage Oracle ASM.
Oracle ASM is part of the Oracle Clusterware stack and when OCR and voting files are stored on Oracle ASM, then Oracle ASM starts when OHASD starts the Oracle Clusterware stack. The srvctl disable asm
command does not prevent the Oracle ASM instance managed by OHASD from starting. Oracle ASM, therefore, starts as needed by the Oracle Clusterware stack.
The srvctl disable asm
command prevents the Oracle ASM Oracle Clusterware proxy resource, and any resources that depend on it, from starting. So, the command prevents Oracle Clusterware-managed objects, such as databases, disk groups, and file systems that depend on Oracle ASM, from starting. For example, the srvctl start database | diskgroup | filesystem
command fails to start any of those objects on nodes where the Oracle ASM Oracle Clusterware proxy resource is disabled. The command also prevents the srvctl start asm
command from starting Oracle ASM on remote nodes.
Disables an export file system managed by Oracle Clusterware.
Note:
Use this command only with Oracle Clusterware.Disables the specified NAS from Oracle Clusterware management.
Note:
This command is only available with Oracle Clusterware.Use this command to disable a Rapid Home Provisioning Client instance on a specific node from Oracle Clusterware management.
Use this command to disable a Rapid Home Provisioning Server on a specific node from Oracle Clusterware management.
Enables an export file system configuration in Oracle Clusterware.
Note:
This command is only available with Oracle Clusterware.Enables the specified Network Attached Storage (NAS) for Oracle Clusterware management.
Note:
This command is only available with Oracle Clusterware.Use this command to enable a Rapid Home Provisioning Client instance on a specific node.
Use the srvctl enable rhpclient
command with the following syntax:
srvctl enable rhpclient [-node node_name]
You can optionally specify the node on which you want to enable the Rapid Home Provisioning Client instance. If you do not specify a node, then SRVCTL enables all of the Rapid Home Provisioning Clients in the Oracle Clusterware configuration.
Note:
This command is only available with Oracle Clusterware.Use this command to enable a Rapid Home Provisioning Server on a specific node.
Use the srvctl enable rhpserver
command with the following syntax:
srvctl enable rhpserver [-node node_name]
Specify the node on which you want to enable the Rapid Home Provisioning Server. If you do not specify a node, then SRVCTL enables all of the Rapid Home Provisioning Servers in the Oracle Clusterware configuration.
Note:
This command is only available with Oracle Clusterware.Modifies an export file system configuration in Oracle Clusterware.
Note:
This command is only available with Oracle Clusterware.Use the srvctl modify exportfs
command with the following syntax:
srvctl modify exportfs -name unique_name [-path path_to_export] [-clients node_list] [-options nfs_options_string]
Table F-44 srvctl modify exportfs Parameters
Parameter | Description |
---|---|
-name unique_name
|
Enter the unique name of the NFS export file system to modify. This parameter is required. |
-path path_to_export
|
You can modify the path to the Oracle Automatic Storage Management Cluster File System (Oracle ACFS) where the export is located. |
-clients node_list
|
You can modify the comma-delimited list of clients (hosts) to where the file system is exported. You can enter net groups and wildcards. For example: -clients @netgroup1, *.us.domain.com, 16.140.0.0, hostname1 Note: You can use the |
|
Use this parameter to modify the export options for the exportfs file system. |
Modifies Network Attached Storage (NAS) configuration in Oracle Clusterware.
Note:
This command is available only with Oracle Clusterware.Use the srvctl modify mountfs
command with the following syntax:
srvctl modify mountfs -name mountfs_name [-path mount_path] [-exportserver server_name] [-exportpath path] [-mountoptions mount_options] [-user user]
Table F-45 srvctl modify mountfs Command Parameters
Parameter | Description |
---|---|
-name mountfs_name
|
Specify a unique name for the NAS you want to modify. |
-path mount_path
|
Modify the mount path for the NAS. |
-exportserver server_name
|
Modify the name of the export server. |
-exportpath path
|
Modify the export file path. |
-mountoptions mount_options
|
Modify mount options for the NAS. |
-user user_name
|
Modify the user authorized to mount and dismount the NAS. |
Use this command to change the locations of the client data and image storage for the Rapid Home Provisioning Client.
Use this command to modify the storage for a Rapid Home Provisioning Server.
Use the srvctl modify rhpserver
command with the following syntax:
srvctl modify rhpserver -storage base_path [-port rmi_port] [-force]
Note:
This command is only available with Oracle Clusterware.Table F-47 srvctl modify rhpserver Parameters
Parameter | Description |
---|---|
-storage base_path
|
Specify the new location that is available on all cluster nodes and that is used for mounting an Oracle ACFS that you create for image storage on the Rapid Home Provisioning Server |
-port rmi_port
|
Modifies the RMI port number used by the Rapid Home Provisioning Server |
-force |
This option stops and restarts the resource to effect a change |
Use this command to relocate a Rapid Home Provisioning Client instance to a different node.
Use this command to relocate a Rapid Home Provisioning Server to a different node.
Removes the specified export file system configuration.
Note:
This command is only available with Oracle Clusterware.Use the srvctl remove exportfs
command with the following syntax:
srvctl remove exportfs -name exportfs_name [-force]
You must run this command as root
user on Linux and UNIX platforms.
If you do not use the -force
parameter, then you must first stop the NFS export you want to remove before you remove it.
If you use the -force
parameter, the resulting configuration can cause errors when attempting to shut down the Oracle Clusterware stack.
Removes a specific NAS configuration.
Note:
This command is only available with Oracle Clusterware.Use this command to remove a Rapid Home Provisioning Client instance.
Note:
This command is only available with Oracle Clusterware.Use this command to remove a Rapid Home Provisioning Server instance configured for the cluster.
Note:
This command is only available with Oracle Clusterware.Starts an export file system configuration in Oracle Clusterware.
Note:
This command is only available with Oracle Clusterware.Mounts a specific NAS.
Note:
This command is only available with Oracle Clusterware.Use this command to start a Rapid Home Provisioning Client instance on one or more nodes.
Note:
This command is only available with Oracle Clusterware.Use the srvctl start rhpclient
command with the following syntax:
srvctl start rhpclient [-node node_name]
Specify the node on which you want to start the Rapid Home Provisioning Client instance. If you do not specify a node, then Oracle Clusterware determines the node where the Rapid Home Provisioning Client is to be started. The Rapid Home Provisioning Client resource has cardinality of 1 and Oracle Clusterware decides the placement when the Rapid Home Provisioning Client resource is started.
Use this command to start a Rapid Home Provisioning Server on a specific node.
Note:
This command is only available with Oracle Clusterware.Displays the status of an export file system configuration.
Note:
This command is only available with Oracle Clusterware.Use the srvctl status exportfs
command with the following syntax:
srvctl status exportfs [-name unique_name | -id havip_name]
Table F-52 srvctl status exportfs Parameters
Parameter | Description |
---|---|
-name unique_name
|
Enter the unique name of the NFS export for which you want to display the status. |
-id havip_name
|
Optionally, you can specify the name of an HAVIP resource and display the status of all of the NFS exports associated with the specified HAVIP resource. |
Displays the current state of a specific NAS.
Note:
This command is only available with Oracle Clusterware.Displays the current state of a Rapid Home Provisioning Client instance.
Note:
This command is only available with Oracle Clusterware.Displays the current state of a Rapid Home Provisioning Server.
Note:
This command is only available with Oracle Clusterware.Use this command to stop an export file system configuration managed by Oracle Clusterware.
Note:
This command is only available with Oracle Clusterware.Use the srvctl stop exportfs
command with the following syntax:
srvctl stop exportfs {-name unique_name | -id havip_name} [-force]
Table F-53 srvctl stop exportfs Parameters
Parameter | Description |
---|---|
-name unique_name
|
Enter the unique name of the NFS export to stop. |
-id havip_name
|
If you specify this parameter, then SRVCTL stops all of the NFS exports associated with the HAVIP resource you specify. |
|
Stop the NFS export, ignoring errors |
Unmounts a specific NAS.
Note:
This command is only available with Oracle Clusterware.Use this command to stop a Rapid Home Provisioning Client instance that is in a running or starting state.
Note:
This command is only available with Oracle Clusterware.Use this command to stop a Rapid Home Provisioning Server that is in a running or starting state.
Note:
This command is only available with Oracle Clusterware.