Corente Setup on Paas OCI instances

Quick snippet for corente setup, the Corente gateway server is supposed to be running, and both files oc_config_corente-tunnel and corente-tunnel-args, properly configured, are supposed to have been staged on the VMs, under the OPC account:

sudo cp oc-config-corente-tunnel /usr/bin
sudo chmod 550 /usr/bin/oc-config-corente-tunnel 
sudo yum install bind-utils
sudo mkdir /var/log/opc-compute
sudo chmod +x /etc/rc.d/rc.local
sudo vi /etc/rc.d/rc.local

add the following line to the rc.local file

bash /usr/bin/oc-config-corente-tunnel

Implement corente by restarting the cloud service, rebooting the VM, or by running

sudo bash /usr/bin/oc-config-corente-tunnel




Iaas on Exalogic – Basic

Setting up the environment context

export IAAS_HOME=/opt/oracle/iaas/cli
export JAVA_HOME=/usr/java/jdk1.7.0_131

List of the accounts

$IAAS_HOME/bin/akm-describe-accounts --base-url --user root

ACC-92ccdae3-db60-4136-bbb8-1aa5ac55f28b user1 root 
ACC-20c39677-3be9-43be-990d-107fdcba0d65 user2 root
ACC-2b245e72-3fb7-4be6-9b88-da6890b9ab88 user3 root

Generate the key file

$IAAS_HOME/bin/akm-create-access-key --base-url --user root --account ACC-20c39677-3be9-43be-990d-107fdcba0d65 --access-key-file ak-user2.file

password for user root: 

List the templates

$IAAS_HOME/bin/iaas-describe-server-templates --base-url https://localhost:9443/ -a ak-user2.file -H
id name description status size public imageType readOnly
TMPL-c372a32c-652b-422a-927c-cc9003960480 OL6U8_20171016 OL6u8 with complete setup OK -1 false VMTemplate false

List of the server types

$IAAS_HOME/bin/iaas-describe-vserver-types --base-url https://localhost:9443/ -a ak-user2.file 
2296 EXTRA_LARGE Virtual Machine extra-large instance type for vDC xxxxCloud 17179869184 16 4 
2295 LARGE Virtual Machine large instance type for vDC xxxxCloud 8589934592 8 2 
2294 SMALL Virtual Machine small instance type for vDC xxxxCloud 4294967296 4 1


Extending block storage on IaaS OPC

Quick note to create and mount a storage volume

To create and mount a logical volume on a new block storage volume, process as below, typically for /dev/xvdc

pvcreate /dev/xvdc1
vgcreate vg_oracle /dev/xvdc1
lvcreate -l 20 -n lv_oracle vg_oracle
lvextend --extents +100%FREE /dev/vg_oracle/lv_oracle
e2fsck -f /dev/vg_oracle/lv_oracle
mkfs.ext4 /dev/vg_oracle/lv_oracle -L oracle
mkdir -p /u01/app/oracle
mount /dev/mapper/vg_oracle-lv_oracle /u01
chown oracle:oinstall /u01/app/oracle

To extend the root logical volume:

pvcreate /dev/xvdc1
vgextend vg_main /dev/xvdc1 
lvextend --extents +100%FREE /dev/vg_main/lv_root
resize2fs /dev/vg_main/lv_root