Git Product home page Git Product logo

bms-toolkit's Introduction

bms-toolkit

Toolkit for installing and creating an initial Oracle database on Bare Metal Solution.

Quick Start

  1. Create a Google Cloud VM to act as a control node; it should be on a VPC network that has SSH access to the database hosts.
  2. Extract the toolkit code on the control node.
  3. Create a Cloud Storage bucket to host Oracle software images.
    gsutil mb -b on gs://installation-media-1234
  4. Download software from Oracle and populate the bucket. Use check-swlib.sh to determine which files are required for your Oracle version.
  5. Create an SSH key, and populate to an Ansible user on each database host.
  6. Create a JSON file db1_asm.json with ASM disk devices:
    [{
      "diskgroup": "DATA",
      "disks": [
        { "name": "DATA_1", "blk_device": "/dev/mapper/3600a098038314352502b4f782f446155" },
      ]},
     {
      "diskgroup": "RECO",
      "disks": [
        { "name": "RECO_1", "blk_device": "/dev/mapper/3600a098038314352502b4f782f446162" },
      ]}
    ]
  7. Create a JSON file db1_mounts.json with disk mounts:
    [
        {
            "purpose": "software",
            "blk_device": "/dev/mapper/3600a098038314352502b4f782f446161",
            "name": "u01",
            "fstype":"xfs",
            "mount_point":"/u01",
            "mount_opts":"nofail"
        }
    ]
  8. Execute install-oracle.sh:
    bash install-oracle.sh \
    --ora-swlib-bucket gs://installation-media-1234 \
    --instance-ssh-user ansible \
    --instance-ssh-key ~/.ssh/id_rsa \
    --backup-dest /u01/rman \
    --ora-swlib-path /u01/oracle_install \
    --ora-version 19 \
    --ora-swlib-type gcs \
    --ora-asm-disks db1_asm.json \
    --ora-data-mounts db1_mounts.json \
    --ora-data-diskgroup DATA \
    --ora-reco-diskgroup RECO \
    --ora-db-name orcl \
    --instance-ip-addr 172.16.1.1

Full documentation is available in the user guide

Destructive cleanup

An Ansible role and playbook performs a destructive brute-force removal of Oracle software and configuration. It does not remove other host prerequisites.

Run the destructive brute-force Oracle software removal with cleanup-oracle.sh or ansible-playbook brute-cleanup.yml

Contributing to the project

Contributions and pull requests are welcome. See docs/contributing.md and docs/code-of-conduct.md for details.

The fine print

This product is licensed under the Apache 2 license. This is not an officially supported Google project

bms-toolkit's People

Contributors

alex-basinov avatar amadel8 avatar bjoernrost avatar bpj146 avatar cofin avatar freddenispythian avatar jcnars avatar mfielding avatar muresan avatar nasmart avatar pythiangoryunov avatar rachelhmyang avatar simonpane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

bms-toolkit's Issues

New Feature: Log the exact terminal output in a separate Log file

Usecase: I would like to review this section later on changing any parameters for testing

[]$ ./install-oracle.sh --ora-swlib-bucket gs://bucket --backup-dest /u01/ --allow-install-on-vm --no-patch --cluster-type NONE --ora-reco-diskgroup DATA
Command used:
./install-oracle.sh --ora-swlib-bucket gs://bucket --backup-dest /u01/ --allow-install-on-vm --no-patch --cluster-type NONE --ora-reco-diskgroup DATA

Inventory file for this execution: ./inventory_files/inventory_.._PROD1.

Running with parameters from command line or environment variables:

ANSIBLE_DISPLAY_SKIPPED_HOSTS=false
ANSIBLE_LOG_PATH=./logs/log_.._20230116_164425.log
ANSIBLE_PARAMS=' -e allow_install_on_vm=true'
ARCHIVE_BACKUP_MIN=30
ARCHIVE_ONLINE_DAYS=7
ARCHIVE_REDUNDANCY=2
BACKUP_DEST=/u01
BACKUP_LEVEL0_DAYS=0
BACKUP_LEVEL1_DAYS=1-6
BACKUP_LOG_LOCATION=/home/oracle/logs
BACKUP_REDUNDANCY=2
BACKUP_SCRIPT_LOCATION=/home/oracle/scripts
BACKUP_START_HOUR=01
BACKUP_START_MIN=00
CLUSTER_CONFIG=cluster_config.json
CLUSTER_TYPE=NONE
INSTANCE_HOSTGROUP_NAME=dbasm

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.