This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
GH_ROLE_ADMIN An administrative role for everything related to roles
GH_SITE_ADMIN An administrative role for everything related to Rapid Home Provisioning Clients
GH_WC_ADMIN An administrative role for everything related to working copies
GH_IMG_ADMIN An administrative role for everything related to images
GH_SERIES_ADMIN An administrative role for everything related to image series
GH_WC_USER A role that enables users to create a working copy
GH_IMG_USER A role that enables users to create an image
GH_WC_OPER A role that enables users to create a working copy for themselves or others
GH_SERIES_CONTRIB Users assigned this role can add images to a series
GH_IMG_TESTABLE A role that enables users to add a working copy only when an image is in the TESTABLE state
GH_IMG_RESTRICT A role that enables users to add a working copy only when an image is in the RESTRICTED state
GH_IMG_PUBLISH Users assigned this role can promote an image to another state or retract an image from the PUBLISHED state to either the TESTABLE or RESTRICTED state
GH_IMG_VISIBILITY sers assigned this role can modify access to promoted or published images using the rhpctl allow | disallow image commands
Add Images to RHP Serveroracle@sonic01:~/ [+ASM1] rhpctl import image -image rdbms_12102_V0100 -path /u01/app/oracle/product/12.1.0.2 -imagetype ORACLEDBSOFTWARE -state TESTABLEsonic01: Creating a new ACFS file system for image "rdbms_12102_V0100" ...sonic01: Copying files...sonic01: Copying home contents...sonic01: Changing the home ownership to user oracle...sonic01: Transferring data to 1 nodessonic01: 10% completesonic01: 20% completesonic01: 30% completesonic01: 40% completesonic01: 50% completesonic01: 60% completesonic01: 70% completesonic01: 80% completesonic01: 90% completesonic01: 100% completesonic01: Changing the home ownership to user oracle...oracle@sonic01:~/ [+ASM1]
Delete Image in Seriesrhpctl deleteimage series -series <series_name> -image <image_name>
Allow or Disallow provisioning to specific client or rolerhpctl <allow or disallow> image -image <image_name> {-user <username> [-client <cluster_name>] | [...]}
oracle@sonic03:~/ [grinf12102_a] rhpctl add workingcopy -workingcopy rdbms_12102_WC2 -image rdbms_12102_V0100 -storagetype NFS -path /u01/app/oracle/product/12.1.0.2_2 -oraclebase /u01/app/oraclesonic04.trivadis.com: Starting server-side action for 'add workingcopy'...sonic01: Adding storage for working copy ...sonic01: Storing metadata in repository for working copy "rdbms_12102_WC2" ...sonic01: Finding ACFS file system of the image "rdbms_12102_V0100" ...sonic01: Creating snapshot ...sonic01: Adding user "oracle" to ACFS file system "/dev/asm/ghvol418175-146"...sonic01: Adding export file system for image "rdbms_12102_WC2" ...sonic01: Starting export file system...sonic04.trivadis.com: Server-side action completed.sonic04.trivadis.com: Mounting file system...sonic04.trivadis.com: Changing the home ownership to user oracle and group oinstall...sonic04.trivadis.com: Starting clone operation...========================================sonic04.trivadis.com:./runInstaller -clone -waitForCompletion -force "ORACLE_HOME=/u01/app/oracle/product/12.1.0.2_2" "ORACLE_HOME_NAME="rdbms_12102_WC2"" "ORACLE_BASE="/u01/app/oracle"" "CLUSTER_NODES={sonic03,sonic04}" -cfs -local -silent -paramFile /u01/app/oracle/product/12.1.0.2_2/clone/clone_oraparam.iniStarting Oracle Universal Installer...
Checking Temp space: must be greater than 500 MB. Actual 22032 MB PassedChecking swap space: must be greater than 500 MB. Actual 7904 MB PassedPreparing to launch Oracle Universal Installer from /tmp/OraInstall2015-09-07_11-26-22AM. Please wait ...You can find the log of this install session at: /u01/app/oraInventory/logs/cloneActions2015-09-07_11-26-22AM.log.................................................. 5% Done................................................... 10% Done.
Checking Temp space: must be greater than 500 MB. Actual 22032 MB PassedChecking swap space: must be greater than 500 MB. Actual 7904 MB PassedPreparing to launch Oracle Universal Installer from /tmp/OraInstall2015-09-07_11-26-22AM. Please wait ...You can find the log of this install session at: /u01/app/oraInventory/logs/cloneActions2015-09-07_11-26-22AM.log.................................................. 5% Done................................................... 10% Done..................................................... 85% Done...........Copy files in progress.Copy files successful.
Link binaries in progress.Link binaries successful.
Setup files in progress.Setup files successful.
Setup Inventory in progress.Setup Inventory successful.Finish Setup successful.The cloning of rdbms_12102_WC2 was successful.
RHP Mgmt – Provisioning (add workingcopy) (3)Setup Inventory in progress.Setup Inventory successful.Finish Setup successful.The cloning of rdbms_12102_WC2 was successful.Please check '/u01/app/oraInventory/logs/cloneActions2015-09-07_11-26-22AM.log' for more details.
Setup Oracle Base in progress.Setup Oracle Base successful................................................... 95% Done.
As a root user, execute the following script(s): 1. /u01/app/oracle/product/12.1.0.2_2/root.sh
Execute /u01/app/oracle/product/12.1.0.2_2/root.sh on the following nodes:[sonic04]
Checking swap space: must be greater than 500 MB. Actual 7618 MB PassedThe inventory pointer is located at /etc/oraInst.loc'AttachHome' was successful.sonic04.trivadis.com: Successfully executed attach home operation.
RHP Mgmt – Provisioning (add workingcopy) How is the Oracle Home mounted ?oracle@sonic03:~/ [grinf12102_a] mount/dev/sda3 on / type ext4 (rw)proc on /proc type proc (rw)sysfs on /sys type sysfs (rw)devpts on /dev/pts type devpts (rw,gid=5,mode=620)tmpfs on /dev/shm type tmpfs (rw)/dev/sda1 on /boot type ext4 (rw)none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)sunrpc on /var/lib/nfs/rpc_pipefs type rpc_pipefs (rw)nfsd on /proc/fs/nfsd type nfsd (rw)192.168.56.202:/u01/app/rhp_dir/images/irdbms_12102_V0100916973/.ACFS/snaps/wrdbms_12102_WC2/swhome on /u01/app/oracle/product/12.1.0.2_2 type nfs (rw,bg,hard,nointr,rsize=32768,wsize=32768,tcp,vers=3,timeo=600,actimeo=0,addr=192.168.56.202)
Example of deleting NFS Workingcopy oracle@sonic03:/u01/app/oracle/product/ [grinf12102_a] rhpctl delete workingcopy -workingcopy rdbms_12102_WC2sonic01.trivadis.com: Stopping export file system ...sonic01.trivadis.com: Removing export file system ...sonic01.trivadis.com: Removing storage for working copy ...sonic01.trivadis.com: Deleting snapshot for working copy "rdbms_12102_WC2" with working copy path "/u01/app/rhpdir/images/irdbms_12102_V0100811262/.ACFS/snaps/wrdbms_12102_WC2/swhome" ...
RHP Mgmt – Patch Database oracle@sonic03: [grinf12102_a] rhpctl move database -sourcewc rdbms_12102_WC5 -patchedwc rdbms_12102_WC6 -dbname tvd99sonic04.trivadis.com: Starting to move database from "/u01/app/oracle/product/12.1.0.2_5" to "/u01/app/oracle/product/12.1.0.2_6" on client clustersonic04.trivadis.com: Transferring data to 2 nodessonic04.trivadis.com: 100% completesonic04.trivadis.com: starting to move the following databases: "tvd99"========================================sonic04.trivadis.com:<HLP_ERES>0</HLP_ERES>========================================sonic04.trivadis.com:SQL Patching tool version 12.1.0.2.0 on Tue Sep 8 17:10:42 2015Copyright (c) 2015, Oracle. All rights reserved.Connecting to database...OKDetermining current state...doneAdding patches to installation queue and performing prereq checks...doneInstallation queue: Nothing to roll back The following patches will be applied: 20831110 (Database Patch Set Update : 12.1.0.2.4 (20831110))
Installing patches...Patch installation complete. Total patches installed: 1
Validating logfiles...doneSQL Patching tool complete on Tue Sep 8 17:14:20 2015sonic04.trivadis.com: Completed the 'move database' operation on client clusteroracle@sonic03: [grinf12102_a]